Bug 211608 - man 2 umount2 presents MNT_EXPIRE and MNT_DETACH flags that no longer exists
Summary: man 2 umount2 presents MNT_EXPIRE and MNT_DETACH flags that no longer exists
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: man-pages
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-20 14:06 UTC by Jindrich Novy
Modified: 2013-07-02 23:18 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-12-01 10:50:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jindrich Novy 2006-10-20 14:06:40 UTC
Description of problem:
       MNT_FORCE (since Linux 2.1.116)
              Force unmount even if busy.  (Only for NFS mounts.)

       MNT_DETACH (since Linux 2.4.11)
              Perform a lazy unmount: make the mount point unavailable for new
              accesses, and actually perform the unmount when the mount  point
              ceases to be busy.

       MNT_EXPIRE (since Linux 2.6.8)
              Mark  the  mount point as expired.  If a mount point is not cur-
              rently in use, then an initial call to umount2() with this  flag
              fails  with  the  error  EAGAIN,  but  marks  the mount point as
              expired.  The mount point remains expired as long  as  it  isn’t
              accessed  by  any  process.   A second umount2() call specifying
              MNT_EXPIRE unmounts an expired mount point.  This flag cannot be
              specified with either MNT_FORCE or MNT_DETACH.


Version-Release number of selected component (if applicable):
man-pages-2.39-5

How reproducible:
always

Steps to Reproduce:
1. man 2 umount2
2.
3.
  
Actual results:
MNT_DETACH and MNT_EXPIRE described.

Expected results:
MNT_DETACH and MNT_EXPIRE removed as the only functional flag is MNT_FORCE

Additional info:
Try to compile:

#include <sys/mount.h>

int main() {
  umount2("/mnt/store",MNT_DETACH);
  return 0;
}

Comment 1 Ivana Varekova 2006-12-01 10:50:33 UTC
Fixed in man-pages-2.43-1.fc7.

Comment 2 Michael Kerrisk 2007-05-26 06:54:20 UTC
This bug report, and the fix in the FC man pages, are wrong.  MNT_DETACH and
MNT_EXPIRE are alive and well in 2.6.22-rc2.  Getting compiler errors in an
example program simply tells us that glibc has not included these definitions
yet.  (They are in linux/fs.h.)


Note You need to log in before you can comment on or make changes to this bug.