summaryrefslogtreecommitdiffstats
path: root/tests/expected/findmnt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:42:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:42:50 +0000
commit8cb83eee5a58b1fad74c34094ce3afb9e430b5a4 (patch)
treea9b2e7baeca1be40eb734371e3c8b11b02294497 /tests/expected/findmnt
parentInitial commit. (diff)
downloadutil-linux-8cb83eee5a58b1fad74c34094ce3afb9e430b5a4.tar.xz
util-linux-8cb83eee5a58b1fad74c34094ce3afb9e430b5a4.zip
Adding upstream version 2.33.1.upstream/2.33.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/expected/findmnt')
-rw-r--r--tests/expected/findmnt/filter-options32
-rw-r--r--tests/expected/findmnt/filter-options-name7
-rw-r--r--tests/expected/findmnt/filter-options-nameval3
-rw-r--r--tests/expected/findmnt/filter-options-nameval-multi3
-rw-r--r--tests/expected/findmnt/filter-options-nameval-neg34
-rw-r--r--tests/expected/findmnt/filter-options-neg5
-rw-r--r--tests/expected/findmnt/filter-options-no5
-rw-r--r--tests/expected/findmnt/filter-options-no-multi3
-rw-r--r--tests/expected/findmnt/filter-types4
-rw-r--r--tests/expected/findmnt/filter-types-multi5
-rw-r--r--tests/expected/findmnt/filter-types-neg32
-rw-r--r--tests/expected/findmnt/outputs-default35
-rw-r--r--tests/expected/findmnt/outputs-force-tree35
-rw-r--r--tests/expected/findmnt/outputs-kernel35
-rw-r--r--tests/expected/findmnt/outputs-messy-mountinfo31
-rw-r--r--tests/expected/findmnt/outputs-submounts17
-rw-r--r--tests/expected/findmnt/target-non-root1
-rw-r--r--tests/expected/findmnt/target-root3
18 files changed, 290 insertions, 0 deletions
diff --git a/tests/expected/findmnt/filter-options b/tests/expected/findmnt/filter-options
new file mode 100644
index 0000000..2606bce
--- /dev/null
+++ b/tests/expected/findmnt/filter-options
@@ -0,0 +1,32 @@
+TARGET SOURCE FSTYPE OPTIONS
+/proc /proc proc rw,relatime
+|-/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/proc/sys/fs/binfmt_misc none binfmt_misc rw,relatime
+`-/proc/bus/usb /proc/bus/usb usbfs rw,relatime
+/sys /sys sysfs rw,relatime
+|-/sys/fs/cgroup tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,mode=755
+| |-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
+| |-/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
+| |-/sys/fs/cgroup/ns cgroup cgroup rw,nosuid,nodev,noexec,relatime,ns
+| |-/sys/fs/cgroup/cpu cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu
+| |-/sys/fs/cgroup/cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuacct
+| |-/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
+| |-/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
+| |-/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
+| |-/sys/fs/cgroup/net_cls cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls
+| `-/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
+|-/sys/kernel/security systemd-1 autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+|-/sys/kernel/debug systemd-1 autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+`-/sys/fs/fuse/connections fusectl fusectl rw,relatime
+/dev udev devtmpfs rw,relatime,size=1983516k,nr_inodes=495879,mode=755
+|-/dev/pts devpts devpts rw,relatime,gid=5,mode=620,ptmxmode=000
+|-/dev/shm tmpfs tmpfs rw,relatime
+|-/dev/hugepages systemd-1 autofs rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/dev/hugepages hugetlbfs hugetlbfs rw,relatime
+`-/dev/mqueue systemd-1 autofs rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+ `-/dev/mqueue mqueue mqueue rw,relatime
+/home/kzak/.gvfs gvfs-fuse-daemon fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=500,group_id=500
+/var/lib/nfs/rpc_pipefs sunrpc rpc_pipefs rw,relatime
+/mnt/sounds //foo.home/bar/ cifs rw,relatime,unc=\\foo.home\bar,username=kzak,domain=SRGROUP,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.111.1,posixpaths,serverino,acl,rsize=16384,wsize=57344
+/mnt/foo /fooooo bar rw,relatime
+rc=0
diff --git a/tests/expected/findmnt/filter-options-name b/tests/expected/findmnt/filter-options-name
new file mode 100644
index 0000000..3c635ae
--- /dev/null
+++ b/tests/expected/findmnt/filter-options-name
@@ -0,0 +1,7 @@
+TARGET SOURCE FSTYPE OPTIONS
+/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+/sys/kernel/security systemd-1 autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+/sys/kernel/debug systemd-1 autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+/dev/hugepages systemd-1 autofs rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+/dev/mqueue systemd-1 autofs rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+rc=0
diff --git a/tests/expected/findmnt/filter-options-nameval b/tests/expected/findmnt/filter-options-nameval
new file mode 100644
index 0000000..21219c5
--- /dev/null
+++ b/tests/expected/findmnt/filter-options-nameval
@@ -0,0 +1,3 @@
+TARGET SOURCE FSTYPE OPTIONS
+/sys/kernel/security systemd-1 autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+rc=0
diff --git a/tests/expected/findmnt/filter-options-nameval-multi b/tests/expected/findmnt/filter-options-nameval-multi
new file mode 100644
index 0000000..f2ab3ce
--- /dev/null
+++ b/tests/expected/findmnt/filter-options-nameval-multi
@@ -0,0 +1,3 @@
+TARGET SOURCE FSTYPE OPTIONS
+/dev/pts devpts devpts rw,relatime,gid=5,mode=620,ptmxmode=000
+rc=0
diff --git a/tests/expected/findmnt/filter-options-nameval-neg b/tests/expected/findmnt/filter-options-nameval-neg
new file mode 100644
index 0000000..5471d65
--- /dev/null
+++ b/tests/expected/findmnt/filter-options-nameval-neg
@@ -0,0 +1,34 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+|-/proc /proc proc rw,relatime
+| |-/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| | `-/proc/sys/fs/binfmt_misc none binfmt_misc rw,relatime
+| `-/proc/bus/usb /proc/bus/usb usbfs rw,relatime
+|-/sys /sys sysfs rw,relatime
+| |-/sys/fs/cgroup tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,mode=755
+| | |-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
+| | |-/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
+| | |-/sys/fs/cgroup/ns cgroup cgroup rw,nosuid,nodev,noexec,relatime,ns
+| | |-/sys/fs/cgroup/cpu cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu
+| | |-/sys/fs/cgroup/cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuacct
+| | |-/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
+| | |-/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
+| | |-/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
+| | |-/sys/fs/cgroup/net_cls cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls
+| | `-/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
+| |-/sys/kernel/debug systemd-1 autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/sys/fs/fuse/connections fusectl fusectl rw,relatime
+|-/dev udev devtmpfs rw,relatime,size=1983516k,nr_inodes=495879,mode=755
+| |-/dev/pts devpts devpts rw,relatime,gid=5,mode=620,ptmxmode=000
+| |-/dev/shm tmpfs tmpfs rw,relatime
+| |-/dev/hugepages systemd-1 autofs rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| | `-/dev/hugepages hugetlbfs hugetlbfs rw,relatime
+| `-/dev/mqueue systemd-1 autofs rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/dev/mqueue mqueue mqueue rw,relatime
+|-/boot /dev/sda6 ext3 rw,noatime,errors=continue,barrier=0,data=ordered
+|-/home/kzak /dev/mapper/kzak-home ext4 rw,noatime,barrier=1,data=ordered
+| `-/home/kzak/.gvfs gvfs-fuse-daemon fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=500,group_id=500
+|-/var/lib/nfs/rpc_pipefs sunrpc rpc_pipefs rw,relatime
+|-/mnt/sounds //foo.home/bar/ cifs rw,relatime,unc=\\foo.home\bar,username=kzak,domain=SRGROUP,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.111.1,posixpaths,serverino,acl,rsize=16384,wsize=57344
+`-/mnt/foo /fooooo bar rw,relatime
+rc=0
diff --git a/tests/expected/findmnt/filter-options-neg b/tests/expected/findmnt/filter-options-neg
new file mode 100644
index 0000000..aab2461
--- /dev/null
+++ b/tests/expected/findmnt/filter-options-neg
@@ -0,0 +1,5 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+|-/boot /dev/sda6 ext3 rw,noatime,errors=continue,barrier=0,data=ordered
+`-/home/kzak /dev/mapper/kzak-home ext4 rw,noatime,barrier=1,data=ordered
+rc=0
diff --git a/tests/expected/findmnt/filter-options-no b/tests/expected/findmnt/filter-options-no
new file mode 100644
index 0000000..aab2461
--- /dev/null
+++ b/tests/expected/findmnt/filter-options-no
@@ -0,0 +1,5 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+|-/boot /dev/sda6 ext3 rw,noatime,errors=continue,barrier=0,data=ordered
+`-/home/kzak /dev/mapper/kzak-home ext4 rw,noatime,barrier=1,data=ordered
+rc=0
diff --git a/tests/expected/findmnt/filter-options-no-multi b/tests/expected/findmnt/filter-options-no-multi
new file mode 100644
index 0000000..2d714ae
--- /dev/null
+++ b/tests/expected/findmnt/filter-options-no-multi
@@ -0,0 +1,3 @@
+TARGET SOURCE FSTYPE OPTIONS
+/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
+rc=0
diff --git a/tests/expected/findmnt/filter-types b/tests/expected/findmnt/filter-types
new file mode 100644
index 0000000..8233dac
--- /dev/null
+++ b/tests/expected/findmnt/filter-types
@@ -0,0 +1,4 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+`-/boot /dev/sda6 ext3 rw,noatime,errors=continue,barrier=0,data=ordered
+rc=0
diff --git a/tests/expected/findmnt/filter-types-multi b/tests/expected/findmnt/filter-types-multi
new file mode 100644
index 0000000..aab2461
--- /dev/null
+++ b/tests/expected/findmnt/filter-types-multi
@@ -0,0 +1,5 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+|-/boot /dev/sda6 ext3 rw,noatime,errors=continue,barrier=0,data=ordered
+`-/home/kzak /dev/mapper/kzak-home ext4 rw,noatime,barrier=1,data=ordered
+rc=0
diff --git a/tests/expected/findmnt/filter-types-neg b/tests/expected/findmnt/filter-types-neg
new file mode 100644
index 0000000..2606bce
--- /dev/null
+++ b/tests/expected/findmnt/filter-types-neg
@@ -0,0 +1,32 @@
+TARGET SOURCE FSTYPE OPTIONS
+/proc /proc proc rw,relatime
+|-/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/proc/sys/fs/binfmt_misc none binfmt_misc rw,relatime
+`-/proc/bus/usb /proc/bus/usb usbfs rw,relatime
+/sys /sys sysfs rw,relatime
+|-/sys/fs/cgroup tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,mode=755
+| |-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
+| |-/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
+| |-/sys/fs/cgroup/ns cgroup cgroup rw,nosuid,nodev,noexec,relatime,ns
+| |-/sys/fs/cgroup/cpu cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu
+| |-/sys/fs/cgroup/cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuacct
+| |-/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
+| |-/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
+| |-/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
+| |-/sys/fs/cgroup/net_cls cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls
+| `-/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
+|-/sys/kernel/security systemd-1 autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+|-/sys/kernel/debug systemd-1 autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+`-/sys/fs/fuse/connections fusectl fusectl rw,relatime
+/dev udev devtmpfs rw,relatime,size=1983516k,nr_inodes=495879,mode=755
+|-/dev/pts devpts devpts rw,relatime,gid=5,mode=620,ptmxmode=000
+|-/dev/shm tmpfs tmpfs rw,relatime
+|-/dev/hugepages systemd-1 autofs rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/dev/hugepages hugetlbfs hugetlbfs rw,relatime
+`-/dev/mqueue systemd-1 autofs rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+ `-/dev/mqueue mqueue mqueue rw,relatime
+/home/kzak/.gvfs gvfs-fuse-daemon fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=500,group_id=500
+/var/lib/nfs/rpc_pipefs sunrpc rpc_pipefs rw,relatime
+/mnt/sounds //foo.home/bar/ cifs rw,relatime,unc=\\foo.home\bar,username=kzak,domain=SRGROUP,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.111.1,posixpaths,serverino,acl,rsize=16384,wsize=57344
+/mnt/foo /fooooo bar rw,relatime
+rc=0
diff --git a/tests/expected/findmnt/outputs-default b/tests/expected/findmnt/outputs-default
new file mode 100644
index 0000000..5949579
--- /dev/null
+++ b/tests/expected/findmnt/outputs-default
@@ -0,0 +1,35 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+|-/proc /proc proc rw,relatime
+| |-/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| | `-/proc/sys/fs/binfmt_misc none binfmt_misc rw,relatime
+| `-/proc/bus/usb /proc/bus/usb usbfs rw,relatime
+|-/sys /sys sysfs rw,relatime
+| |-/sys/fs/cgroup tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,mode=755
+| | |-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
+| | |-/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
+| | |-/sys/fs/cgroup/ns cgroup cgroup rw,nosuid,nodev,noexec,relatime,ns
+| | |-/sys/fs/cgroup/cpu cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu
+| | |-/sys/fs/cgroup/cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuacct
+| | |-/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
+| | |-/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
+| | |-/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
+| | |-/sys/fs/cgroup/net_cls cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls
+| | `-/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
+| |-/sys/kernel/security systemd-1 autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| |-/sys/kernel/debug systemd-1 autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/sys/fs/fuse/connections fusectl fusectl rw,relatime
+|-/dev udev devtmpfs rw,relatime,size=1983516k,nr_inodes=495879,mode=755
+| |-/dev/pts devpts devpts rw,relatime,gid=5,mode=620,ptmxmode=000
+| |-/dev/shm tmpfs tmpfs rw,relatime
+| |-/dev/hugepages systemd-1 autofs rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| | `-/dev/hugepages hugetlbfs hugetlbfs rw,relatime
+| `-/dev/mqueue systemd-1 autofs rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/dev/mqueue mqueue mqueue rw,relatime
+|-/boot /dev/sda6 ext3 rw,noatime,errors=continue,barrier=0,data=ordered
+|-/home/kzak /dev/mapper/kzak-home ext4 rw,noatime,barrier=1,data=ordered
+| `-/home/kzak/.gvfs gvfs-fuse-daemon fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=500,group_id=500
+|-/var/lib/nfs/rpc_pipefs sunrpc rpc_pipefs rw,relatime
+|-/mnt/sounds //foo.home/bar/ cifs rw,relatime,unc=\\foo.home\bar,username=kzak,domain=SRGROUP,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.111.1,posixpaths,serverino,acl,rsize=16384,wsize=57344
+`-/mnt/foo /fooooo bar rw,relatime
+rc=0
diff --git a/tests/expected/findmnt/outputs-force-tree b/tests/expected/findmnt/outputs-force-tree
new file mode 100644
index 0000000..5949579
--- /dev/null
+++ b/tests/expected/findmnt/outputs-force-tree
@@ -0,0 +1,35 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+|-/proc /proc proc rw,relatime
+| |-/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| | `-/proc/sys/fs/binfmt_misc none binfmt_misc rw,relatime
+| `-/proc/bus/usb /proc/bus/usb usbfs rw,relatime
+|-/sys /sys sysfs rw,relatime
+| |-/sys/fs/cgroup tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,mode=755
+| | |-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
+| | |-/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
+| | |-/sys/fs/cgroup/ns cgroup cgroup rw,nosuid,nodev,noexec,relatime,ns
+| | |-/sys/fs/cgroup/cpu cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu
+| | |-/sys/fs/cgroup/cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuacct
+| | |-/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
+| | |-/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
+| | |-/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
+| | |-/sys/fs/cgroup/net_cls cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls
+| | `-/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
+| |-/sys/kernel/security systemd-1 autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| |-/sys/kernel/debug systemd-1 autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/sys/fs/fuse/connections fusectl fusectl rw,relatime
+|-/dev udev devtmpfs rw,relatime,size=1983516k,nr_inodes=495879,mode=755
+| |-/dev/pts devpts devpts rw,relatime,gid=5,mode=620,ptmxmode=000
+| |-/dev/shm tmpfs tmpfs rw,relatime
+| |-/dev/hugepages systemd-1 autofs rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| | `-/dev/hugepages hugetlbfs hugetlbfs rw,relatime
+| `-/dev/mqueue systemd-1 autofs rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/dev/mqueue mqueue mqueue rw,relatime
+|-/boot /dev/sda6 ext3 rw,noatime,errors=continue,barrier=0,data=ordered
+|-/home/kzak /dev/mapper/kzak-home ext4 rw,noatime,barrier=1,data=ordered
+| `-/home/kzak/.gvfs gvfs-fuse-daemon fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=500,group_id=500
+|-/var/lib/nfs/rpc_pipefs sunrpc rpc_pipefs rw,relatime
+|-/mnt/sounds //foo.home/bar/ cifs rw,relatime,unc=\\foo.home\bar,username=kzak,domain=SRGROUP,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.111.1,posixpaths,serverino,acl,rsize=16384,wsize=57344
+`-/mnt/foo /fooooo bar rw,relatime
+rc=0
diff --git a/tests/expected/findmnt/outputs-kernel b/tests/expected/findmnt/outputs-kernel
new file mode 100644
index 0000000..5949579
--- /dev/null
+++ b/tests/expected/findmnt/outputs-kernel
@@ -0,0 +1,35 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+|-/proc /proc proc rw,relatime
+| |-/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| | `-/proc/sys/fs/binfmt_misc none binfmt_misc rw,relatime
+| `-/proc/bus/usb /proc/bus/usb usbfs rw,relatime
+|-/sys /sys sysfs rw,relatime
+| |-/sys/fs/cgroup tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,mode=755
+| | |-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
+| | |-/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
+| | |-/sys/fs/cgroup/ns cgroup cgroup rw,nosuid,nodev,noexec,relatime,ns
+| | |-/sys/fs/cgroup/cpu cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu
+| | |-/sys/fs/cgroup/cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuacct
+| | |-/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
+| | |-/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
+| | |-/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
+| | |-/sys/fs/cgroup/net_cls cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls
+| | `-/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
+| |-/sys/kernel/security systemd-1 autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| |-/sys/kernel/debug systemd-1 autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/sys/fs/fuse/connections fusectl fusectl rw,relatime
+|-/dev udev devtmpfs rw,relatime,size=1983516k,nr_inodes=495879,mode=755
+| |-/dev/pts devpts devpts rw,relatime,gid=5,mode=620,ptmxmode=000
+| |-/dev/shm tmpfs tmpfs rw,relatime
+| |-/dev/hugepages systemd-1 autofs rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| | `-/dev/hugepages hugetlbfs hugetlbfs rw,relatime
+| `-/dev/mqueue systemd-1 autofs rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+| `-/dev/mqueue mqueue mqueue rw,relatime
+|-/boot /dev/sda6 ext3 rw,noatime,errors=continue,barrier=0,data=ordered
+|-/home/kzak /dev/mapper/kzak-home ext4 rw,noatime,barrier=1,data=ordered
+| `-/home/kzak/.gvfs gvfs-fuse-daemon fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=500,group_id=500
+|-/var/lib/nfs/rpc_pipefs sunrpc rpc_pipefs rw,relatime
+|-/mnt/sounds //foo.home/bar/ cifs rw,relatime,unc=\\foo.home\bar,username=kzak,domain=SRGROUP,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.111.1,posixpaths,serverino,acl,rsize=16384,wsize=57344
+`-/mnt/foo /fooooo bar rw,relatime
+rc=0
diff --git a/tests/expected/findmnt/outputs-messy-mountinfo b/tests/expected/findmnt/outputs-messy-mountinfo
new file mode 100644
index 0000000..c7225a1
--- /dev/null
+++ b/tests/expected/findmnt/outputs-messy-mountinfo
@@ -0,0 +1,31 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda3[/arch] ext4 rw,relatime
+|-/sys sysfs sysfs ro,nosuid,nodev,noexec,relatime
+| `-/sys/fs/cgroup tmpfs tmpfs ro,nosuid,nodev,noexec,mode=755
+| |-/sys/fs/cgroup/perf_event cgroup cgroup ro,nosuid,nodev,noexec,relatime,perf_event
+| |-/sys/fs/cgroup/net_cls cgroup cgroup ro,nosuid,nodev,noexec,relatime,net_cls
+| |-/sys/fs/cgroup/blkio cgroup cgroup ro,nosuid,nodev,noexec,relatime,blkio
+| |-/sys/fs/cgroup/memory cgroup cgroup ro,nosuid,nodev,noexec,relatime,memory
+| |-/sys/fs/cgroup/pids cgroup cgroup ro,nosuid,nodev,noexec,relatime,pids
+| |-/sys/fs/cgroup/cpuset cgroup cgroup ro,nosuid,nodev,noexec,relatime,cpuset
+| |-/sys/fs/cgroup/freezer cgroup cgroup ro,nosuid,nodev,noexec,relatime,freezer
+| |-/sys/fs/cgroup/cpu,cpuacct cgroup cgroup ro,nosuid,nodev,noexec,relatime,cpu,cpuacct
+| |-/sys/fs/cgroup/devices cgroup cgroup ro,nosuid,nodev,noexec,relatime,devices
+| `-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
+|-/dev tmpfs tmpfs rw,nosuid,mode=755
+| |-/dev/mqueue mqueue mqueue rw,relatime
+| |-/dev/hugepages hugetlbfs hugetlbfs rw,relatime
+| |-/dev/shm tmpfs tmpfs rw,nosuid,nodev
+| |-/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666
+| `-/dev/console devpts[/5] devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
+|-/run tmpfs tmpfs rw,nosuid,nodev,mode=755
+| |-/run/user/0 tmpfs tmpfs rw,nosuid,nodev,relatime,size=1634120k,mode=700
+| `-/run/systemd/nspawn/incoming run[/systemd/nspawn/propagate/arch] tmpfs ro,relatime,mode=755
+|-/tmp tmpfs tmpfs rw
+`-/proc proc proc rw,nosuid,nodev,noexec,relatime
+ |-/proc/sys/kernel/random/boot_id tmpfs[/proc-sys-kernel-random-boot-id//deleted] tmpfs rw,nosuid,nodev,mode=755
+ |-/proc/kmsg tmpfs[/kmsg//deleted] tmpfs rw,nosuid,nodev,mode=755
+ |-/proc/sys proc[/sys] proc ro,nosuid,nodev,noexec,relatime
+ | `-/proc/sys/kernel/random/boot_id tmpfs[/proc-sys-kernel-random-boot-id//deleted] tmpfs ro,nosuid,nodev,mode=755
+ `-/proc/sysrq-trigger proc[/sysrq-trigger] proc ro,nosuid,nodev,noexec,relatime
+rc=0
diff --git a/tests/expected/findmnt/outputs-submounts b/tests/expected/findmnt/outputs-submounts
new file mode 100644
index 0000000..d7661e3
--- /dev/null
+++ b/tests/expected/findmnt/outputs-submounts
@@ -0,0 +1,17 @@
+TARGET SOURCE FSTYPE OPTIONS
+/sys /sys sysfs rw,relatime
+|-/sys/fs/cgroup tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,mode=755
+| |-/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
+| |-/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
+| |-/sys/fs/cgroup/ns cgroup cgroup rw,nosuid,nodev,noexec,relatime,ns
+| |-/sys/fs/cgroup/cpu cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu
+| |-/sys/fs/cgroup/cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuacct
+| |-/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
+| |-/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
+| |-/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
+| |-/sys/fs/cgroup/net_cls cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls
+| `-/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
+|-/sys/kernel/security systemd-1 autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+|-/sys/kernel/debug systemd-1 autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
+`-/sys/fs/fuse/connections fusectl fusectl rw,relatime
+rc=0
diff --git a/tests/expected/findmnt/target-non-root b/tests/expected/findmnt/target-non-root
new file mode 100644
index 0000000..3214337
--- /dev/null
+++ b/tests/expected/findmnt/target-non-root
@@ -0,0 +1 @@
+rc=1
diff --git a/tests/expected/findmnt/target-root b/tests/expected/findmnt/target-root
new file mode 100644
index 0000000..a21dbdb
--- /dev/null
+++ b/tests/expected/findmnt/target-root
@@ -0,0 +1,3 @@
+TARGET SOURCE FSTYPE OPTIONS
+/ /dev/sda4 ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered
+rc=0