[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] writeactive() not updating mtime?



Hi all!

While experimenting with local groups (again) I found two rather
serious bugs (also see other post).

A strace from leafnode (article posted while fetchnews was running):

23:05:31 fcntl(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET,
start=0, len=0}) = 0
23:11:20 write(3, "7063\n", 5)          = 5

After 6 minutes waiting fetchnews finished and leafnode acquires
the lock. I.e. fetchnews must have rewritten the groupinfo file
before/at 23:11:20.

23:11:20 stat("/var/spool/news/leaf.node/groupinfo",
{st_dev=makedev(3, 6), st_ino=72888, st_mode=S_IFREG|0664,
st_nlink=1, st_uid=9, st_gid=13, st_blksize=4096, st_blocks=2232,
st_size=1140721, st_atime=2000/11/02-23:04:43,
st_mtime=2000/11/02-23:01:32, st_ctime=2000/11/02-23:01:32}) = 0

Neither mtime (checked by rereadactive()) nor atime, not even the
ctime is changed. rereadactive() doesn't do what it should do and
the leafnode child continues storing the article and hence writes
an outdated groupinfo back to disc.

This behaviour is reproducible.

Regards,
	Jo:rg

-- 
Fortune cookie of the day:
Remember:  Silly is a state of Mind, Stupid is a way of Life.
-- Dave Butler

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list