Re: RBD image name constraints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 08, 2016 at 02:23:32PM +0200, Bartłomiej Święcki wrote:

> In newer versions there's regex that's parsing image name passed to rbd 
> command (in src/tools/rbd/Utils.cc, function: extract_spec):
> 
>      "^(?:([^/@]+)/)?([^/@]+)(?:@([^/@]+))?$"
> 
> It won't parse pool name with '@', image name with '/' nor snapshot name 
> with '/', which was allowed in previous implementation based on strchr.

And I would leave this limitation (if there were no real complains
from users) because it could be really difficult to understand what a
spec that had e.g. two "@" meant.

You can still bypass the limitation by using --pool, --image, and
--snap options, and I would recommend to always use these in scripts
instead of specs.

-- 
Mykola Golub
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux