ceph: xattr: wrong value assumed for "no preferred PG"
In ceph_vxattrcb_file_layout() the layout for a file is printed.
The preferred placement group is extracted from the ceph inode layout,
but the code assumes that a 0 placement group is used to indicate
"no preference." That is incorrect. No preference is represented
by the reserved value (-1).
#1 Updated by Alex Elder over 11 years ago
- Status changed from New to 7
This has been fixed in this commit:
260ac0e65b ceph: fix three bugs, two in ceph_vxattrcb_file_layout()
The commit will go into the ceph-client/testing branch, and after
some nightly test coverage will be pushed to the master branch.