Re: [PATCH] e2fsprogs: exit from preenhalt if IO errors were encountered

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

 



Eric Sandeen wrote:
> Resolves RH Bug 465679- e2fsck -p crashes with read-only DM device (e.g. logical volume)  
> 
> If a block device is unwritable, e2fsck -p gets into an infinite loop
> trying to preenhalt, close & flush the fs, which tries to flush the cache, 
> which gets a write error and calls preenhalt which tries to close & flush
> the fs ... ad infinitum.
> 
> Per Ted's suggestion just flag the ctx as "exiting" and short-circuit
> the infinite loop.
> 
> Tested by running e2fsck -p on a block device set read-only by BLKROSET.

Oh, thanks to Vlado Potisk for reporting this.

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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