def METHOD_NAME(self):
    if self.fs.status:
        yield
    else:
        dev_name = os.path.basename(self.fs.device)
        tmpdir = tempfile.mkdtemp(prefix="xfs-tempmount-%s" % dev_name)
        log.debug("mounting XFS on '%s' to '%s' for resize", self.fs.device, tmpdir)
        try:
            self.fs.mount(mountpoint=tmpdir)
        except FSError as e:
            raise FSError("Failed to mount XFS filesystem for resize: %s" % str(e))
        try:
            yield
        finally:
            util.umount(mountpoint=tmpdir)
            os.rmdir(tmpdir)