]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: update documentation for MNT_ERR_APPLYFLAGS
authorDebarshi Ray <rishi@fedoraproject.org>
Thu, 29 Jun 2023 11:04:41 +0000 (13:04 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Aug 2023 09:20:57 +0000 (11:20 +0200)
The implementation using the new FD based mount kernel API (ie.,
fsconfig/fsopen) uses MNT_ERR_APPLYFLAGS for failed mount_setattr(2)
calls, which involves more mount attributes (eg., MOUNT_ATTR_RDONLY,
MOUNT_ATTR_NOSUID, etc.) in addition to the MS_PROPAGATION flags (eg.,
MS_SHARED, MS_UNBINDABLE, etc.).

Note that mount_setattr(2) is part of the new FD based mount kernel API,
and is not used by the classic mount(2) based version.

Fallout from 987d844cdbc0f91ca81de3c1e5d0628a60eb458f

Signed-off-by: Debarshi Ray <rishi@fedoraproject.org>
libmount/src/libmount.h.in

index 9f07f95cf2d6f560dfc245c20dab462c58a37060..06c27047d2dfd5151376681ba433c685652f414a 100644 (file)
@@ -189,7 +189,8 @@ enum {
 /**
  * MNT_ERR_APPLYFLAGS:
  *
- * failed to apply MS_PROPAGATION flags
+ * failed to apply MS_PROPAGATION flags, and MOUNT_ATTR_* attributes for
+ * mount_setattr(2)
  */
 #define MNT_ERR_APPLYFLAGS   5005
 /**