From patchwork Tue Oct 1 15:31:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Holton X-Patchwork-Id: 2970641 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C46C6BFF0B for ; Tue, 1 Oct 2013 15:32:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 05112203FD for ; Tue, 1 Oct 2013 15:32:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB8BC203F7 for ; Tue, 1 Oct 2013 15:32:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753346Ab3JAPcO (ORCPT ); Tue, 1 Oct 2013 11:32:14 -0400 Received: from mail-qc0-f176.google.com ([209.85.216.176]:43641 "EHLO mail-qc0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752950Ab3JAPcM (ORCPT ); Tue, 1 Oct 2013 11:32:12 -0400 Received: by mail-qc0-f176.google.com with SMTP id t7so4772775qcv.21 for ; Tue, 01 Oct 2013 08:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GzaicRo8SXZ5IAa127WlgxLbF9loC5h4dRyDs0YiMZM=; b=JFrkRgfPXCzGHmWs2pAWNul6oCHXCbd1eUE4zj/2YEy/LkumOHQkohRReIYeA1iasq HcQ8/ot1btcqvSd15zaOLUh4b+zOqV1NWHP/dLUaWyEMee2RYJ2+pwkSqwTgCt8tgi54 +86paKhk7AEL2NBREwifbZYcwQq79wU/2MxP1XMuOo9QHMD9JHm1WwnVlnAZT3m/uOe2 0wG8J2mO7G96pv+/BunNsSO5kyhmduNipx69kBPUiDPbNSYFovkjCPto9cCmtJx2TnoU fHCKObeoDR1GYlT0u0rI8my8VO+Hs6x25Nd48jO2smu9LzikYjudiE5lYwdm0bLaAozh jhSA== X-Received: by 10.229.244.8 with SMTP id lo8mr36292432qcb.20.1380641532158; Tue, 01 Oct 2013 08:32:12 -0700 (PDT) Received: from localhost.localdomain (nc-67-235-39-142.dhcp.embarqhsd.net. [67.235.39.142]) by mx.google.com with ESMTPSA id i4sm14701790qan.0.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Oct 2013 08:32:11 -0700 (PDT) From: Frank Holton To: linux-btrfs@vger.kernel.org Cc: Frank Holton , dsterba@suse.cz Subject: [PATCH] btrfs-progs: Update manpages for btrfs defrag -r Date: Tue, 1 Oct 2013 11:31:47 -0400 Message-Id: <672d93b5f17a7cbfe9a6fd0940e1ae9599cd1ce0.1380640915.git.fholton@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <20ddb7ded6d0bedadd7dc68a2c29d7c3bd4b7906.1379963692.git.fholton@gmail.com> References: <20ddb7ded6d0bedadd7dc68a2c29d7c3bd4b7906.1379963692.git.fholton@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the -r option to the manpages for btrfs defragment Signed-off-by: Frank Holton --- man/btrfs.8.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index b6a7edd..8a0a05d 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -273,8 +273,9 @@ Force a sync for the filesystem identified by \fI\fR. .TP \fBfilesystem defragment\fP [\fIoptions\fP] \fI\fP|\fI\fP [\fI\fP|\fI...\fP]\fP -Defragment file data and/or directory metadata. To defragment all files in a -directory you have to specify each one on its own or use your shell wildcards. +Defragment file data and/or directory metadata. If \fB-r\fP is passed, +files in \fIdir\fR will be defragmented recursively. + The start position and the number of bytes to defragment can be specified by \fIstart\fR and \fIlen\fR. Any extent bigger than threshold will be @@ -288,6 +289,8 @@ defragment operations. be verbose .IP "\fB-c\fP" 5 compress file contents while defragmenting +.IP "\fB-r\fP" 5 +defragment files recursively .IP "\fB-f\fP" 5 flush filesystem after defragmenting .IP "\fB-s \fIstart\fP\fP" 5