linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.ru>
To: linux-btrfs@vger.kernel.org
Subject: Mounting subvolumes and FS-wide mount options?
Date: Mon, 2 Jul 2012 14:52:15 +0600	[thread overview]
Message-ID: <20120702145215.6817ba11@natsu> (raw)

[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]

Hello,

Suppose I have in /etc/fstab:

/dev/sda2 /mnt/p2	btrfs	noatime		0	0
/dev/sda2 /home		btrfs	subvol=/home	0	0
/dev/sda2 /srv		btrfs	subvol=/srv	0	0

Now I want to add mount options like "space_cache" and "inode_cache". As far
as I understand these are FS-wide and not per subvolume. Also, changing them
once the FS has been mounted on a later subvolume mount is not allowed (?).

The question is, where to add them?

a) to the first mount in the list? Counting on the fact that it will be mounted
first (but it might be not).

b) to all of them? But that's time consuming to duplicate identical options on
each line and especially when editing them later.

Also, should I duplicate options like "noatime" and other generic options also
to all of the subvolume mounts?

I feel this is not obvious, not well-documented, and generally feels messy, so
until now I just avoided mounting individual subvolumes altogether, instead
preferring to mount the FS itself once somewhere under /mnt, and then "mount
--bind" stuff to final places where I needed it.

-- 
With respect,
Roman

~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Stallman had a printer,
with code he could not see.
So he began to tinker,
and set the software free."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

                 reply	other threads:[~2012-07-02  8:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20120702145215.6817ba11@natsu \
    --to=rm@romanrm.ru \
    --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).