Re: Ext2/Ext3 partition label abuse

From: H. Peter Anvin (hpa@zytor.com)
Date: Fri Mar 08 2002 - 13:24:52 EST


Followup to: <3C88890C.6010303@mail.externet.hu>
By author: Boszormenyi Zoltan <zboszor@mail.externet.hu>
In newsgroup: linux.dev.kernel
>
> The /proc/partitions "file" lists the partitions in disk-reversed order,
> e.g.:
>
> /dev/hdc1 ....
> ...
> /dev/hdc10 ...
> /dev/hda1 ...
> ...
> /dev/hda9 ...
>
> Is there a way to fix this? Yes there is: vendors should not use
> LABEL=XXX method in /etc/fstab. Either use the proper
> device/partition or the UUID. The downside is that fsck messages
> would not be as pretty-printed as now. Or maybe the partitions
> should not be registered in disk-reversed order...
>

Or maybe mount(8) should signal an error if a label is ambiguous
instead of mounting a random partition.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 15 2002 - 22:00:09 EST