From 68227542432de81fc9b8064efa0791819024f1a6 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 4 Nov 1997 04:25:22 +0000 Subject: ChangeLog, unix.c: Add a special case check for the error code EROFS and display an appropriate error message for this case. --- e2fsck/ChangeLog | 3 +++ e2fsck/unix.c | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'e2fsck') 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 + * 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); -- cgit v1.2.1