GNOME Bugzilla – Bug 42242
fstat /etc/mtab to check if needs to be reread (for speed)
Last modified: 2004-12-22 21:47:04 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.