Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Oct 2022 15:17:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 267270] devel/gvfs:  Make gvfsd-trash optional
Message-ID:  <bug-267270-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267270

            Bug ID: 267270
           Summary: devel/gvfs:  Make gvfsd-trash optional
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: lab+bsd@thinkum.space
          Assignee: gnome@FreeBSD.org
             Flags: maintainer-feedback?(gnome@FreeBSD.org)

Created attachment 237527
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237527&action=
=3Dedit
Adding an option for gvfsd-trash

After discovering that gvfsd-trash had more than 10,000 file descriptors op=
en -
visible in 'fstat -p' - I'd developed a workaround for disabling gvfsd-trash
locally.=20

~~~~
mkdir -p /usr/local/etc/gvfs/mounts
for F in /usr/local/share/gvfs/mounts/*.mount; do
    install -l rs $F /usr/local/etc/gvfs/mounts/$(basename $F);
done
rm /usr/local/etc/gvfs/mounts/trash.mount
~~~~

then in /etc/profile
~~~~
if [ -e /usr/local/etc/gvfs/mounts ]; then
  export GVFS_MOUNTABLE_DIR=3D/usr/local/etc/gvfs/mounts
fi
~~~~

This workaround would not ensure that /usr/local/etc/gvfs/mounts would stay=
 in
sync with /usr/local/share/gvfs/mounts/

The attached patch would provide a way to disable gvfsd-trash in the port
build.=20

The patch will add an option to devel/gvfs for not installing gvfsd-trash.

This first patch is provided in assuming that nothing will break with
libexec/gvfsd-trash not installed. In the patched port, the main idea was to
make it optional to install ${DATADIR}/mounts/trash.mount. When the TRASH
option is not active, both of those files will be removed during post-insta=
ll.

Considering the approximate number of concerns that users may have experien=
ced
with gvfsd-trash at the desktop - e.g in relation to zfs unmount, in regard=
s to
process utilization, and in regards to number of open file descriptors - the
option is disabled by default, in the patched port

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267270-7788>