CIFS shares show up in "df -l" output, which should exclude network mounts
Issue
- The
df -lcommand is supposed to exclude network shares:
-l, --local
limit listing to local file systems
- However it does not always exclude
CIFSshares:
# df -kP
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/vg_unused-lv_root 8813300 1382648 6982960 17% /
tmpfs 251128 0 251128 0% /dev/shm
/dev/vda1 495844 56354 413890 12% /boot
\\server.usersys.redhat.com/cifs 51606140 35952804 13031896 74% /mnt
# df -kPl
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/vg_unused-lv_root 8813300 1382648 6982960 17% /
tmpfs 251128 0 251128 0% /dev/shm
/dev/vda1 495844 56354 413890 12% /boot
\\server.usersys.redhat.com/cifs 51606140 35952804 13031896 74% /mnt
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
