I have to do a program that log some strings received from a input (at this time is indifferent, but the input devices are serial ports) until the disk is full…
there is a way to know when the disk is full or how much free space I have on it?
think that log files are wrote at different times(so can’t use write() and check for ENOSPC because I must know the disk status immediatly after the boot…