Bug#614602: long filenames and loop devices are a problem?

2016-05-26 Thread Sebastian Harl
forwarded 614602 https://github.com/collectd/collectd/pull/1120
thanks

Hi,

On Tue, Feb 22, 2011 at 04:24:19PM +0100, Rainer Zocholl wrote:
> The log fills is filling up with this missleading error messages below.
> That seems to be caused by too small buffer sizes
> for "DF" filename generation and the usage of df on a loop mount.
>   
> 
> 1. Maybe a message complaining "File is ready in use" would ease 
>error finding a lot if this for 99,9% true 
> 2. The buffer length for filename should be made longer or 
> 3. if the filename is to be truncated a warning message should be issued
> 4. The df_plugin should ignore "loop" mounts as the
>df command is not delivering any data!

https://github.com/collectd/collectd/pull/1120 discusses a new buffer
size and dynamically allocated buffers to solve the issue. Better
warnings would be good but I think the actual issue should really be
fixed.

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x2F1FFCC7 +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin



signature.asc
Description: Digital signature


Bug#614602: long filenames and loop devices are a problem?

2011-02-22 Thread Rainer Zocholl
Package: collectd
Version: 4.10.1-1+squeeze2
sub...@bugs.debian.org
Linux debiani 2.6.32-5-vserver-686 #1 SMP Wed Jan 12 06:32:10 UTC 2011 i686
GNU/Linux   


Hello

collectd worked great, but recently i gott error
message my email was  growing too fast 3M an hour...
I have logcheck running and found:

The log fills is filling up with this missleading error messages below.
That seems to be caused by too small buffer sizes
for "DF" filename generation and the usage of df on a loop mount.


1. Maybe a message complaining "File is ready in use" would ease 
   error finding a lot if this for 99,9% true 
2. The buffer length for filename should be made longer or 
3. if the filename is to be truncated a warning message should be issued
4. The df_plugin should ignore "loop" mounts as the
   df command is not delivering any data!




debiani:/home2/home/samba/public/MIRROR# tail -f /var/log/syslog
Feb 22 15:43:15 debiani collectd[7893]: uc_update: Value too old: name =
debiani/df/df-home2-home-samba-public-MIRROR-WINDOWS-WSUSOffline-wsusoffline-;
value time = 1298385795; last cache update = 1298385795;
Feb 22 15:43:15 debiani collectd[7893]: Filter subsystem: Built-in target
`write': Dispatching value to all write plugins failed with status -1.
Feb 22 15:43:15 debiani collectd[7893]: uc_update: Value too old: name =
debiani/df/df-home2-home-samba-public-MIRROR-WINDOWS-WSUSOffline-wsusoffline-;
value time = 1298385795; last cache update = 1298385795;
Feb 22 15:43:15 debiani collectd[7893]: Filter subsystem: Built-in target
`write': Dispatching value to all write plugins failed with status -1.
Feb 22 15:43:15 debiani collectd[7893]: uc_update: Value too old: name =
debiani/df/df-home2-home-samba-public-MIRROR-WINDOWS-WSUSOffline-wsusoffline-;
value time = 1298385795; last cache update = 1298385795;
Feb 22 15:43:15 debiani collectd[7893]: Filter subsystem: Built-in target
`write': Dispatching value to all write plugins failed with status -1.
Feb 22 15:43:15 debiani collectd[7893]: uc_update: Value too old: name =
debiani/df/df-home2-home-samba-public-MIRROR-WINDOWS-WSUSOffline-wsusoffline-;
value time = 1298385795; last cache update = 1298385795;
Feb 22 15:43:15 debiani collectd[7893]: Filter subsystem: Built-in target
`write': Dispatching value to all write plugins failed with status -1.
Feb 22 15:43:15 debiani collectd[7893]: uc_update: Value too old: name =
debiani/df/df-home2-home-samba-public-MIRROR-WINDOWS-WSUSOffline-wsusoffline-;
value time = 1298385795; last cache update = 1298385795;
Feb 22 15:43:15 debiani collectd[7893]: Filter subsystem: Built-in target
`write': Dispatching value to all write plugins failed with status -1.



mount says:

 binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
/dev/loop10 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-w2k3-deu
//type iso9660 (ro)
/dev/loop11 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-w2k3-enu
//type iso9660 (ro)
/dev/loop12 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-w2k3-x64-deu
//type iso9660 (ro)
/dev/loop13 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-w2k3-x64-enu
//type iso9660 (ro)
/dev/loop14 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-w60-glb
//type iso9660 (ro)
/dev/loop15 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-w60-x64-glb
//type iso9660 (ro)
/dev/loop16 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-w61-glb
//type iso9660 (ro)
/dev/loop17 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-w61-x64-glb
//type iso9660 (ro)
/dev/loop18 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-wxp-deu
//type iso9660 (ro)
/dev/loop19 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-wxp-enu
//type iso9660 (ro)
/dev/loop20 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-wxp-x64-deu
//type iso9660 (ro)
/dev/loop21 on
//home2/home/samba/public/MIRROR/WINDOWS/WSUSOffline/wsusoffline-wxp-x64-enu
//type iso9660 (ro)


q



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org