Partition labels containing a slash in their names

John Morris jmorris at beau.org
Fri Oct 28 15:14:34 UTC 2011


On Fri, 2011-10-28 at 09:22 +0200, Joachim Backes wrote:
> Hi,
> 
> I'm having 2 partions on /dev/sda (sda7 and sda8) labelled as "/F15" and
> "/F16". I wonder about the names in /dev/disk/by-label:
> 
> lrwxrwxrwx 1 root root 10 Oct 27 20:12 \x2fF15 -> ../../sda7
> lrwxrwxrwx 1 root root 10 Oct 27 20:12 \x2fF16 -> ../../sda8
> 
> I know that \x2f is equivalent to "/", so why this mapping as special char?

Because the / character isn't legal in a filename, it is reserved as the
path separator.  So it must be escaped or you could never access it.
How did the filesystems get such a label in the first place?  Any
automated system that did it should have a bug filed against it since it
is going to cause no end of confusion.  If you did it, well don't do
that anymore. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20111028/342797e5/attachment.bin 


More information about the test mailing list