public int callback(zfs_handle_t handle, Pointer arg) { list.add(ZFSObject.create(library, handle)); return 0; } }, null);
public int callback(zfs_handle_t handle, Pointer arg) { r.add(ZFSObject.create(library, handle)); return 0; } }, null);
public int callback(zfs_handle_t handle, Pointer arg) { list.add(ZFSObject.create(library, handle)); return 0; } }, null);
public int callback(zfs_handle_t handle, Pointer arg) { set.add((ZFSSnapshot)ZFSObject.create(library, handle)); return 0; } }, null);
public int callback(zfs_handle_t handle, Pointer arg) { r.add(ZFSObject.create(library, handle)); return 0; } }, null);
public int callback(zfs_handle_t handle, Pointer arg) { set.add((ZFSSnapshot)ZFSObject.create(library, handle)); return 0; } }, null);
public int callback(zfs_handle_t handle, Pointer arg) { set.add((ZFSSnapshot)ZFSObject.create(library, handle)); return 0; } }, null);
/** * Open a ZFS Data Set of a given name and type. * * @param dataSetName * name of the dataset to open. * @param mask * the zfs type mask of dataset to open. * @return opened dataset, or null if no such dataset exists. */ public ZFSObject open(final String dataSetName, final int /* zfs_type_t */mask) { zfs_handle_t h = LIBZFS.zfs_open(handle, dataSetName, mask); if(h==null) { int err = LIBZFS.libzfs_errno(handle); if(err==0) return null; throw new ZFSException(this); } return ZFSObject.create(this,h); }
/** * Open a ZFS Data Set of a given name and type. * * @param dataSetName * name of the dataset to open. * @param mask * the zfs type mask of dataset to open. * @return opened dataset, or null if no such dataset exists. */ public ZFSObject open(final String dataSetName, final int /* zfs_type_t */mask) { zfs_handle_t h = LIBZFS.zfs_open(handle, dataSetName, mask); if(h==null) { int err = LIBZFS.libzfs_errno(handle); if(err==0) return null; throw new ZFSException(this); } return ZFSObject.create(this,h); }