Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: Feature Request
Author: mikec
Link to topic: https://cfengine.com/forum/read.php?3,18993,19004#msg-19004

Daniel V. Klein Wrote:
-------------------------------------------------------
> It makes sense to do something if a file exists or
> not (you can do that now), and likewise if a file
> is of zero-size or not (not currently possible,
> but a non-existent file should also have zero
> size), so it seems logical to also do something
> based on a file's size (i.e., /foo/baz is bigger
> than /foo/gar).
> 
> I'd opine that a minimum, a check for non-zero
> size is valuable.  And since it can be easily done
> with a commands promise, it seems reasonable to me
> to add that info inside Cfengine.

Can't find the code, but I've had one situation where a db file was 
meant to have a fixed size, but could, under some circumstances,
grow unexpectedly leading to a performance hit.  I wanted to
promise to rebuild the db if the size wasn't exactly as desired.  

I don't think this is a ``common'' requirement, but it does seem
odd to not be there, considering that promises can be made on
other file attributes.  

Cheers

Mike

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to