#include "cls_cephfs_client.h"
+using ceph::bufferlist;
+using ceph::decode;
+
#define XATTR_CEILING "scan_ceiling"
#define XATTR_MAX_MTIME "scan_max_mtime"
#define XATTR_MAX_SIZE "scan_max_size"
ceiling.decode(scan_ceiling_bl_iter);
result->ceiling_obj_index = ceiling.id;
result->ceiling_obj_size = ceiling.size;
- } catch (const buffer::error &err) {
+ } catch (const ceph::buffer::error &err) {
//dout(4) << "Invalid size attr on '" << oid << "'" << dendl;
return -EINVAL;
}
try {
auto scan_max_size_bl_iter = scan_max_size_bl.cbegin();
decode(result->max_obj_size, scan_max_size_bl_iter);
- } catch (const buffer::error &err) {
+ } catch (const ceph::buffer::error &err) {
//dout(4) << "Invalid size attr on '" << oid << "'" << dendl;
return -EINVAL;
}
try {
auto scan_max_mtime_bl_iter = scan_max_mtime_bl.cbegin();
decode(result->max_mtime, scan_max_mtime_bl_iter);
- } catch (const buffer::error &err) {
+ } catch (const ceph::buffer::error &err) {
//dout(4) << "Invalid size attr on '" << oid << "'" << dendl;
return -EINVAL;
}
try {
auto q = parent_bl.cbegin();
backtrace->decode(q);
- } catch (buffer::error &e) {
+ } catch (ceph::buffer::error &e) {
//dout(4) << "Corrupt backtrace on '" << oid << "': " << e << dendl;
return -EINVAL;
}
try {
auto q = layout_bl.cbegin();
decode(*layout, q);
- } catch (buffer::error &e) {
+ } catch (ceph::buffer::error &e) {
return -EINVAL;
}
}