I understand that suboptimality. Thus taking that option should be tried only after one has tried and failed to mount the device by label, by fs id num, and then device hardware serial number.
If I wanted to be really complete, I would also populate the getattr fields of the mountpoint with all this kind of stuff, and also pass it to the desktop handler (Nautilus, etc), so that it would display on the mount icon, if it's not otherwise set.
And while I'm waving my hands and shooting off my mouth, if the device doesn't have a label or a fs id num, and it's being mounted read/write, I would have HAL compute and assign such, and write them to the device.
Probably for the label I would use a base-36 encoding of the current UNIX time for the label, and use the same alg that MSDOS FORMAT did for computing the fs id num.
no subject
Date: 2007-11-16 10:05 pm (UTC)If I wanted to be really complete, I would also populate the getattr fields of the mountpoint with all this kind of stuff, and also pass it to the desktop handler (Nautilus, etc), so that it would display on the mount icon, if it's not otherwise set.
And while I'm waving my hands and shooting off my mouth, if the device doesn't have a label or a fs id num, and it's being mounted read/write, I would have HAL compute and assign such, and write them to the device.
Probably for the label I would use a base-36 encoding of the current UNIX time for the label, and use the same alg that MSDOS FORMAT did for computing the fs id num.