Forum: Cfengine Help Subject: Re: disk space monitoring Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,18152,18156#msg-18156
By the way, I agree that "no crossing filesystems" is the most commonly available option, and that is fine with me. However: 1. In this case the name and documentation of check_foreign should definitely be changed. 2. In any case the implementation is wrong. As per Neil's example, if I'm explicitely specifying for /usr to be checked, for example, this means I want to start the check there, so /usr should not be skipped. The check for "am I in the same device as my parent directory" should not be made for the top directory given by the policy (i.e. if I use "find /usr -xdev", then the command does not descend into any other filesystems mounted under /usr, but it does examine /usr, even if it's mounted on a different FS than /) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine