RE: [PATCH 1/4] ext4: fix wrong return value in ext4_read_inode_bitmap()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Andreas,

   Yup, that one still need some work from myside, and I separate it from this patch series.
One thing I am still worried a bit, ted did you agree that we change ext4_error() to ext4_warning()
for bitmap errors in default(but of course error should be recored for next e2fsck)?

or as Andreas talked we might introduce another mount options?


Thanks,
Shilong

________________________________________
From: Andreas Dilger [adilger@xxxxxxxxx]
Sent: Wednesday, April 18, 2018 13:19
To: Wang Shilong
Cc: Ext4 Developers List; Liu Bo; Wang Shilong; Shuichi Ihara; tytso@xxxxxxx
Subject: Re: [PATCH 1/4] ext4: fix wrong return value in ext4_read_inode_bitmap()

One thing that is (IMHO) missing from this patch series, is the last
patch that removes all of the calls to ext4_error() before calling
ext4_mark_group_bitmap_corrupted(), passing the error message as a
parameter, and cals save_error_info() in that function.

That would essentially change the code from aborting on any bitmap
error to marking the filesystem and block group in error (avoiding it
for any new allocations) but allows the filesystem to continue working.

We might consider to control this with a mount option, similar to the
"errors=" option, like "bitmap_error=error" or "bitmap_error=warning"
or something similar?

Cheers, Andreas







[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux