* Identify mounted subvolume @ 2014-10-07 8:47 Juan Orti Alcaine 2014-10-07 9:06 ` Hugo Mills 0 siblings, 1 reply; 4+ messages in thread From: Juan Orti Alcaine @ 2014-10-07 8:47 UTC (permalink / raw) To: linux-btrfs I cannot find the answer to this one. How can I determine which subvolume I have mounted in a certain path? I'm looking through /sys but no clue. Thank you. -- Juan Orti https://miceliux.com ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Identify mounted subvolume 2014-10-07 8:47 Identify mounted subvolume Juan Orti Alcaine @ 2014-10-07 9:06 ` Hugo Mills 2014-10-07 9:18 ` Qu Wenruo 0 siblings, 1 reply; 4+ messages in thread From: Hugo Mills @ 2014-10-07 9:06 UTC (permalink / raw) To: Juan Orti Alcaine; +Cc: linux-btrfs [-- Attachment #1: Type: text/plain, Size: 621 bytes --] On Tue, Oct 07, 2014 at 10:47:56AM +0200, Juan Orti Alcaine wrote: > I cannot find the answer to this one. How can I determine which subvolume I > have mounted in a certain path? I'm looking through /sys but no clue. Rumour has it that /proc/self/mountinfo is meant to have the information, but I've just checked, and it doesn't seem to have the subvol in it on my server (3.16.2). Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Unix: For controlling fungal diseases in crops --- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 811 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Identify mounted subvolume 2014-10-07 9:06 ` Hugo Mills @ 2014-10-07 9:18 ` Qu Wenruo 2014-10-07 9:26 ` Hugo Mills 0 siblings, 1 reply; 4+ messages in thread From: Qu Wenruo @ 2014-10-07 9:18 UTC (permalink / raw) To: Hugo Mills, Juan Orti Alcaine, linux-btrfs -------- Original Message -------- Subject: Re: Identify mounted subvolume From: Hugo Mills <hugo@carfax.org.uk> To: Juan Orti Alcaine <juan.orti@miceliux.com> Date: 2014年10月07日 17:06 > On Tue, Oct 07, 2014 at 10:47:56AM +0200, Juan Orti Alcaine wrote: >> I cannot find the answer to this one. How can I determine which subvolume I >> have mounted in a certain path? I'm looking through /sys but no clue. > Rumour has it that /proc/self/mountinfo is meant to have the > information, but I've just checked, and it doesn't seem to have the > subvol in it on my server (3.16.2). > > Hugo. > This accepted patch will make /proc/self/mountinfo to have all the info. https://patchwork.kernel.org/patch/4593831/ But I didn't see it in 3.17 kernel or integration branch, maybe next merge window? Even without the patch, when mounting using '-o subvol=' mount option will also fill the /proc/self/mountinfo, using 3.16.4. --- 149 19 0:39 / /mnt/btrfs rw,relatime shared:101 - btrfs /dev/sda6 rw,space_cache 153 19 0:39 */subvol1* /mnt/other rw,relatime shared:104 - btrfs /dev/sda6 rw,space_cache --- On the other hand, without the patch and you mount with '-o subvolid=', then mountinfo will not help. Thanks, Qu ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Identify mounted subvolume 2014-10-07 9:18 ` Qu Wenruo @ 2014-10-07 9:26 ` Hugo Mills 0 siblings, 0 replies; 4+ messages in thread From: Hugo Mills @ 2014-10-07 9:26 UTC (permalink / raw) To: Qu Wenruo; +Cc: Juan Orti Alcaine, linux-btrfs [-- Attachment #1: Type: text/plain, Size: 1731 bytes --] On Tue, Oct 07, 2014 at 05:18:51PM +0800, Qu Wenruo wrote: > > -------- Original Message -------- > Subject: Re: Identify mounted subvolume > From: Hugo Mills <hugo@carfax.org.uk> > To: Juan Orti Alcaine <juan.orti@miceliux.com> > Date: 2014年10月07日 17:06 > >On Tue, Oct 07, 2014 at 10:47:56AM +0200, Juan Orti Alcaine wrote: > >>I cannot find the answer to this one. How can I determine which subvolume I > >>have mounted in a certain path? I'm looking through /sys but no clue. > > Rumour has it that /proc/self/mountinfo is meant to have the > >information, but I've just checked, and it doesn't seem to have the > >subvol in it on my server (3.16.2). > > > > Hugo. > > > This accepted patch will make /proc/self/mountinfo to have all the info. > https://patchwork.kernel.org/patch/4593831/ > > But I didn't see it in 3.17 kernel or integration branch, maybe next merge > window? > > Even without the patch, when mounting using '-o subvol=' mount option will > also fill the /proc/self/mountinfo, > using 3.16.4. > --- > 149 19 0:39 / /mnt/btrfs rw,relatime shared:101 - btrfs /dev/sda6 > rw,space_cache > 153 19 0:39 */subvol1* /mnt/other rw,relatime shared:104 - btrfs /dev/sda6 > rw,space_cache > --- Aaaah, I see. I was just misinterpreting the information. > On the other hand, without the patch and you mount with '-o subvolid=', then > mountinfo will not help. Got it. Thanks for clearing up my lack of understanding. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Unix: For controlling fungal diseases in crops --- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 811 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-10-07 9:26 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-07 8:47 Identify mounted subvolume Juan Orti Alcaine 2014-10-07 9:06 ` Hugo Mills 2014-10-07 9:18 ` Qu Wenruo 2014-10-07 9:26 ` Hugo Mills
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).