public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fsck.xfs: do not use 'function' keyword
@ 2018-04-30  1:15 Eric Sandeen
  2018-04-30  5:30 ` Darrick J. Wong
  2018-04-30  7:46 ` Jan Tulak
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Sandeen @ 2018-04-30  1:15 UTC (permalink / raw)
  To: linux-xfs; +Cc: Jan Tulak

It was pointed out on irc that fsck.xfs uses the 'function' keyword
although it invokes /bin/sh - 'function' is a bashism.  It's not needed
here, so just remove it.

Fixes: 04a2d5d ("fsck.xfs: allow forced repairs using xfs_repair")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

This might be a 4.16.1 item, if strict-sh initscripts fail to run fsck.xfs at
boot time ...?

diff --git a/fsck/xfs_fsck.sh b/fsck/xfs_fsck.sh
index c9fc3eb..1916c07 100755
--- a/fsck/xfs_fsck.sh
+++ b/fsck/xfs_fsck.sh
@@ -6,7 +6,7 @@
 NAME=$0
 
 # get the right return code for fsck
-function repair2fsck_code() {
+repair2fsck_code() {
 	case $1 in
 	0)  return 0 # everything is ok
 		;;


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-04-30 13:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-30  1:15 [PATCH] fsck.xfs: do not use 'function' keyword Eric Sandeen
2018-04-30  5:30 ` Darrick J. Wong
2018-04-30 13:28   ` Eric Sandeen
2018-04-30 13:43     ` Jan Tulak
2018-04-30  7:46 ` Jan Tulak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox