Page 1 of 1

no LZ, just drives

Posted: Mon Jun 18, 2012 7:16 pm
by sgtfoo
Question for the greyhole ppl!

I just rebuilt an Amahi server and didn't mount a /var/hda/files explicitly.
Instead I just mounted 2 drives as such...

/var/hda/files/drives/hdd01
/var/hda/files/drives/hdd02

.. so where do my files go at copy to shares time?
How does GH deal with this?

Re: no LZ, just drives

Posted: Tue Jun 19, 2012 2:33 am
by ciscoh
A Share Landing Zone is the path of that share, as defined in smb.conf (the Samba configuration file). (On Amahi, this is the Location field in the Setup > Shares page).

Example share definition:
[share_name]
path = /path/to/share_name
create mask = 0770
directory mask = 0770
read only = no
available = yes
browseable = yes
writable = yes
guest ok = no
printable = no
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole

Re: no LZ, just drives

Posted: Tue Jun 19, 2012 4:57 am
by bigfoot65
You did not mount a drive to /var/hda/files, but it still exists unless you removed it. On install, that location will be put on the OS drive by default. So all your shares will exist there.

If you removed it, there is a chance you could break Amahi. Some apps write shares specifically to /var/hda/files.

Re: no LZ, just drives

Posted: Thu Jun 21, 2012 2:01 am
by spline
Hi
If you removed it, there is a chance you could break Amahi. Some apps write shares specifically to /var/hda/files.
you mean, the path is hard coded in the app?



Juergen

Re: no LZ, just drives

Posted: Thu Jun 21, 2012 4:43 am
by bigfoot65
Yes. The app install script for some web apps creates a share. If the /var/hda/files location does not exist, it will not know where to put the share. It may create it on its own, but I would presume it would be on the OS drive.

There has to be a /var/hda/files location for Amahi to work correctly. Now given the drives are mounted in /var/hda/files/drives, that shows the path would exist on the OS drive. The default shares will most likely be located there as well.