search for: ext2_mf_readon

Displaying 1 result from an estimated 1 matches for "ext2_mf_readon".

Did you mean: ext2_mf_readonly
2001 Sep 05
3
[e2fsprogs-1.24] "fsck -A -a" fails on reboot
..., even though the system has just experienced a crash. I think the mtab checking code in older version of e2fsck is still needed: --- e2fsprogs-1.24/e2fsck/unix.c-1.24 Wed Aug 29 08:40:27 2001 +++ e2fsprogs-1.24/e2fsck/unix.c Wed Sep 5 10:41:27 2001 @@ -223,6 +223,20 @@ (mount_flags & EXT2_MF_READONLY))) return; +#if (defined(__linux__) && defined(HAVE_MNTENT_H)) + /* + * If the root is mounted read-only, then /etc/mtab is + * probably not correct; so we won't issue a warning based on + * it. + */ + fd = open(MOUNTED, O_RDWR); +...