diff options
author | Sage Weil <sage@inktank.com> | 2012-12-05 22:03:34 -0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-12-23 19:39:22 -0800 |
commit | 697ed23cb96b4e64d7a1be130de118d89c5eec15 (patch) | |
tree | bbf0488ca3c6c394f96034c2fbf39553080495b4 /src/libcephfs.cc | |
parent | 00b89c3f7b967c3de269853e1c7c6a5a39b9f091 (diff) | |
download | ceph-697ed23cb96b4e64d7a1be130de118d89c5eec15.tar.gz |
client: remove set_default_*() methods
This is a poor interface. The hadoop stuff is shifting to specify this
information on file creation instead.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/libcephfs.cc')
-rw-r--r-- | src/libcephfs.cc | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/libcephfs.cc b/src/libcephfs.cc index c33f6284afc..d085f846265 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -722,36 +722,28 @@ extern "C" int ceph_get_file_replication(struct ceph_mount_info *cmount, int fh) extern "C" int ceph_set_default_file_stripe_unit(struct ceph_mount_info *cmount, int stripe) { - if (!cmount->is_mounted()) - return -ENOTCONN; - cmount->get_client()->set_default_file_stripe_unit(stripe); - return 0; + // this option no longer exists + return -EOPNOTSUPP; } extern "C" int ceph_set_default_file_stripe_count(struct ceph_mount_info *cmount, int count) { - if (!cmount->is_mounted()) - return -ENOTCONN; - cmount->get_client()->set_default_file_stripe_unit(count); - return 0; + // this option no longer exists + return -EOPNOTSUPP; } extern "C" int ceph_set_default_object_size(struct ceph_mount_info *cmount, int size) { - if (!cmount->is_mounted()) - return -ENOTCONN; - cmount->get_client()->set_default_object_size(size); - return 0; + // this option no longer exists + return -EOPNOTSUPP; } extern "C" int ceph_set_default_file_replication(struct ceph_mount_info *cmount, int replication) { - if (!cmount->is_mounted()) - return -ENOTCONN; - cmount->get_client()->set_default_file_replication(replication); - return 0; + // this option no longer exists + return -EOPNOTSUPP; } extern "C" int ceph_set_default_preferred_pg(struct ceph_mount_info *cmount, int osd) |