Re: Drive name slips...

From: Walter Hofmann (walter.hofmann@physik.stud.uni-erlangen.de)
Date: Wed Feb 23 2000 - 13:51:17 EST


On Tue, 22 Feb 2000, Theodore Y. Ts'o wrote:

> From: "Stephen C. Tweedie" <sct@redhat.com>
> Date: Mon, 21 Feb 2000 19:12:33 +0000 (GMT)
>
> > One easy way of fixing this for mount and company is to check the size
> > of the filesystem in the superblock. If it's bigger than the physical
> > size of the partition, then mount should skip the physical device, and
> > then find the MD device instead.
>
> Testing virtual devices first would be the obvious safe fix.
>
> True, but that means encoding into fsck either the major device numbers
> or the names of the virtual devices, neither of which is guaranteed to
> stay constant.

True, but your approach works only for RAID0, not for RAID1, as for
RAID1 the size of the md-device is the same as the partition size. (The
original poster had a problem with RAID1).

Walter

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:34 EST