org.jvnet.solaris.libzfs
Class ZFSFileSystem

java.lang.Object
  extended by org.jvnet.solaris.libzfs.ZFSObject
      extended by org.jvnet.solaris.libzfs.ZFSFileSystem
All Implemented Interfaces:
Comparable<ZFSObject>, ZFSContainer

public final class ZFSFileSystem
extends ZFSObject

ZFS file system.

Author:
Kohsuke Kawaguchi

Method Summary
 File getMountPoint()
          Gets the mount point of this data set, as indicated by the 'mountpoint' property.
 boolean isMounted()
          Is this dataset mounted.
 void mount()
          Mounts this file system.
 void mount(int flags)
          Mounts this file system.
 void setMountPoint(File loc)
          Sets the mount point of this data set.
 void share()
          Share this dataset.
 void unmount()
          Unmounts this file system.
 void unmount(int flags)
          Unmounts this file system.
 void unshare()
          Unshare this dataset.
 
Methods inherited from class org.jvnet.solaris.libzfs.ZFSObject
allow, children, children, clone, compareTo, createFileSystem, createSnapshot, createSnapshot, descendants, descendants, destory, destory, dispose, equals, filesystems, finalize, getChildren, getLibrary, getName, getPool, getType, getUserProperty, getUserProperty, getZfsProperty, getZfsProperty, hashCode, inheritProperty, isShared, openFileSystem, rename, rollback, setProperty, snapshots, toString, unallow
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

isMounted

public boolean isMounted()
Is this dataset mounted.

Returns:
is dataset mounted.

getMountPoint

public File getMountPoint()
Gets the mount point of this data set, as indicated by the 'mountpoint' property.

Returns:
null if the mount point is none or legacy, in which case zfs doesn't know where this is supposed to be mounted.

setMountPoint

public void setMountPoint(File loc)
Sets the mount point of this data set.

The dataset won't be remounted until you manually do so (TODO: verify)


mount

public void mount()
Mounts this file system.


mount

public void mount(int flags)
Mounts this file system.

Parameters:
flags - See MountFlags.

unmount

public void unmount()
Unmounts this file system.


unmount

public void unmount(int flags)
Unmounts this file system.

Parameters:
flags - See MountFlags.

share

public void share()
Share this dataset.


unshare

public void unshare()
Unshare this dataset.



Copyright © 2012. All Rights Reserved.