lkml.org 
[lkml]   [2003]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Rdi1] Re: [PATCH] Add MOUNT_STATUS ioctl to cdrom device
Christoph Hellwig wrote:
> On Tue, Aug 26, 2003 at 06:30:10PM +0700, Samphan Raruenrom wrote:
>>>>This doesn't make sense at all. Just try the unmount and
>>>>tell the user if it failed - you can't say whether it will
>>>>fail before trying.
>>Yes, you can! Reading the code, if vfsmount.mnt_count > 1 then
>>umount on that device will fail.
> if you are doing the unmount currently and nothing changes because
> you hold the nessecary locks, yes. But as soon as you drop the locks
> this is void. There's no way to find out whether you can unmount
> a filesystem except trying it.

_^_ I understand it now. Thank you for your patience in explaining this
to me. I learn quite a lot of things in <4 hours! Thank you everyone.
I'll try to make a good use of what I learn here, e.g. to write another
GNOME automounter that use the new "event status notification" and also
let users eject their CDs -
"without polling" - possible?
It must be real cool to write such daemon (polling make any hacker feel guilty).

--
Samphan Raruenrom,
The Open Source Project,
National Electronics and Computer Technology Center,
National Science and Technology Development Agency,
Thailand.

-
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: 2005-03-22 13:48    [W:0.071 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site