[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <105201c6eef3$ab64c750$0225a8c0@Wednesday>
Date: Fri, 13 Oct 2006 11:16:08 -0700
From: "jdow" <jdow@...thlink.net>
To: "Alan Cox" <alan@...rguk.ukuu.org.uk>, "Neil Brown" <neilb@...e.de>
Cc: <linux-kernel@...r.kernel.org>, <aeb@....nl>,
"Jens Axboe" <jens.axboe@...cle.com>
Subject: Re: Why aren't partitions limited to fit within the device?
From: "Alan Cox" <alan@...rguk.ukuu.org.uk>
> Ar Gwe, 2006-10-13 am 09:50 +1000, ysgrifennodd Neil Brown:
>> So: Is there any good reason to not clip the partitions to fit
>> within the device - and discard those that are completely beyond
>> the end of the device??
>
> Its close but not quite the right approach
>
>> The patch at the end of the mail does that. Is it OK to submit this
>> to mainline?
>
> No I think not. Any partition which is partly outside the disk should be
> ignored entirely, that ensures it doesn't accidentally get mounted and
> trashed by an HPA or similar mixup.
This is also a risk for users who have a partition that was poorly
setup with an earlier version that allowed it to almost work. If there
is data on that partition refusing to mount it can lead to massive
data loss akin to a broken disk drive.
<<jdow>> I'd propose allowing it to mount read-only and forcing
read-only mode when attempts to mount read-write are made. That way
the user never perceives a data loss situation and can take the
appropriate steps to repair the partitioning error.
{^_^} Joanne Dow
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists