|
From: | Martin Pala |
Subject: | Re: filesystem usage patch |
Date: | Fri, 03 Jan 2003 12:21:35 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021203 |
Martin Pala wrote:
int get_fsusage(char *object, Statfs_T buf)Result is stored in Statfs_T structure, that is platform independent - the result is intended to be used in Monit's validating function. "object" could be file or directory that is part of given filesystem or block special device that identifies it (filesystem must be mounted).
"object" could be just mountpoint too => valid objects (for example): 1.) block special device: /dev/hda1 2.) mountpoint: / 3.) directory: /etc 4.) file: /etc/hosts
[Prev in Thread] | Current Thread | [Next in Thread] |