[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: hard drive access every few seconds...
- From: Eric Wood <eric interplas com>
- To: shrike-list redhat com
- Subject: Re: hard drive access every few seconds...
- Date: 30 Apr 2003 22:17:55 -0400
nautilus used to do open()'s each time you made an action - which
changed the atime. Nautilus already uses fam in the file navigation -
just create a file from the command line and watch the icon appear
instant in the window. However, they're still continuously stat'ing
mtab. So they're using fam in some place and not in others.
How can you stat /proc/mount and test for a change since the times
aren't maintained on a /proc fs?
However you can test for a filesize change if they preserved the last
file size - which they do the last mtime. So if that don't want to use
fam, they could poll /proc/mount with stat and test for a size change.
Makes you wonder why /etc/mtab even exists nowadays.
-eric wood
On Wed, 2003-04-30 at 17:06, Gordon Messmer wrote:
> I haven't used fam before, but that would likely cause the desktop
> device icons to stop working if it were turned off. I'm for it, since
> it's consistent with what they're already doing, but using fstat()
> rather than stat(), or stat() on /proc/mounts will work, too.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]