diff options
Diffstat (limited to 'e2fsck')
-rw-r--r-- | e2fsck/ChangeLog | 3 | ||||
-rw-r--r-- | e2fsck/unix.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 083d7ac8..42a9023f 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,5 +1,8 @@ Mon Nov 3 14:35:29 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> + * unix.c (main): Add a special case check for the error code EROFS + and display an appropriate error message for this case. + * [lots of files]: Change ext2fs_read_inode, ext2fs_write_inode to take the e2fsck context as their first argument. Change dir_info.c routines to take an e2fsck_context, diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 97bb33db..f5c31913 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -511,6 +511,13 @@ restart: "r/o" : "r/w"); else if (retval == ENXIO) printf("Possibly non-existent or swap device?\n"); +#ifdef EROFS + else if (retval == EROFS) + printf("Disk write-protected; use the -n option" + "to do a read-only\n" + "check of the device.\n"); + +#endif else fix_problem(ctx, PR_0_SB_CORRUPT, &pctx); fatal_error(0); |