summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-12-02 14:46:13 -0800
committerSage Weil <sage@newdream.net>2009-12-02 14:46:13 -0800
commit89603b6bca0c5fcf23e24e5d5be14a55d88b7f42 (patch)
tree50782a89175adda89ad99bc9572ebf0b21b9f9b7
parent54b8537c75e32ca835d88c5b018560e5453ae64a (diff)
downloadceph-89603b6bca0c5fcf23e24e5d5be14a55d88b7f42.tar.gz
test_ioctls: print preferred_osd value from GET_LAYOUT ioctl
-rw-r--r--src/client/ioctl.h1
-rw-r--r--src/client/test_ioctls.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/client/ioctl.h b/src/client/ioctl.h
index 3c511dab373..25e4f1a9d05 100644
--- a/src/client/ioctl.h
+++ b/src/client/ioctl.h
@@ -10,6 +10,7 @@
struct ceph_ioctl_layout {
__u64 stripe_unit, stripe_count, object_size;
__u64 data_pool;
+ __s64 preferred_osd;
};
#define CEPH_IOC_GET_LAYOUT _IOR(CEPH_IOCTL_MAGIC, 1, \
diff --git a/src/client/test_ioctls.c b/src/client/test_ioctls.c
index f06f2150971..9cf27550091 100644
--- a/src/client/test_ioctls.c
+++ b/src/client/test_ioctls.c
@@ -39,8 +39,8 @@ int main(int argc, char **argv)
perror("ioctl IOC_GET_LAYOUT error");
return 1;
}
- printf("layout:\n stripe_unit %lld\n stripe_count %lld\n object_size %lld\n data_pool %lld\n",
- l.stripe_unit, l.stripe_count, l.object_size, l.data_pool);
+ printf("layout:\n stripe_unit %lld\n stripe_count %lld\n object_size %lld\n data_pool %lld\npreferred osd %lld\n",
+ l.stripe_unit, l.stripe_count, l.object_size, l.data_pool, l.preferred_osd);
/* dataloc */
dl.file_offset = atoll(argv[2]);