When I did a mount using a name with a space in it, the mount call uses readlink to get the real device name, then opens that. (I don't know if the real device name is guaranteed not to contain spaces).

stat64("/dev/disk/by-label/W-98\\x20SE", {st_mode=S_IFBLK|0660, st_rdev=makedev(22, 1), ...}) = 0
readlink("/dev", 0xbf8d4f9b, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dev/disk", 0xbf8d4f9b, 4096) = -1 EINVAL (Invalid argument)
readlink("/dev/disk/by-label", 0xbf8d4f9b, 4096) = -1 EINVAL (Invalid argument)
readlink("/dev/disk/by-label/W-98\\x20SE", "../../hdc1", 4096) = 10
readlink("/dev/hdc1", 0xbf8d4f9b, 4096) = -1 EINVAL (Invalid argument)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
open("/dev/null", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
fcntl64(3, F_GETFL)                     = 0 (flags O_RDONLY)
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8d4a64) = -1 ENOTTY (Inappropriate ioctl for device) mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80fb000
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb80fb000, 4096)                = 0
access("/dev/hdc1", F_OK)               = 0
time(NULL)                              = 1247003507
stat64("/dev/hdc1", {st_mode=S_IFBLK|0660, st_rdev=makedev(22, 1), ...}) = 0
open("/dev/hdc1", O_RDONLY)             = 3

Regards,

Arthur.



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to