Thread (21 messages) 21 messages, 7 authors, 2017-08-23

Re: finding root filesystem of a subvolume?

From: Ulli Horlacher <hidden>
Date: 2017-08-22 12:50:31

On Tue 2017-08-22 (12:40), Hugo Mills wrote:
On Tue, Aug 22, 2017 at 02:23:50PM +0200, Ulli Horlacher wrote:
quoted
How do I find the root filesystem of a subvolume?
Example:

root@fex:~# df -T 
Filesystem     Type  1K-blocks      Used Available Use% Mounted on
-              -    1073740800 104244552 967773976  10% /local/.backup/home
   I've never seen the "- -" output from df before. Is this a bind
mount or something?
No, /local/.backup/home is just a btrfs subvolume

quoted
I know, the root filesystem is /local, but who can I show it by command?
   Probably in /proc/self/mountinfo 
root@fex:~# grep home /proc/self/mountinfo
root@fex:~# grep btrfs /proc/self/mountinfo
31 22 0:23 / /backup rw,relatime - btrfs /dev/sdf1 rw,compress=zlib,space_cache
32 22 0:26 / /local rw,relatime - btrfs /dev/sde1 rw,compress=zlib,space_cache

No information about the subvolume /local/.backup/home

It seems, I have to scan the subvolume path upwards until I found a real
mount point,

-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:[ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help