Skip to content

Commit f890abb

Browse files
authored
Merge pull request ceph#58596 from batrick/superuser-doc
doc: clarify superuser note for ceph-fuse Reviewed-by: Zac Dover <[email protected]>
2 parents f4ac1f4 + 7290bdc commit f890abb

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

doc/cephfs/mount-prerequisites.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
Mount CephFS: Prerequisites
22
===========================
33

4-
You can use CephFS by mounting it to your local filesystem or by using
5-
:ref:`cephfs-shell <cephfs-shell>`. Mounting CephFS requires superuser
6-
privileges to trim dentries by issuing a remount of itself. CephFS can be
7-
mounted `using kernel`_ as well as `using FUSE`_. Both have their own
8-
advantages. Read the following section to understand more about both of these
9-
ways to mount CephFS.
4+
You can use CephFS by mounting the file system on a machine or by using
5+
:ref:`cephfs-shell <cephfs-shell>`. A system mount can be performed using `the
6+
kernel driver`_ as well as `the FUSE driver`_. Both have their own advantages
7+
and disadvantages. Read the following section to understand more about both of
8+
these ways to mount CephFS.
109

1110
For Windows CephFS mounts, please check the `ceph-dokan`_ page.
1211

@@ -70,6 +69,6 @@ Ceph MON resides.
7069

7170
.. _Client Authentication: ../client-auth
7271
.. _cephfs-shell: ..cephfs-shell
73-
.. _using kernel: ../mount-using-kernel-driver
74-
.. _using FUSE: ../mount-using-fuse
72+
.. _the kernel driver: ../mount-using-kernel-driver
73+
.. _the FUSE driver: ../mount-using-fuse
7574
.. _ceph-dokan: ../ceph-dokan

doc/cephfs/mount-using-fuse.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ Prerequisites
1212
Go through the prerequisites required by both, kernel as well as FUSE mounts,
1313
in `Mount CephFS: Prerequisites`_ page.
1414

15-
.. note:: Mounting CephFS using FUSE requires superuser privileges to trim dentries
16-
by issuing a remount of itself.
15+
.. note:: Mounting CephFS using FUSE requires superuser privileges (sudo/root).
16+
The libfuse interface does not provide a mechanism to trim cache entries in the
17+
kernel so a remount (``mount(2)``) system call is required to force the kernel
18+
to drop the cached metadata. ``ceph-fuse`` issues these remount system calls
19+
periodically in response to cache pressure in the MDS or due to metadata cache revocations.
1720

1821
Synopsis
1922
========

0 commit comments

Comments
 (0)