Re: question about the "storage" promise
Xander Cage <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
ok... seems standard statvfs is used, good... https://github.com/cfengine/core/blob/0c12039822e47505cb16325367ae80ab4740c15f/libpromises/storage_tools.c#L84 i cobbled together a small test prog with the cfengine used functions an it returns correct values. my problem seems to be the "sensible_size" attribute. can someone elaborate what this passus means? libpromises/mod_storage.c "Minimum size in bytes that should be used on a sensible-looking storage device" what the hell is a "sensible-looking storage device"? i am aware that the standard body has a default value of 10000 which is what i a using in my promise. still not sure why 6175 bytes reported as free. wbr chris On Wednesday, February 23, 2022 at 10:35:17 PM UTC+1 Nick Anderson wrote: > > Xander Cage <[email protected]> writes: > > > Hi, > > > > Where does the "storage" promise get its information about filesystem > sizes > > from? > > > https://github.com/cfengine/core/blob/0c12039822e47505cb16325367ae80ab4740c15f/cf-agent/verify_storage.c#L249-L254 > > > i have somewhat weird output on one machine. > > > > root@nimvie: /root # df -m /opt > > Filesystem MB blocks Free %Used Iused %Iused Mounted on > > /dev/hd10opt 8192.00 4292.49 48% 115106 11% /opt > > > > root@nimvie: /home/tremch/GIT/masterfiles_itsv # > /var/cfengine/bin/cf-agent > > -KI -b rootvg_diskspace > > info: Using command line specified bundlesequence > > info: Filesystem '/var' content seems to be sensible as promised > > error: File system '/opt' is suspiciously small! (6175 bytes) -> simply > > bullshit > > info: Filesystem '/' content seems to be sensible as promised > > info: Filesystem '/usr' content seems to be sensible as promised > > info: Filesystem '/tmp' content seems to be sensible as promised > > > > > > wbr > > > > chris > > > -- > Nick Anderson | Doer of Things | (+1) 785-550-1767 <(785)%20550-1767> | > https://northern.tech > -- You received this message because you are subscribed to the Google Groups "help-cfengine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/83d9452a-c4ad-481e-8cfc-324a05068774n%40googlegroups.com.