| To: | Steve Lord <lord@xxxxxxx> |
|---|---|
| Subject: | Re: XFS as Root filesystem |
| From: | "Stephen C. Tweedie" <sct@xxxxxxxxxx> |
| Date: | Tue, 18 Apr 2000 00:27:52 +0100 |
| Cc: | Phil Schwan <phil@xxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx |
| In-reply-to: | <200004131528.KAA07085@xxxxxxxxxxxxxxxxxxxx>; from lord@xxxxxxx on Thu, Apr 13, 2000 at 10:28:23AM -0500 |
| References: | <phil@xxxxxxxxxxxxx> <200004131528.KAA07085@xxxxxxxxxxxxxxxxxxxx> |
| Sender: | owner-linux-xfs@xxxxxxxxxxx |
Hi,
On Thu, Apr 13, 2000 at 10:28:23AM -0500, Steve Lord wrote:
>
> This in itself looks reasonable, but Stephen Tweedie mentioned detecting
> read only devices and refusing to do the recovery - and that there was
> code which did this in the latest ext3 cut.
It's trivial: just a
if (is_read_only(sb->s_dev)) {
printk(KERN_ERR "EXT3-fs: write access
unavailable, cannot proceed.\n");
return -EROFS;
}
before attempting the recovery. That does the readonly check on the
underlying media rather than on the current filesystem state.
--Stephen
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: latest xfs source does not build, cattelan |
|---|---|
| Next by Date: | TAKE - sync data before remounting, Phil Schwan |
| Previous by Thread: | Re: XFS as Root filesystem, cattelan |
| Next by Thread: | Re: XFS as Root filesystem, Stephen C. Tweedie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |