From: Marc G. <gr...@at...> - 2008-11-22 18:00:18
|
On Saturday 22 November 2008 16:51:31 Gordan Bobic wrote: > Marc Grimme wrote: > > But why not go this way: > > There is a method/function "clusterfs_services_start" which itself calls > > ${clutype}_services_start which should be implemented by > > etc/${rootfs}-lib.sh. Your $rootfs should be glusterfs and therefore > > there should be a library glusterfs-lib.sh. The function > > clusterfs_services_start should do all the preparations to mount the > > clusterfilesystem and could also mount a local filesystem as a > > prerequisite. So I would put it there. A rootfs can be specified as > > follows: > > <rootvolume name="/dev/whicheverdeviceyoulike" fstype="glusterfs"/> > > OK, this solution wins on the grounds that remapping the chrootenv seems > to confuse glusterfs. > > But ${clutype}_services_start is dependent on ${clutype}, which is > returned from getCluType(), which always returns "gfs". Will that not > break things? Not any more take the latest version of clusterfs-lib.sh and it is dependent on rootfs. I changed it how it should recently. > > From what you said, if I have the following entry: > <rootvolume name="/etc/glusterfs/root.vol" fstype="flusterfs"/> > $rootfs come from $fstype. Is that right? Or from > <rootsource name="glusterfs">? Or somewhere else entirely? It comes form the fstype attribute not from the name. > > Thanks. > > Gordan > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Open-sharedroot-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/open-sharedroot-devel -- Gruss / Regards, Marc Grimme http://www.atix.de/ http://www.open-sharedroot.org/ |