bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IsMountedFileSystem()


From: Michael Santos
Subject: IsMountedFileSystem()
Date: Tue, 10 Aug 2004 11:45:36 -0400
User-agent: Mutt/1.4.2.1i

If disks are laid out e.g.,:

Filesystem      1K-blocks     Used     Avail Capacity  Mounted on
/dev/wd0a          198759    85779    103043    45%    /
/dev/wd0e         5955669  2554703   3103183    45%    /usr

and cfagent.conf contains:

disks:
    any::
        /usr freespace=99% define=home_full             # Fails
        /usr freespace=99% define=home_full force=true  # Works
        /usr/bin freespace=99% define=home_full         # Works

'home_full' will fail to be defined because / and /usr are on
different devices:

mount.c::IsMountedFileSystem()

    137 if (childstat->st_dev != parentstat.st_dev)
    138    {
    139    Debug2("[%s is on a different file system, not descending]\n",dir);
    140    return (true);
    141    }

-- 
Michael Santos <address@hidden>
Unix Administrator/NBS Technologies Inc.
Commerce Gateway




reply via email to

[Prev in Thread] Current Thread [Next in Thread]