From cfe5e3905201349e9cf3f95d52ff4bd100bde37d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 21:10:49 +0200 Subject: Adding upstream version 2.39.3. Signed-off-by: Daniel Baumann --- tests/expected/findmnt/filter-options | 31 ++++++++++++++++++++ tests/expected/findmnt/filter-options-name | 7 +++++ tests/expected/findmnt/filter-options-nameval | 3 ++ .../expected/findmnt/filter-options-nameval-multi | 3 ++ tests/expected/findmnt/filter-options-nameval-neg | 33 +++++++++++++++++++++ tests/expected/findmnt/filter-options-neg | 5 ++++ tests/expected/findmnt/filter-options-no | 5 ++++ tests/expected/findmnt/filter-options-no-multi | 3 ++ tests/expected/findmnt/filter-types | 4 +++ tests/expected/findmnt/filter-types-multi | 5 ++++ tests/expected/findmnt/filter-types-neg | 31 ++++++++++++++++++++ tests/expected/findmnt/outputs-default | 34 ++++++++++++++++++++++ tests/expected/findmnt/outputs-force-tree | 34 ++++++++++++++++++++++ tests/expected/findmnt/outputs-kernel | 34 ++++++++++++++++++++++ tests/expected/findmnt/outputs-messy-mountinfo | 31 ++++++++++++++++++++ tests/expected/findmnt/outputs-submounts | 17 +++++++++++ tests/expected/findmnt/target-non-root | 1 + tests/expected/findmnt/target-root | 3 ++ 18 files changed, 284 insertions(+) create mode 100644 tests/expected/findmnt/filter-options create mode 100644 tests/expected/findmnt/filter-options-name create mode 100644 tests/expected/findmnt/filter-options-nameval create mode 100644 tests/expected/findmnt/filter-options-nameval-multi create mode 100644 tests/expected/findmnt/filter-options-nameval-neg create mode 100644 tests/expected/findmnt/filter-options-neg create mode 100644 tests/expected/findmnt/filter-options-no create mode 100644 tests/expected/findmnt/filter-options-no-multi create mode 100644 tests/expected/findmnt/filter-types create mode 100644 tests/expected/findmnt/filter-types-multi create mode 100644 tests/expected/findmnt/filter-types-neg create mode 100644 tests/expected/findmnt/outputs-default create mode 100644 tests/expected/findmnt/outputs-force-tree create mode 100644 tests/expected/findmnt/outputs-kernel create mode 100644 tests/expected/findmnt/outputs-messy-mountinfo create mode 100644 tests/expected/findmnt/outputs-submounts create mode 100644 tests/expected/findmnt/target-non-root create mode 100644 tests/expected/findmnt/target-root (limited to 'tests/expected/findmnt') diff --git a/tests/expected/findmnt/filter-options b/tests/expected/findmnt/filter-options new file mode 100644 index 0000000..97b0ead --- /dev/null +++ b/tests/expected/findmnt/filter-options @@ -0,0 +1,31 @@ +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 +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..f0467ef --- /dev/null +++ b/tests/expected/findmnt/filter-options-nameval-neg @@ -0,0 +1,33 @@ +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 +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..97b0ead --- /dev/null +++ b/tests/expected/findmnt/filter-types-neg @@ -0,0 +1,31 @@ +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 +rc=0 diff --git a/tests/expected/findmnt/outputs-default b/tests/expected/findmnt/outputs-default new file mode 100644 index 0000000..0159935 --- /dev/null +++ b/tests/expected/findmnt/outputs-default @@ -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/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 +rc=0 diff --git a/tests/expected/findmnt/outputs-force-tree b/tests/expected/findmnt/outputs-force-tree new file mode 100644 index 0000000..0159935 --- /dev/null +++ b/tests/expected/findmnt/outputs-force-tree @@ -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/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 +rc=0 diff --git a/tests/expected/findmnt/outputs-kernel b/tests/expected/findmnt/outputs-kernel new file mode 100644 index 0000000..0159935 --- /dev/null +++ b/tests/expected/findmnt/outputs-kernel @@ -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/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 +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 -- cgit v1.2.3