native_ceph_create(this, id);
}
- private static synchronized native int native_ceph_create(CephMount mount, String id);
+ private static synchronized native int native_ceph_create(CephMount mount, String id);
/**
* Create a new CephMount with default client id.
native_ceph_mount(instance_ptr, root);
}
- private static synchronized native int native_ceph_mount(long mountp, String root);
+ private static synchronized native int native_ceph_mount(long mountp, String root);
/**
* Shutdown the mount.
native_ceph_shutdown(instance_ptr);
}
- private static synchronized native void native_ceph_shutdown(long mountp);
+ private static synchronized native void native_ceph_shutdown(long mountp);
/**
* Load configuration from a file.
native_ceph_conf_read_file(instance_ptr, path);
}
- private static synchronized native int native_ceph_conf_read_file(long mountp, String path);
+ private static synchronized native int native_ceph_conf_read_file(long mountp, String path);
/**
* Set the value of a configuration option.
native_ceph_conf_set(instance_ptr, option, value);
}
- private static synchronized native int native_ceph_conf_set(long mountp, String option, String value);
+ private static synchronized native int native_ceph_conf_set(long mountp, String option, String value);
/**
* Get the value of a configuration option.
native_ceph_statfs(instance_ptr, path, statvfs);
}
- private static synchronized native int native_ceph_statfs(long mountp, String path, CephStatVFS statvfs);
+ private static synchronized native int native_ceph_statfs(long mountp, String path, CephStatVFS statvfs);
/**
* Get the current working directory.
return native_ceph_getcwd(instance_ptr);
}
- private static synchronized native String native_ceph_getcwd(long mountp);
+ private static synchronized native String native_ceph_getcwd(long mountp);
/**
* Set the current working directory.
native_ceph_chdir(instance_ptr, path);
}
- private static synchronized native int native_ceph_chdir(long mountp, String cwd);
+ private static synchronized native int native_ceph_chdir(long mountp, String cwd);
/**
* List the contents of a directory.
native_ceph_link(instance_ptr, oldpath, newpath);
}
- private static synchronized native int native_ceph_link(long mountp, String existing, String newname);
+ private static synchronized native int native_ceph_link(long mountp, String existing, String newname);
/**
* Unlink/delete a name from the file system.
native_ceph_unlink(instance_ptr, path);
}
- private static synchronized native int native_ceph_unlink(long mountp, String path);
+ private static synchronized native int native_ceph_unlink(long mountp, String path);
/**
* Rename a file or directory.
native_ceph_rename(instance_ptr, from, to);
}
- private static synchronized native int native_ceph_rename(long mountp, String from, String to);
+ private static synchronized native int native_ceph_rename(long mountp, String from, String to);
/**
* Create a directory.
native_ceph_mkdir(instance_ptr, path, mode);
}
- private static synchronized native int native_ceph_mkdir(long mountp, String path, int mode);
+ private static synchronized native int native_ceph_mkdir(long mountp, String path, int mode);
/**
* Create a directory and all parents.
native_ceph_mkdirs(instance_ptr, path, mode);
}
- private static synchronized native int native_ceph_mkdirs(long mountp, String path, int mode);
+ private static synchronized native int native_ceph_mkdirs(long mountp, String path, int mode);
/**
* Delete a directory.
native_ceph_rmdir(instance_ptr, path);
}
- private static synchronized native int native_ceph_rmdir(long mountp, String path);
+ private static synchronized native int native_ceph_rmdir(long mountp, String path);
/**
* Read the value of a symbolic link.
native_ceph_lstat(instance_ptr, path, stat);
}
- private static synchronized native int native_ceph_lstat(long mountp, String path, CephStat stat);
+ private static synchronized native int native_ceph_lstat(long mountp, String path, CephStat stat);
/**
* Set file attributes.
native_ceph_setattr(instance_ptr, path, stat, mask);
}
- private static synchronized native int native_ceph_setattr(long mountp, String relpath, CephStat stat, int mask);
+ private static synchronized native int native_ceph_setattr(long mountp, String relpath, CephStat stat, int mask);
/**
* Change file mode.
native_ceph_chmod(instance_ptr, path, mode);
}
- private static synchronized native int native_ceph_chmod(long mountp, String path, int mode);
+ private static synchronized native int native_ceph_chmod(long mountp, String path, int mode);
/**
* Truncate a file to a specified length.
native_ceph_truncate(instance_ptr, path, size);
}
- private static synchronized native int native_ceph_truncate(long mountp, String path, long size);
+ private static synchronized native int native_ceph_truncate(long mountp, String path, long size);
/**
* Open a file.
return native_ceph_open(instance_ptr, path, flags, mode);
}
- private static synchronized native int native_ceph_open(long mountp, String path, int flags, int mode);
+ private static synchronized native int native_ceph_open(long mountp, String path, int flags, int mode);
/**
* Close an open file.
native_ceph_close(instance_ptr, fd);
}
- private static synchronized native int native_ceph_close(long mountp, int fd);
+ private static synchronized native int native_ceph_close(long mountp, int fd);
/**
* Seek to a position in a file.
return native_ceph_lseek(instance_ptr, fd, offset, whence);
}
- private static synchronized native long native_ceph_lseek(long mountp, int fd, long offset, int whence);
+ private static synchronized native long native_ceph_lseek(long mountp, int fd, long offset, int whence);
/**
* Read from a file.
return native_ceph_read(instance_ptr, fd, buf, size, offset);
}
- private static synchronized native long native_ceph_read(long mountp, int fd, byte[] buf, long size, long offset);
+ private static synchronized native long native_ceph_read(long mountp, int fd, byte[] buf, long size, long offset);
/**
* Write to a file at a specific offset.
return native_ceph_write(instance_ptr, fd, buf, size, offset);
}
- private static synchronized native long native_ceph_write(long mountp, int fd, byte[] buf, long size, long offset);
+ private static synchronized native long native_ceph_write(long mountp, int fd, byte[] buf, long size, long offset);
/**
* Truncate a file.
native_ceph_ftruncate(instance_ptr, fd, size);
}
- private static synchronized native int native_ceph_ftruncate(long mountp, int fd, long size);
+ private static synchronized native int native_ceph_ftruncate(long mountp, int fd, long size);
/**
* Synchronize a file with the file system.
native_ceph_fsync(instance_ptr, fd, dataonly);
}
- private static synchronized native int native_ceph_fsync(long mountp, int fd, boolean dataonly);
+ private static synchronized native int native_ceph_fsync(long mountp, int fd, boolean dataonly);
/**
* Get file status.
native_ceph_fstat(instance_ptr, fd, stat);
}
- private static synchronized native int native_ceph_fstat(long mountp, int fd, CephStat stat);
+ private static synchronized native int native_ceph_fstat(long mountp, int fd, CephStat stat);
/**
* Synchronize the client with the file system.
native_ceph_sync_fs(instance_ptr);
}
- private static synchronized native int native_ceph_sync_fs(long mountp);
+ private static synchronized native int native_ceph_sync_fs(long mountp);
/**
* Get an extended attribute value.
return native_ceph_get_file_stripe_unit(instance_ptr, fd);
}
- private static synchronized native int native_ceph_get_file_stripe_unit(long mountp, int fd);
+ private static synchronized native int native_ceph_get_file_stripe_unit(long mountp, int fd);
/**
* Get the replication of a file.
return native_ceph_get_file_replication(instance_ptr, fd);
}
- private static synchronized native int native_ceph_get_file_replication(long mountp, int fd);
+ private static synchronized native int native_ceph_get_file_replication(long mountp, int fd);
/**
* Set the default file stripe unit.
native_ceph_set_default_file_stripe_unit(instance_ptr, stripe_unit);
}
- private static synchronized native int native_ceph_set_default_file_stripe_unit(long mountp, int stripe_unit);
+ private static synchronized native int native_ceph_set_default_file_stripe_unit(long mountp, int stripe_unit);
/**
* Set the default file stripe count.
native_ceph_set_default_file_stripe_count(instance_ptr, stripe_count);
}
- private static synchronized native int native_ceph_set_default_file_stripe_count(long mountp, int stripe_count);
+ private static synchronized native int native_ceph_set_default_file_stripe_count(long mountp, int stripe_count);
/**
* Set the default object size.
native_ceph_set_default_object_size(instance_ptr, object_size);
}
- private static synchronized native int native_ceph_set_default_object_size(long mountp, int object_size);
+ private static synchronized native int native_ceph_set_default_object_size(long mountp, int object_size);
/**
* Favor reading from local replicas when possible.