Re: [Utopia] [patch] mount/unmount when starting/stopping
- From: Robert Love <rml ximian com>
- To: David Zeuthen <david fubar dk>
- Cc: utopia-list gnome org
- Subject: Re: [Utopia] [patch] mount/unmount when starting/stopping
- Date: Tue, 17 Aug 2004 13:41:48 -0400
On Tue, 2004-08-17 at 19:34 +0200, David Zeuthen wrote:
> 'echo 0 > /proc/sys/dev/cdrom/lock' would do the trick. If the disc is
> mounted and forcibly removed, then the hal daemon will issue an 'umount
> -l /dev/cdrom' (lazy unmount) and stuff works. Of course this may crash
> badly written apps (fd's from files on the mount point will be invalid)
> but anyone can write a broken app.
>
> The implications on the kernel side for doing this, I dunno, you may
> want to ask Robert or your local kernel guru.
>
> However, it works very nicely for me.
If the lazy unmount succeeds then the only risk is an unsynced
superblock and dirty buffers. Neither of these are an issue on read-
only media. On write-only media, removing the device without unmounting
it is bad bad bad.
Robert Love
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]