From patchwork Tue Jul 17 10:41:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 1204591 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E930D3FC8E for ; Tue, 17 Jul 2012 10:41:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755287Ab2GQKlS (ORCPT ); Tue, 17 Jul 2012 06:41:18 -0400 Received: from cantor2.suse.de ([195.135.220.15]:33569 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755266Ab2GQKlR (ORCPT ); Tue, 17 Jul 2012 06:41:17 -0400 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 2FA81A3E90; Tue, 17 Jul 2012 12:41:16 +0200 (CEST) Received: by ds.suse.cz (Postfix, from userid 10065) id B0FA77482A; Tue, 17 Jul 2012 12:41:15 +0200 (CEST) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: chris.mason@fusionio.com, David Sterba Subject: [PATCH] btrfs-progs: fsck: understand the -s option Date: Tue, 17 Jul 2012 12:41:13 +0200 Message-Id: <1342521673-25510-1-git-send-email-dsterba@suse.cz> X-Mailer: git-send-email 1.7.6.233.gd79bc Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Short options have to be repeated at the getopt_long call. Signed-off-by: David Sterba --- btrfsck.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/btrfsck.c b/btrfsck.c index 088b9f4..2e81adc 100644 --- a/btrfsck.c +++ b/btrfsck.c @@ -3499,7 +3499,7 @@ int main(int ac, char **av) while(1) { int c; - c = getopt_long(ac, av, "", long_options, + c = getopt_long(ac, av, "s:", long_options, &option_index); if (c < 0) break;