org.jvnet.solaris.libzfs
Class ZFSPool

java.lang.Object
  extended by org.jvnet.solaris.libzfs.ZFSPool

public final class ZFSPool
extends Object

zpool, which is a storage abstraction.

Author:
Kohsuke Kawaguchi

Method Summary
 void disableDatasets(boolean force)
          Disables datasets within a pool by unmounting/unsharing them all.
 void dispose()
           
 void export(boolean force, boolean hardForce)
          Does "zpool export".
protected  void finalize()
           
 long getAvailableSize()
          Gets the remaining free space size of this pool in bytes.
 String getName()
           
 String getProperty(zpool_prop_t prop)
           
 long getSize()
          Gets the total size of this pool in bytes.
 ZPoolStatus getStatus()
           
 long getUsedSize()
          Gets the size of this pool that's already used in bytes.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()

getProperty

public String getProperty(zpool_prop_t prop)

getStatus

public ZPoolStatus getStatus()

getSize

public long getSize()
Gets the total size of this pool in bytes.

Because of the way libzfs report the size information (as strings like 1.2G), the precision of this information is low.


getAvailableSize

public long getAvailableSize()
Gets the remaining free space size of this pool in bytes.

Because of the way libzfs report the size information (as strings like 1.2G), the precision of this information is low.


getUsedSize

public long getUsedSize()
Gets the size of this pool that's already used in bytes.

Because of the way libzfs report the size information (as strings like 1.2G), the precision of this information is low.


disableDatasets

public void disableDatasets(boolean force)
Disables datasets within a pool by unmounting/unsharing them all.

Parameters:
force - Not exactly sure what this does.

export

public void export(boolean force,
                   boolean hardForce)
Does "zpool export".


dispose

public void dispose()

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2012. All Rights Reserved.