Skip to contentSkip to conversation

e2fsprogs-SLES10--m-support.patch

PATCH In review Kalpak Shah 1 participant 1 message Oct 6, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 4/15 e2fsprogs-SLES10--m-support.patch

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.

misc/fsck.8.in +2 -2
Index: 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
misc/fsck.c +2 -1
Index: 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;