diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-04-27 05:48:30 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-25 19:15:35 -0400 |
commit | 956d39d631dbcf7b57854873a24e309047f2a7f5 (patch) | |
tree | 1a813b9bf40a2eb0db472fcccfb9932c350315c5 /include/linux/ceph | |
parent | 2a5beea3f1b6544d6c72ea220e860a2eda2f9104 (diff) |
ceph: define 'end/complete' in readdir reply as bit flags
Set a flag in readdir request, which indicates that client interprets
'end/complete' as bit flags. So that mds can reply additional flags in
readdir reply.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r-- | include/linux/ceph/ceph_fs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/ceph/ceph_fs.h b/include/linux/ceph/ceph_fs.h index bae833d0d055..a811c5e98bfa 100644 --- a/include/linux/ceph/ceph_fs.h +++ b/include/linux/ceph/ceph_fs.h | |||
@@ -347,6 +347,17 @@ extern const char *ceph_mds_op_name(int op); | |||
347 | #define CEPH_XATTR_REPLACE (1 << 1) | 347 | #define CEPH_XATTR_REPLACE (1 << 1) |
348 | #define CEPH_XATTR_REMOVE (1 << 31) | 348 | #define CEPH_XATTR_REMOVE (1 << 31) |
349 | 349 | ||
350 | /* | ||
351 | * readdir request flags; | ||
352 | */ | ||
353 | #define CEPH_READDIR_REPLY_BITFLAGS (1<<0) | ||
354 | |||
355 | /* | ||
356 | * readdir reply flags. | ||
357 | */ | ||
358 | #define CEPH_READDIR_FRAG_END (1<<0) | ||
359 | #define CEPH_READDIR_FRAG_COMPLETE (1<<8) | ||
360 | |||
350 | union ceph_mds_request_args { | 361 | union ceph_mds_request_args { |
351 | struct { | 362 | struct { |
352 | __le32 mask; /* CEPH_CAP_* */ | 363 | __le32 mask; /* CEPH_CAP_* */ |
@@ -364,6 +375,7 @@ union ceph_mds_request_args { | |||
364 | __le32 frag; /* which dir fragment */ | 375 | __le32 frag; /* which dir fragment */ |
365 | __le32 max_entries; /* how many dentries to grab */ | 376 | __le32 max_entries; /* how many dentries to grab */ |
366 | __le32 max_bytes; | 377 | __le32 max_bytes; |
378 | __le16 flags; | ||
367 | } __attribute__ ((packed)) readdir; | 379 | } __attribute__ ((packed)) readdir; |
368 | struct { | 380 | struct { |
369 | __le32 mode; | 381 | __le32 mode; |