Re: umounting

Jan Ciger (jan.ciger@epfl.ch)
Tue, 22 Jan 2002 20:46:11 +0100


On Tuesday 22 January 2002 20:01, you wrote:
> > When a second user comes and unmounts a disk, then the data are flushed
> > (the old data) and he gets a fs corruption, because the data were not
> > from his disk.
>
> No. The sbp2 driver should report a disk change. If such a thing happens,
> there's a kernel bug. Pulling out a mounted disk may cause a corrupted
> filesystem on that disk but not on others.

Maybe there is a problem in the driver, that it does not report the media
change, but anyway, you WILL get a corrupted filesystem, when you unmount
such disk with another media in drive - it is exactly like that - the driver
didn't report the change and the filesystem layer thinks, that it has still
the same media in drive and happily flushes e.g. ext2 data to a VFAT disk ...
Then you get the corruption of the second disk.

But I am not familiar with the sbp2 driver, but this is a quite standard
behavior for removable media.

Jan
-
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/