Bug 10566 - sys/mount.h does not define MNT_DETACH and MNT_EXPIRE
Summary: sys/mount.h does not define MNT_DETACH and MNT_EXPIRE
Status: RESOLVED DUPLICATE of bug 10092
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.10
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 09:45 UTC by Michael Kerrisk
Modified: 2014-07-01 06:56 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kerrisk 2009-08-27 09:45:52 UTC
The Linux kernel defines the following unmount() flags (in include/linux/fs.h):

#define MNT_FORCE       0x00000001      /* Attempt to forcibily umount */
#define MNT_DETACH      0x00000002      /* Just detach from the tree */
#define MNT_EXPIRE      0x00000004      /* Mark for expiry */

Glibc exposes the MNT_FORCE flag in <sys/moun.t>, but not the other two flags.

The other two flags are nevertherless useful to userland, and should be defined
in glibc. MNT_DETACH is available since Linux 2.4.11. MNT_EXPIRE is available
since Linux 2.6.11.
Comment 1 Ulrich Drepper 2009-08-31 12:05:18 UTC

*** This bug has been marked as a duplicate of 10092 ***