Exemple #1
0
	def get_fs(self):
		rootfs = util.path_to_fs(self.__ct_priv())
		if not rootfs:
			print "CT is on unknown FS"
			return None

		print "CT is on %s" % rootfs

		if rootfs == "nfs":
			return fs_haul_shared.p_haul_fs()
		if rootfs == "ext3" or rootfs == "ext4":
			return fs_haul_subtree.p_haul_fs(self.__ct_priv())

		print "Unknown CT FS"
		return None
Exemple #2
0
    def get_fs(self):
        rootfs = util.path_to_fs(self.__ct_priv())
        if not rootfs:
            print "CT is on unknown FS"
            return None

        print "CT is on %s" % rootfs

        if rootfs == "nfs":
            return fs_haul_shared.p_haul_fs()
        if rootfs == "ext3" or rootfs == "ext4":
            return fs_haul_subtree.p_haul_fs(self.__ct_priv())

        print "Unknown CT FS"
        return None
Exemple #3
0
 def get_fs(self, fdfs=None):
     return fs_haul_subtree.p_haul_fs([self._ct_rootfs, self._ct_config])
Exemple #4
0
	def get_fs(self, fdfs=None):
		# use rsync for rootfs and configuration directories
		return fs_haul_subtree.p_haul_fs([self._ct_rootfs, self._ct_config_dir])
 def get_fs(self, fdfs=None):
     # use rsync for rootfs and configuration directories
     return fs_haul_subtree.p_haul_fs(
         [self._ct_rootfs, self._ct_config_dir])
Exemple #6
0
	def get_fs(self, fdfs=None):
		return fs_haul_subtree.p_haul_fs([self._ct_rootfs, self._ct_config])