Skip Menu |

This queue is for tickets about the Sys-Statistics-Linux CPAN distribution.

Report information
The Basics
Id: 39723
Status: resolved
Priority: 0/
Queue: Sys-Statistics-Linux

People
Owner: Nobody in particular
Requestors: jhoblitt [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 0.41



Subject: Sys::Statistics::Linux::DiskUsage does not report magical NFS volume mounts
The syntax being used for df does not show Linux's (optional) magical NFS mounts that can be used instead of running NFS over the loopback device to mount locally exported volumes. Unlikely regular --bind mounts df can list these when passed the -a option. It would be nice to list bind mounts as well but I don't believe the current version of df can do this (the information is in /proc/mounts thou). Eg. jhoblitt@ipp019 ~ $ mountpoint /data/ipp019.0 /data/ipp019.0 is a mountpoint jhoblitt@ipp019 ~ $ df -kP Filesystem 1024-blocks Used Available Capacity Mounted on /dev/sda3 31497116 6446864 23450252 22% / udev 10240 160 10080 2% /dev shm 4055452 0 4055452 0% /dev/shm /dev/sda4 10651588352 8164829048 2379818540 78% /export/ipp019.0 ipp004:/export/ipp004.0 10651598120 4575755504 5968901752 44% /data/ipp004.0 jhoblitt@ipp019 ~ $ df -akP Filesystem 1024-blocks Used Available Capacity Mounted on /dev/sda3 31497116 6446864 23450252 22% / proc 0 0 0 - /proc sysfs 0 0 0 - /sys udev 10240 160 10080 2% /dev devpts 0 0 0 - /dev/pts shm 4055452 0 4055452 0% /dev/shm /dev/sda4 10651588352 8164829048 2379818540 78% /export/ipp019.0 usbfs 0 0 0 - /proc/bus/usb securityfs 0 0 0 - /sys/kernel/security nfsd 0 0 0 - /proc/fs/nfs automount(pid7854) 0 0 0 - /data automount(pid7868) 0 0 0 - /mnt ipp004:/export/ipp004.0 10651598120 4575755504 5968901752 44% /data/ipp004.0 /export/ipp019.0 10651588352 8164829048 2379818540 78% /data/ipp019.0 jhoblitt@ipp019 ~ $ cat /proc/mounts rootfs / rootfs rw 0 0 /dev/sda3 / ext3 rw,noatime,nodiratime,errors=continue,data=ordered 0 0 proc /proc proc rw,nosuid,nodev,noexec 0 0 sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0 udev /dev tmpfs rw,nosuid,size=10240k,mode=755 0 0 devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0 shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 /dev/sda4 /export/ipp019.0 ext3 rw,nosuid,nodev,noatime,nodiratime,errors=continue,data=ordered 0 0 usbfs /proc/bus/usb usbfs rw,nosuid,noexec,devgid=85,devmode=664 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec 0 0 nfsd /proc/fs/nfs nfsd rw,nosuid,nodev,noexec 0 0 automount(pid7854) /data autofs rw,fd=4,pgrp=7854,timeout=60,minproto=2,maxproto=4,indirect 0 0 automount(pid7868) /mnt autofs rw,fd=4,pgrp=7868,timeout=60,minproto=2,maxproto=4,indirect 0 0 ipp004:/export/ipp004.0 /data/ipp004.0 nfs rw,nosuid,vers=3,rsize=8192,wsize=8192,namlen=255,soft,nointr,proto=tcp,timeo=14,retrans=6,sec=sys,addr=166.122.172.18 0 0 /dev/sda4 /data/ipp019.0 ext3 rw,nosuid,nodev,noatime,nodiratime,errors=continue,data=ordered 0 0
This is not a bug! <Quote> DISK USAGE INFORMATIONS Generated by /bin/df -kP. </quote> I changed your bug report to a feature request (wishlist).
Added: $Sys::Statistics::Linux::DiskUsage::DF_PATH $Sys::Statistics::Linux::DiskUsage::DF_CMD Take a look into the documentation of Sys::Statistics::Linux::DiskUsage v0.41 and into the examples/ directory of the distribution.