I agree with your arguments -- I didn't know about blkid (they don't
discuss it on the e2fsprogs main page).
So why does cfdisk give labels and fdisk doesn't?
I was looking for the capability in /proc/partitions (I think it was
there at one time from some vendors release), but I didn't see it,
so I quickly reintegrated my old patch (took 5 minutes).
Not sure if this should be in mount...it seems "reasonable" for blkid to
migrate from e2fsprogs to utils...or in /proc/partitions. I supposed
(wrongly, I think) that e2fsprogs was for ext{2,3,4} filesystems.
/dev/disk/by-label is on my opensuse but not my fedora 3/4 standard installs.
Its nice but I think it would have headaches with MULTIPLE labels with the same
name...
marty
Karel Zak <[EMAIL PROTECTED]> writes on Thu, 26 Jul 2007 11:55:44 +0200
>
> > I wanted fdisk -l to return the partition names of all the disks.
>
> s/partition names/filesystem LABELs/ ... right?
>
> I see few problems:
>
> * we really don't want do hardcode FS detection code to fdisk
> (there is libblkid or libvolume_id -- see mount/fsprobe_*.c)
>
> * I don't think that we need to mix functionally -- I'd like to keep
> fdisk as simple as possible.
>
>
> Please, use blkid (from ex2fsprogs,) or "ls -l /dev/disk/by-label".
>
> It would be nice if mount(8) had a option to list all possible
> devices (according to /proc/partitions) with LABEL/UUID/FS type. We
> can add this to v2.14 TODO list.
>
> Karel
>
> --
> Karel Zak <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html