Re: [PATCH] honor nofail option in fsck

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

 



Karel Zak wrote:
> On Fri, Nov 27, 2009 at 10:15:53AM +0100, Ludwig Nussel wrote:
> > analog to mount gracefully ignoring non existing devices if the "nofail"
> > option is specified in fstab, also have fsck -A skip them. This way it's
> > possible to have devices optionally not available during boot but still
> > have them fsck'd if they are there.
> 
>  Ah yes, this is better that the original Matthias' "fsck -X" patch.
>  (http://article.gmane.org/gmane.comp.file-systems.ext4/5377)
> 
>  From my point of view the patch looks good, but it would be nice to
>  add a note about "nofail" to the fsck.8 man page.

Ah, right. Here's a patch. I'm no native speaker so feel free to reword
it.

cu
Ludwig

>From 995d46eab619239cc43793dc547fb0b477925126 Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@xxxxxxx>
Date: Fri, 27 Nov 2009 11:47:47 +0100
Subject: [PATCH] document fsck behavior wrt nofail option and fstype 'auto'.

---
 fsck/fsck.8 |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/fsck/fsck.8 b/fsck/fsck.8
index ea0321c..fd1e7e2 100644
--- a/fsck/fsck.8
+++ b/fsck/fsck.8
@@ -215,6 +215,22 @@ not to use this configuration if they need to avoid multiple filesystem
 checks running in parallel for some reason --- for example, if the
 machine in question is short on memory so that
 excessive paging is a concern.
+.sp
+.B fsck
+normally does not check whether the device actually exists before
+calling a file system specific checker. Therefore non-existing
+devices may cause the system to enter file system repair mode during
+boot if the filesystem specific checker returns a fatal error. The
+.B /etc/fstab
+mount option
+.B nofail
+may be used to have
+.B fsck
+skip non-existing devices.
+.B fsck
+also skips non-existing devices that have the special file system type
+.B auto
+.
 .TP
 .B \-C\fR [ \fI "fd" \fR ]
 Display completion/progress bars for those filesystem checkers (currently
-- 
1.6.4.2


-- 
 (o_   Ludwig Nussel
 //\   
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux