*- On 6 Aug, Alvin Oga wrote about "Re: program map-types"
>
> hi ya brian
>
> what is your virtual host doing ??
>
> - if it is up... it can autofs mount the win95...
> - if it is down... it does not matter ?? ( no linux box ? )
>
I don't think we are on the same wavelength. Let me try to explain the
situation a little better.
I have a real vfat partitions on some drives in my system. I run a guest
virtual win95 under vmware that uses these real vfat partitions. It is
not good practice to have the guest os using the vfat drives while at
the same time directly mounting the vfat drives under Linux. There is
not control over file read/writes taking place on the same files, etc.
Under the guest win95 I am sharing the vfat partitions via win95's
file sharing services. If the guest os is running win95 and sharing the
drives then I would like autofs to mount the vfat drives via smbmount.
If the guest os is not running then I would like autofs to mount the
vfat drives natively with the linux mount. I would like this decision
to be made automatically and transparently to the user.
If I understand the principle of program map types the 'program' is
executed and then returns something(what?) to automount to continue
with the mount. If this is the case then I would like the program to
determine the state of the guest os and return what is necessary to
automount to either mount the vfat drives natively or via smbmount. I
can do this.
I just don't know how the program maps are defined or setup or
anything in the autofs files. There are no examples in any of the docs
that I could find of using program map types. If I could find some
examples of a program map type I probably could figure it out on my
own.
I hope this makes since,
Brian
>
>> Can someone point me to some examples or better documentation on
>> program map-types. I can't seem to understand where to start with
>> program map-types.
>>
>> I am running vmware using my raw Win95 disks. If vmware is up and
>> running I would like to access the win95 disks via smb from the vmware
>> host and if vwmare is not running I would like to mount the win95
>> drives directly with Linux vfat support. I have two different map
>> files for the different senarios but I would like to make it
>> transparent by having a program check the status of the virtual host and
>> either issue a mount via smbfs or via native vfat depending on whether
>> the virtual host is up.
>>
>> Thanks,
>> --
>> Brian
>> ---------------------------------------------------------------------
>> Mechanical Engineering [EMAIL PROTECTED]
>> Purdue University http://www.ecn.purdue.edu/~servis
>> ---------------------------------------------------------------------
>>
>