Re: RBD image name constraints

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

 



On Tue, Apr 12, 2016 at 3:01 PM, Jason Dillaman <dillaman@xxxxxxxxxx> wrote:
>> > Op 12 april 2016 om 14:32 schreef Bartłomiej Święcki
>> > <bartlomiej.swiecki@xxxxxxxxxxxx>:
>> >
>> >
>> >
>> > On 04/11/2016 05:08 PM, Ilya Dryomov wrote:
>> > > On Mon, Apr 11, 2016 at 4:29 PM, Jason Dillaman <dillaman@xxxxxxxxxx>
>> > > wrote:
>> > >
>> > >> It would probably make sense to relax it for non-create operations and
>> > >> use
>> > >> a strict regex for create/clone/import/rename operations.
>> > > I think it would also make sense to start enforcing a limit on the
>> > > length of the image name on create/clone/etc.  I'm not pushing for it
>> > > to be 96 chars (although I do believe it'd be sensible), just that we
>> > > don't want it to be RADOS - strlen("rbd_id.").
>> > >
>> > > Thanks,
>> > >
>> > >                  Ilya
>> > Sounds like a good plan to me, maybe we should also consider allowed
>> > character set? Non-ascii or control characters make little sense here too.
>> >
>>
>> Seems like a sane thing to me:
>>
>> a-z, A-Z, 0-9, -, _ and . are the characters you want to allow in a image's
>> name. I can't think of anything more.
>>
>> Wido
>>
>> > Regards,
>> > Bartek
>> > --
>> > 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
>> --
>> 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
>>
>
> All of this sounds good to me -- we should circulate a proposal in ceph-users before making any change.  Assuming we can reach a plan that doesn't break someone's Ceph deployment, this could be included as part of the Kraken-release.
>
> Ilya -- just so that I am clear, is the current kernel limitation 96 characters minus the "rbd_id."-prefix (format 2) or ".rbd"-suffix (format 1)?

It's 100 chars for a RADOS object name, including any prefixes and
suffixes.  So 96 chars (matches RBD_MAX_IMAGE_NAME_SIZE) for a format 1
image and 93 chars for a format 2 image.  It's a pity it didn't get
updated when format 2 support got merged...

Thanks,

                Ilya
--
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