All of lore.kernel.org
 help / color / mirror / Atom feed
* RBD image name constraints
@ 2016-04-08 12:23 Bartłomiej Święcki
  2016-04-08 16:13 ` Ilya Dryomov
  2016-04-08 20:29 ` Mykola Golub
  0 siblings, 2 replies; 14+ messages in thread
From: Bartłomiej Święcki @ 2016-04-08 12:23 UTC (permalink / raw)
  To: Ceph Development

Hi,

What are constraints regarding names of RBD images? I tried to look it 
up but without success.

My tests show that maximum length is about 4089 bytes and the only 
forbidden characters are '\0' and '@' but didn't get deep enough into 
the code to figure out the length limit. Are my findings correct?

I also think I've found a regression introduced in v10.0.1 regarding 
pool / image name constraints (introduced in 
fa4e00f8c85603ed202bfef2f3be6086482fbbb2).

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.

Kind regards
Bartłomiej Święcki
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-04-12 13:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-08 12:23 RBD image name constraints Bartłomiej Święcki
2016-04-08 16:13 ` Ilya Dryomov
2016-04-08 17:36   ` Alex Elder
2016-04-08 18:12     ` Ilya Dryomov
2016-04-11  8:45   ` Bartłomiej Święcki
2016-04-08 20:29 ` Mykola Golub
2016-04-11  8:45   ` Bartłomiej Święcki
2016-04-11  9:37     ` Mykola Golub
2016-04-11 14:29       ` Jason Dillaman
2016-04-11 15:08         ` Ilya Dryomov
2016-04-12 12:32           ` Bartłomiej Święcki
2016-04-12 12:47             ` Wido den Hollander
2016-04-12 13:01               ` Jason Dillaman
2016-04-12 13:23                 ` Ilya Dryomov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.