After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 42242 - fstat /etc/mtab to check if needs to be reread (for speed)
fstat /etc/mtab to check if needs to be reread (for speed)
Status: VERIFIED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gene Z. Ragan
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2000-08-21 22:40 UTC by eazel
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description eazel 2001-09-10 00:37:51 UTC
It's much faster to check the last modified date of /etc/mtab via stat(2)
than reading it in every two seconds and reparsing it.

Alternatively,

	http://oss.sgi.com/projects/fam/



------- Additional Comments From darin@bentspoon.com 2000-08-22 09:08:21 ----

Bug 40779 says that we'd like to use fam some day.



------- Additional Comments From eli@eazel.com 2000-10-16 19:47:44 ----

Batch-assigning QA ownership of remaining bugs to eli@eazel.com



------- Additional Comments From gzr@eazel.com 2000-12-11 10:24:43 ----

I now use /proc/mounts.  This is faster and doesn't hit the disk. This is good 
for laptop users.



------- Additional Comments From eazel@linuxstuff.org 2000-12-11 10:53:53 ----

The FS cache will store the info that's returned by fstat(), so the disk
isn't hit anyway once it's cached (2.4.x kernels).

And /proc/mounts may be Linux specific.

..just some food for thought.




------- Additional Comments From eli@eazel.com 2001-01-10 14:16:41 ----

Gene says we don't use /etc/mtab anymore, and this bug no longer applies.
Rubber-stamping as verified.



------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 20:37 -------

The original reporter (eazel@linuxstuff.org) of this bug does not have an account here.
Reassigning to the exporter, unknown@bugzilla.gnome.org.