All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalpak Shah <Kalpak.Shah@Sun.COM>
To: TheodoreTso <tytso@mit.edu>
Cc: linux-ext4 <linux-ext4@vger.kernel.org>
Subject: [PATCH][4/15] e2fsprogs-SLES10--m-support.patch
Date: Mon, 06 Oct 2008 16:01:05 +0530	[thread overview]
Message-ID: <1223289065.4007.83.camel@localhost> (raw)

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

SLES9 patch to add "fsck -m" option to skip checking mounted
filesystems.
This isn't in their upstream e2fsprogs, since SLES uses the fsck in
util-linux, but is needed for compatibility.


[-- Attachment #2: e2fsprogs-SLES10--m-support.patch --]
[-- Type: text/x-patch, Size: 1240 bytes --]

Index: e2fsprogs-1.40.7/misc/fsck.8.in
===================================================================
--- e2fsprogs-1.40.7.orig/misc/fsck.8.in
+++ e2fsprogs-1.40.7/misc/fsck.8.in
@@ -8,7 +8,7 @@ fsck \- check and repair a Linux file sy
 .SH SYNOPSIS
 .B fsck
 [
-.B \-sAVRTMNP
+.B \-sAVRTmMNP
 ]
 [
 .B \-C
@@ -233,7 +233,7 @@ a progress bar at a time.  GUI front-end
 .IR fd ,
 in which case the progress bar information will be sent to that file descriptor.
 .TP
-.B \-M
+.B \-m or \-M
 Do not check mounted filesystems and return an exit code of 0
 for mounted filesystems.
 .TP
Index: e2fsprogs-1.40.7/misc/fsck.c
===================================================================
--- e2fsprogs-1.40.7.orig/misc/fsck.c
+++ e2fsprogs-1.40.7/misc/fsck.c
@@ -1063,7 +1063,7 @@ static int check_all(NOARGS)
 
 static void usage(NOARGS)
 {
-	fputs(_("Usage: fsck [-AMNPRTV] [ -C [ fd ] ] [-t fstype] [fs-options] [filesys ...]\n"), stderr);
+	fputs(_("Usage: fsck [-AmMNPRTV] [ -C [ fd ] ] [-t fstype] [fs-options] [filesys ...]\n"), stderr);
 	exit(EXIT_USAGE);
 }
 
@@ -1185,6 +1185,7 @@ static void PRS(int argc, char *argv[])
 			case 'T':
 				notitle++;
 				break;
+			case 'm':
 			case 'M':
 				ignore_mounted++;
 				break;

                 reply	other threads:[~2008-10-06 10:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1223289065.4007.83.camel@localhost \
    --to=kalpak.shah@sun.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.