I'm looking for a way to query a mounted overlay filesystem (overlayfs
) in order to check it's upper and lower directory, but until now I haven't found any suitable command for that. Is there is a way to do such a check ?
I mounted the overlayfs
with a command like the one below:
mount -t overlayfs -o lowerdir=/mnt/root-ro,upperdir=/data/root-rw overlayfs-root ${rootmnt}
The mount
command didn't give me enough information:
root@ubuntu12:~# mount -l
overlayfs-root on / type overlayfs (rw)
/dev/sda1 on /mnt/root-ro type ext4 (ro,relatime,data=ordered) [ROOT]
/dev/sdb1 on /data type ext4 (rw,errors=remount-ro) [DATA]
/sys/fs/aufs
can be found one directory per instance of currently mounted aufs filesystem. Inside each directory, there are filesbr0
,br1
, and so on, which contain the names of each of the branches of that aufs instance.