find skips directory when pruning ".gvfs"

Bug #397103 reported by Conrad Roeber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
findutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

In a user's home directory, run "find" as root as follows:

    # cd /home/cro
    # find . -path ./.gvfs -prune -o -print

"find" skips ".gvfs" as expected but fails to descend into the "Dokumente" directory.

The problem occurs under the following conditions:

- "find" is run as "root" via "sudo find"
- gvfs-fuse-daemon mounted on /home/cro/.gvfs

In my case, just the "Dokumente" directory is skipped. I do not have access to another Ubuntu system and cannot say if and how the issue manifests itself on other installations.

The issue occurs when using "flexbackup", and it is annoying that only the less interesting part of my files is backed up.

Work-around is to unmount "gvfs-fuse-daemon" before backup.

Ubuntu 9.04
findutils 4.4.0-2ubuntu4

affects: ubuntu → findutils (Ubuntu)
Revision history for this message
sageb1 (shkawamoto) wrote :

I have a question: could gvfs-fuse-daemon cause "sudo updatedb &" to give the error where /st/bin/find cannot look into .gvfs due to the directory permissions being dr-x (500).

It is possible that there must be a directory-related number before "500" or .gvfs is a virtual directory mounted by interaction between gvfs-fuse-daemon and libgvfs even when drives are mounted.

Since .gvfs is only used with USB drives, sdcards in usb adapter, and devices such as the MTP drive on the cell phone via bluetooth, the find error is not a big error and can be ignore because it is not mission critical.

Hence the lack of complaints about it, because it only occurs when gvfs is not mounted to removable media such remote devices such as the MTP drive on a cell phone paired to my computer, an SDcard or USB drive.

Please note that I am only asking a related question, not a real bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.