ceph: filter out used flags when printing unused open flags
Filter out used access mode flags when printing unused open flags. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
1582af2eaa
commit
51b10f3fe4
|
@ -30,6 +30,8 @@ static __le32 ceph_flags_sys2wire(u32 flags)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flags &= ~O_ACCMODE;
|
||||||
|
|
||||||
#define ceph_sys2wire(a) if (flags & a) { wire_flags |= CEPH_##a; flags &= ~a; }
|
#define ceph_sys2wire(a) if (flags & a) { wire_flags |= CEPH_##a; flags &= ~a; }
|
||||||
|
|
||||||
ceph_sys2wire(O_CREAT);
|
ceph_sys2wire(O_CREAT);
|
||||||
|
|
Loading…
Reference in New Issue