linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH v2 2/4] Btrfs-progs: add mount-option command man page
Date: Fri, 12 Oct 2012 12:24:45 +0900	[thread overview]
Message-ID: <50778D7D.4080803@jp.fujitsu.com> (raw)
In-Reply-To: <50778C1D.4060807@jp.fujitsu.com>

Add mount-option command man page.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
---
 man/btrfs.8.in |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/man/btrfs.8.in b/man/btrfs.8.in
index 4b0a9f9..85d5030 100644
--- a/man/btrfs.8.in
+++ b/man/btrfs.8.in
@@ -52,6 +52,12 @@ btrfs \- control a btrfs filesystem
 \fBbtrfs\fP \fBinspect-internal logical-resolve\fP
 [-Pv] \fI<logical>\fP \fI<path>\fP
 .PP
+\fBbtrfs\fP \fBmount-option set\fP \fI[[<+/-/=><option>,...]...]\fP \fI<device>\fP
+.PP
+\fBbtrfs\fP \fBmount-option get\fP \fI<device>\fP
+.PP
+\fBbtrfs\fP \fBmount-option clear\fP \fI<device>\fP
+.PP
 \fBbtrfs\fP \fBhelp|\-\-help|\-h \fP\fI\fP
 .PP
 \fBbtrfs\fP \fB<command> \-\-help \fP\fI\fP
@@ -319,6 +325,25 @@ skip the path resolving and print the inodes instead
 .IP -v 5
 verbose mode. print count of returned paths and all ioctl() return values
 .RE
+.TP
+
+\fBmount-option set\fP \fI[<+/-/=><option>,...]...]\fP \fI<device>\fP
+With some operators \fB+\fP,\fB-\fP,\fB=\fP and some options,
+set default mount options to the \fI<device>\fP.
+These \fB+\fP,\fB-\fP,\fB=\fP operators mean like \fBchmod\fP operators.
+The operator \fB+\fP causes the selected mount options to be added to existing
+default mount options of the \fI<device>\fP; \fB-\fP causes them to be removed;
+and \fB=\fP causes them to be added and causes unmentioned options to be removed.
+Without options, print default mount options of the \fI<device>\fR.
+.TP
+
+\fBmount-option get\fP \fI<device>\fP
+Print default mount options of the \fI<device>\fR.
+.TP
+
+\fBmount-option clear\fP \fI<device>\fP
+Clear default mount options of the \fI<device>\fR.
+.TP
 
 .SH EXIT STATUS
 \fBbtrfs\fR returns a zero exist status if it succeeds. Non zero is returned in
-- 
1.7.7.6



  parent reply	other threads:[~2012-10-12  3:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12  3:18 [PATCH v2 0/4] Btrfs: set mount options permanently Hidetoshi Seto
2012-10-12  3:24 ` [PATCH v2 1/4] Btrfs-progs: add mount-option command Hidetoshi Seto
2012-10-12  5:35   ` Tsutomu Itoh
2012-10-12  8:21   ` Tsutomu Itoh
2012-10-12  3:24 ` Hidetoshi Seto [this message]
2012-10-14  9:04   ` [PATCH v2 2/4] Btrfs-progs: add mount-option command man page Goffredo Baroncelli
2012-10-12  3:24 ` [PATCH v2 3/4] btrfs: make subroutine __btrfs_parse_options Hidetoshi Seto
2012-10-12  3:25 ` [PATCH v2 4/4] btrfs: support default mount options Hidetoshi Seto

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=50778D7D.4080803@jp.fujitsu.com \
    --to=seto.hidetoshi@jp.fujitsu.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;
as well as URLs for NNTP newsgroup(s).