const char *name;
const char *val;
size_t len;
- ASSERT_EQ(0, rados_getxattrs_next(iter, &name, &val, &len));
+ ASSERT_EQ(0, rados_striper_getxattrs_next(iter, &name, &val, &len));
if (name == NULL) {
break;
}
ASSERT_EQ(0, 1) << "Unexpected attribute : " << name;;
}
}
- rados_getxattrs_end(iter);
+ rados_striper_getxattrs_end(iter);
}
TEST_F(StriperTestPP, XattrListPP) {
ASSERT_LT(0, ioctx.getxattr(firstOid, "striper.layout.stripe_unit", xattrbl));
std::string s_xattr(xattrbl.c_str(), xattrbl.length()); // adds 0 byte at the end
uint64_t stripe_unit = strtoll(s_xattr.c_str(), NULL, 10);
+ ASSERT_LT(0, stripe_unit);
ASSERT_EQ(stripe_unit, exp_stripe_unit);
ASSERT_LT(0, ioctx.getxattr(firstOid, "striper.layout.stripe_count", xattrbl));
s_xattr = std::string(xattrbl.c_str(), xattrbl.length()); // adds 0 byte at the end
uint64_t stripe_count = strtoll(s_xattr.c_str(), NULL, 10);
+ ASSERT_LT(0, stripe_count);
ASSERT_EQ(stripe_count, exp_stripe_count);
ASSERT_LT(0, ioctx.getxattr(firstOid, "striper.layout.object_size", xattrbl));
s_xattr = std::string(xattrbl.c_str(), xattrbl.length()); // adds 0 byte at the end