Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Dan McGrath <danmcgrath.ca@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: Dan McGrath <danmcgrath.ca@gmail.com>
Subject: [PATCH] btrfs-progs: No-op when called as fsck.btrfsck
Date: Mon, 15 Apr 2013 09:47:09 -0400	[thread overview]
Message-ID: <1366033629-25121-2-git-send-email-danmcgrath.ca@gmail.com> (raw)
In-Reply-To: <1366033629-25121-1-git-send-email-danmcgrath.ca@gmail.com>

As per FAQ: It is safe to and recommended to turn fsck.btrfs into a no-op

Signed-off-by: Dan McGrath <danmcgrath.ca@gmail.com>
---
 btrfs.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/btrfs.c b/btrfs.c
index 691adef..78161a9 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -272,6 +272,8 @@ int main(int argc, char **argv)
 
 	if (!strcmp(bname, "btrfsck")) {
 		argv[0] = "check";
+	} else if (!strcmp(bname, "fsck.btrfsck")) {
+		exit(0);
 	} else {
 		argc--;
 		argv++;
-- 
1.7.9.5


  reply	other threads:[~2013-04-15 13:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15 13:47 [PATCH] btrfs-progs: No-op when called as fsck.btrfsck Dan McGrath
2013-04-15 13:47 ` Dan McGrath [this message]
2013-04-15 14:03   ` Jan Alexander Steffens
2013-04-15 14:10     ` Dan McGrath
2013-04-15 16:38     ` Eric Sandeen
2013-04-15 16:45     ` Dan McGrath
2013-04-15 17:01       ` Eric Sandeen
2013-04-15 17:23         ` Dan McGrath
2013-04-15 18:59       ` Zach Brown

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=1366033629-25121-2-git-send-email-danmcgrath.ca@gmail.com \
    --to=danmcgrath.ca@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox