[lkml]   [2005]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: the umount() saga for regular linux desktop users
    On Sun, Jan 02, 2005 at 09:56:50PM +0100, Pavel Machek wrote:
    > Okay, so the right solution is probably something more like
    > while umount /mnt; do
    > fuser -km -TERM /mnt
    > sleep 1
    > fuser -km /mnt
    > done
    > Not sure how many command line users can do this... Perhaps including
    > fumount script doing this is good idea?

    A command line user only needs to know about fuser, and in the unlikely
    case if the race condition Oliver thought of occurs he'll note since
    umount will give an error message.

    I'd even say the more common case is to use fuser to get the PIDs of the
    processes and manually check which they are - e.g. you might not want to
    kill your OpenOffice with many open documents only because you'd
    forgotten that it still has one document open on the file system you are
    trying to remove.

    > Pavel



    "Is there not promise of rain?" Ling Tan asked suddenly out
    of the darkness. There had been need of rain for many days.
    "Only a promise," Lao Er said.
    Pearl S. Buck - Dragon Seed

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:09    [W:0.021 / U:3.908 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site