Re: Unmounting by filesystem ID

From: Kris Kennaway (kris_at_obsecurity.org)
Date: 06/29/03

  • Next message: Scott Long: "Re: API change for bus_dma"
    Date: Sat, 28 Jun 2003 17:27:24 -0700
    To: Ian Dowse <iedowse@maths.tcd.ie>
    
    
    

    On Sat, Jun 28, 2003 at 10:54:04PM +0100, Ian Dowse wrote:
    >
    > The patch below adds a new mount flag MNT_BYFSID that can be used
    > to unmount a filesystem by specifying its filesystem ID instead of
    > a path. The umount utility is changed to use this mechanism by
    > default. This approach has a number of advantages:
    >
    > - It avoids any lookup operations that could potentially block
    > forever, so filesystems such as NFS can be reliably unmounted
    > even if the server is not responding but looking up the root node
    > would require an RPC (maybe to an underlying filesystem).
    > - The filesystem specification is unambiguous, so umount(8) can
    > be sure that it is unmounting the correct filesystem (more
    > work in umount(8) may be required here).
    > - Detached filesystems can be unmounted. If a filesystem becomes
    > detached from the filesystem hierarchy because the underlying
    > filesystem got unmounted, it does not require a reboot to unmount
    > it.
    >
    > Since unmounting by a path name is now only required for compatibility,
    > in that case unmount() now just does a string comparison to find
    > the correct filesystem. Also, this patch only affects unmounting;
    > a similar approach could be applied to MNT_UPDATE mount operations.
    >
    > I would like to commit this during the next few days. Any comments
    > or suggestions?

    The approach sounds great to me; these are long-standing annoyances in
    FreeBSD.

    Kris

    
    



  • Next message: Scott Long: "Re: API change for bus_dma"

    Relevant Pages

    • Re: Unmounting by filesystem ID
      ... > The patch below adds a new mount flag MNT_BYFSID that can be used ... > to unmount a filesystem by specifying its filesystem ID instead of ... > filesystem got unmounted, it does not require a reboot to unmount ... this patch only affects unmounting; ...
      (freebsd-arch)
    • Re: Filesystem wont unmount
      ... Subject: Filesystem won't unmount ... Once I came across a filesystem that would not umount, ... copying of this e-mail and/or any attachments thereto, ...
      (AIX-L)
    • Unmounting by filesystem ID
      ... to unmount a filesystem by specifying its filesystem ID instead of ... filesystem got unmounted, it does not require a reboot to unmount ... -getmntname(const char *fromname, const char *onname, ...
      (freebsd-arch)
    • [PATCH] Fix dcache race during umount
      ... between unmounting a filesystem and the memory shrinker. ... prune_dcacheignoring any dentry for which the superblock is being unmounted ... that is being unmounted, and unmount will not be able to start until any such ...
      (Linux-Kernel)
    • Re: 5.1-BETA umount problems
      ... it also makes it easy to shoot ... >yourself in the foot. ... unmount() so that filesystems can be unmounted by specifying the ... filesystem ID instead of a path. ...
      (freebsd-current)