GNOME Bugzilla – Bug 748907
libtracker-common: Don’t fail statvfs() on a missing directory
Last modified: 2015-07-03 22:52:14 UTC
Simple patch to handle ENOENT from statvfs() correctly.
Created attachment 302883 [details] [review] libtracker-common: Don’t fail statvfs() on a missing directory If $XDG_CACHE_HOME/tracker doesn’t exist on startup, the statvfs() call to determine how much space is left will fail with ENOENT. However, the code currently interprets this as being out of space, and will cause the rest of Tracker to shut down, even if there is actually plenty of space left on the disk. Avoid this by traversing up the directory hierarchy until statvfs() does not fail with ENOENT.
Review of attachment 302883 [details] [review]: Superb patch and nice catch! Thanks Philip :)
The patch seems in, closing.