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>
This commit is contained in:
Yan, Zheng
2016-04-27 17:48:30 +08:00
committed by Ilya Dryomov
parent 2a5beea3f1
commit 956d39d631
4 changed files with 20 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ struct ceph_mds_reply_info_parsed {
struct ceph_mds_reply_dirfrag *dir_dir;
size_t dir_buf_size;
int dir_nr;
u8 dir_complete, dir_end;
bool dir_complete, dir_end;
struct ceph_mds_reply_dir_entry *dir_entries;
};