Josh Jackson wrote:
>
> This is not so much useful for current Wine users...
> However, it seems to me that it would be an important feature for a 1.0 release
> Where possible, Wine should be able to be configured to "just work" in such a release
> More to the point, what are these "rough spots" ?
The DRIVE_CheckMntEnt is a little slow, since it has to iterate through
the list of DOS drives everytime it checks a mount point. It would be
faster to use a b-search, for instance. Also, there are a few fixme's in
there. Right now, we don't recognized common symlinks, eg. /dev/cdrom ->
/dev/scd0. Also, unrecognized devices, such as a ZIP drive, will be
assumed to be TYPE_HD. I'm not sure whether this is right or not.
> >
> >
> > I thought I would present the idea here to see if there is any interest
> > to make this a part of the winehq tree. Although the patch is rough in
> > some spots, the main idea is there. It allows dynamic drive mapping to
> > be turned on/off by adding a section to the winerc:
> >
> > [DynamicDrives]
> > Enabled=y
> >
>
> Again, this seems to be a feature that would be important for user usability
The way I see it, we would have this section be default in the winerc,
but sufficiently knowledgable users would be able to turn it off if they
wish.
> Could we read mtab instead?
We do.
> If we read mount table each time the drive was accessed, we could do things
> like mount NFS and Samba shares while Wine is running and have them show
> up as Drives.
That's exactly what it does.
> Automounters are becoming more popular.
> Mounting is practical enough for servers,
> but on the desktop many new users expect these things to be automatic
> This is particularly true for wine - it makes sense to be able to support
> automounting because that is the way it is done in windows
I am planning on adding support for the various automounters (autofs,
amd, supermount). The problem is that they differ greatly in their
implementation. Supermount, for instance, marks entries in fstab as
being managed by it. It is for this reason that the "UseFSTAB" option is
there. Wine would find supermount-able media in fstab, and put them in
the drives list. When the user selects that drive, it would be mounted.
However autofs would be much harder. In order to determine automountable
media with autofs, we must first find the appropriate entries in mtab
(they are there even when they are not mounted), then read a config
file, then read another config file. Only then do we even know which
directory is automountable. Ick!
Anyways, thanks for your comments. When this patch is a little more
complete, I will send it in.
Pat
--
Patrick Dubroy
x5361
[EMAIL PROTECTED]
--
The address in the headers is not the poster's real email address. Do not send
private mail to the poster using your mailer's "reply" feature. CC's of mail
to mailing lists are OK. Problem reports to "[EMAIL PROTECTED]".
The poster's email address is "[EMAIL PROTECTED]".