Le 29/06/2017 à 18:06, k...@aspodata.se a écrit :
Didier:
...
Everybody is using blkid to build thiese links, my script as well as
Udev and Vdev. You probably noticed that blkid has a special option for
Udev because Udev people are too lazzy to parse the response. In Vdev,
Jude made the parsing job to be compatible with Busybox's blkid which
hasn't this special format.
Ok.
So blkid authors on one hand provide a special format for Udev to
create the symlinks, and on the other hand claim that they aren't reliable!
Heh, funny world, isn't it.
///
Since you can mount a fs by its uuid or label:
# blkid /dev/md7
/dev/md7: UUID="b3a4343f-ea9f-442e-911b-994e70ef2c5c" TYPE="xfs"
# mount --uuid b3a4343f-ea9f-442e-911b-994e70ef2c5c /Net
# df /Net
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md7 1952749916 1615159700 337590216 83% /Net
# umount /Net/
# df /Net
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 849332 60964 728008 8% /
# ls -l /dev/disk
ls: cannot access '/dev/disk': No such file or directory
#
Isn't /dev/disk/by* redundant, couldn't we just deprecate them,
don't that ?
These links are a conveniency. You don't need to invoke blkid or
lsblk to know immediately what's there.
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng