desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #128531
[Bug 1442649] Re: nautilus trash doesn't include btrfs subvolumes
The trouble seems to stem from glib's way of deleting files being
different to the way gvfs tries to locate trash directories.
glib's gio/glocalfile.c contains the find_mountpoint_for function which
is used to determine the device's root directory as location to put the
.Trash-<uid> directory. It looks at the stat(2) st_dev value ("device
number"). btrfs gives each subvolume a different device number.
gvfs's trashlib searches for trash directories based on mount points
determined by getmntent_r(2).
I do not know how to fix it in general. A fix for btrfs might be to
search for all subvolumes of a btrfs mount point returned by
getmntent_r(2). Not sure if you can listen to new subvolumes being
created after the initial search, though (maybe inotify can?).
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/1442649
Title:
nautilus trash doesn't include btrfs subvolumes
Status in nautilus package in Ubuntu:
Confirmed
Bug description:
Files in `/path/to/subvolume/.Trash-1000` aren't listed in the global
trash.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: nautilus 1:3.14.2-0ubuntu8
Uname: Linux 4.0.0-040000rc7-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.17-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Apr 10 15:54:01 2015
EcryptfsInUse: Yes
GsettingsChanges: b'org.gnome.nautilus.list-view' b'default-column-order' b"['name', 'size', 'type', 'date_modified', 'date_accessed', 'owner', 'group', 'permissions', 'mime_type', 'where']"
InstallationDate: Installed on 2015-04-02 (7 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Beta amd64 (20150326)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1442649/+subscriptions
References