diff options
author | Theodore Ts'o <tytso@mit.edu> | 1997-11-04 04:25:22 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1997-11-04 04:25:22 +0000 |
commit | 68227542432de81fc9b8064efa0791819024f1a6 (patch) | |
tree | 669b37cb29db8315519e1c5d8069b026700399f4 /e2fsck | |
parent | 0ea01da79c2228fc315488b342b08a4904d3c681 (diff) | |
download | e2fsprogs-68227542432de81fc9b8064efa0791819024f1a6.tar.gz |
ChangeLog, unix.c:
Add a special case check for the error code EROFS and display an
appropriate error message for this case.
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); |