lkml.org 
[lkml]   [2006]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Solve the problem that umount will fail when an opened file isn't closed
Thanks for that, Jan. What a great idea!

> >I have implemented an auto-mount & auto-umount
> facility based on USB
> >hotplug.

Colin can you explain how you implemented this? I would like to try it, too.

Thanks,
Mike

--
Mike Smullin
"The day I come in front of the Gartner audience and say we have a
better Unix than Linux, that'll be a good day" -- Steve Ballmer
http://www.mikesmullin.com

--- Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:

> >
> >Hi all,
> >I have implemented an auto-mount & auto-umount
> facility based on USB
> >hotplug.
> >An annoying problem will occur when some process
> doesn't close its open file
> >and auto-umount is trying to umount that mount
> point after usb disk has been
> >unplugged.
> >Is there any way to force it to be umounted in this
> situation?
> >
>
> fs/super.c:
>
> /* Forget any remaining inodes */
> if (invalidate_inodes(sb)) {
> printk("VFS: Busy inodes after unmount of
> %s. "
> "Self-destruct in 5 seconds. Have a nice
> day...\n",
> sb->s_id);
> }
>
> That's what happens if you eject a CD. The box won't
> explode though.
>
>
> Jan Engelhardt
> --
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-16 18:41    [W:0.031 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site