public int callback(zfs_handle_t handle, Pointer arg) { r.add(new ZFSFileSystem(LibZFS.this, handle)); return 0; } }, null);
public int callback(zfs_handle_t handle, Pointer arg) { r.add(new ZFSFileSystem(LibZFS.this, handle)); return 0; } }, null);
/** * Instantiate the right subtype. */ /*package*/ static ZFSObject create(LibZFS parent, zfs_handle_t handle) { switch (ZFSType.fromCode(LIBZFS.zfs_get_type(handle))) { case FILESYSTEM: return new ZFSFileSystem(parent,handle); case SNAPSHOT: return new ZFSSnapshot(parent,handle); case VOLUME: return new ZFSVolume(parent,handle); default: throw new AssertionError(); } }
/** * Instantiate the right subtype. */ /*package*/ static ZFSObject create(LibZFS parent, zfs_handle_t handle) { switch (ZFSType.fromCode(LIBZFS.zfs_get_type(handle))) { case FILESYSTEM: return new ZFSFileSystem(parent,handle); case SNAPSHOT: return new ZFSSnapshot(parent,handle); case VOLUME: return new ZFSVolume(parent,handle); default: throw new AssertionError(); } }