Home | History | Annotate | Download | only in bin

Lines Matching refs:mountpoint

79 def wipe_filesystem(job, mountpoint):
80 wipe_cmd = 'rm -rf %s/*' % mountpoint
341 @param mountpoint_func: A callable that returns a mountpoint given a
358 mountpoint = mountpoint_func(partitions[0])
361 job.run_test(test, tag=tag, partitions=partitions, dir=mountpoint, **dargs)
374 def __init__(self, job, device, loop_size=0, mountpoint=None):
403 self.mountpoint = mountpoint
443 mountpoint = mountpoint_func(self)
444 if not mountpoint:
448 if not os.path.isdir(mountpoint):
449 os.makedirs(mountpoint)
450 self.mount(mountpoint)
482 self.job.run_test(test, tag=test_tag, dir=mountpoint, **dargs)
488 mountpoint = mountpoint_func(self)
493 test_tag=tag, dir=mountpoint, **dargs)
512 if parts[0] == self.device or parts[1] == self.mountpoint:
513 return parts[1] # The mountpoint where it's mounted
654 def mount(self, mountpoint=None, fstype=None, args='', record=True):
658 @param mountpoint: If you have not provided a mountpoint to partition
680 if not mountpoint and not self.mountpoint:
681 raise ValueError("No mountpoint specified and no default "
683 if not mountpoint:
684 mountpoint = self.mountpoint
686 mount_cmd = "mount %s %s %s" % (args, self.device, mountpoint)
692 if list_mount_points().count(mountpoint):
693 err = 'Attempted to mount busy mountpoint'
718 all mounts on this mountpoint and unmount them.
764 mountpoint = self.get_mountpoint()
765 if not mountpoint:
768 msg = 'umount for dev %s has no mountpoint' % self.device
772 umount_cmd = "umount " + mountpoint