[users at i-scream] [PATCH] nfs support in sg_get_fs_stats()
Roman Neuhauser
neuhauser at chello.cz
Wed Feb 23 22:31:29 GMT 2005
Hello,
the patch at
http://codex.sigpipe.cz/~smradoch/misc/libstatgrab/libstatgrab-nfs-disk_stats.c.patch
is all I had to do to make sg_get_fs_stats() on Linux (RHEL3) and
FreeBSD-4.10 report nfs mounts as well. I have tested it with the PHP
(PECL) statgrab extension, and it looks like this:
...
[7] => Array
(
[device_name] => corellia:/home/calls
[fs_type] => nfs
[mnt_point] => /home/calls
[size] => 10840489984
[used] => 6240845824
[avail] => 4048965632
[total_inodes] => 1346592
[used_inodes] => 159824
[free_inodes] => 1186768
)
[8] => Array
(
[device_name] => corellia:/home/calls2
[fs_type] => nfs
[mnt_point] => /home/calls2
[size] => 10840489984
[used] => 6240845824
[avail] => 4048965632
[total_inodes] => 1346592
[used_inodes] => 159824
[free_inodes] => 1186768
)
...
Can this be commited?
--
FreeBSD 4.10-STABLE
11:25PM up 14:47, 11 users, load averages: 0.03, 0.12, 0.08
More information about the users
mailing list