Re: Partition labels containing a slash in their names

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

 



On 10/28/2011 08:14 AM, John Morris wrote:
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. :)


But, a partition label isn't a filename, is it?  Just curious.

John

-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux