Re: info about filesystem errors in /sys/fs/ext4/... ?

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

 



On Mon, 5 May 2014, Nikola Ciprich wrote:

> Date: Mon, 5 May 2014 09:08:23 +0200
> From: Nikola Ciprich <nikola.ciprich@xxxxxxxxxxx>
> To: linux-ext4@xxxxxxxxxxxxxxx
> Subject: info about filesystem errors in /sys/fs/ext4/... ?
> 
> Hello,
> 
> I was wondering, is it possible to find out whether some filesystem with
> errors in mounted apart from parsing kernel log?
> 
> Would it be too complicated to add such info to /sys/fs/ext4/.../ or to
> some other location? Would such change make sense to you?
> 
> with regards
> 
> nik

Currently I do not think there is a way to check whether mounted
file system contains errors (EXT2_ERROR_FS flag is set in super
block).

You either have to check the logs, or run fsck before mounting the
file system.

It really seems like a optimal thing to provide a way to inform user
space about this without the need to parse the log. I think that
sysfs is a perfect place for this.

However we might to go a step further, because I do not
really like the idea of allowing to mount the file system with
errors by default. It does not really make sense to me and I wonder
whether someone actually intend to do it this way.

What about having this scenario respect "errors=" setting ? Of
course it might not make sense to panic when mounting file system
with errors with "errors=panic" option, we can just fail the mount.

Will that help your case ?

Thanks!
-Lukas
--
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