Re: Linux 2.3.99pre9-2 JOB list

From: Ton Hospel (thospel@mail.dma.be)
Date: Thu May 18 2000 - 09:43:22 EST


In article <Pine.LNX.4.10.10005172307550.31143-100000@cerberus.stardot-tech.com>,
        Jim Treadway <jim@stardot-tech.com> writes:
> On Wed, 17 May 2000, Blu3 wrote:
>
>> It's a matter of surprise. I can easily imagine the point and click user
>> tapping their icon to mount numerous times expecting to see the cdrom or
>> floppy spin and see nothing all the while not realizing they are compounding
>> the mounts. Be it their cdrom, it won't eject until they have unmounted the
>> right mount with a cwd set. I vaguely recall several gui mount utils that
>> store the mounted/not mounted status within themselves and likely break.
>>
>> This leaves a frustrated (gui) user most likely rebooting and swearing at
>> Linux because he can't get his cdrom out.
>>
>> Why the change in expected behavior, why allow the same mount to happen
>> numerous times?
>
> A utility that doesn't check /proc/mounts (or /etc/mtab) sounds broken,
> but perhaps the mount program now needs an option to only mount if not
> mounted at the requested location?
>

Agreed. unfortunately there's a race between checking mtab and doing the
mount. So I think a mount option is needed so you can check and refuse a
overlay mount atomically.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:15 EST