RETURN(rc);
}
- if (strcmp(name, XATTR_NAME_LMV) == 0) {
- rc = mdd_dir_layout_shrink(env, obj, buf);
- RETURN(rc);
- }
-
if (strcmp(name, XATTR_NAME_ACL_ACCESS) == 0 ||
strcmp(name, XATTR_NAME_ACL_DEFAULT) == 0) {
struct posix_acl *acl;
struct thandle *handle;
int flr_state;
int rc;
+
ENTRY;
+ if (S_ISDIR(mdd_object_type(obj))) {
+ switch (mlc->mlc_opc) {
+ case MD_LAYOUT_SHRINK:
+ rc = mdd_dir_layout_shrink(env, o, mlc);
+ break;
+ default:
+ LBUG();
+ }
+
+ RETURN(rc);
+ }
+
/* Verify acceptable operations */
switch (mlc->mlc_opc) {
case MD_LAYOUT_WRITE: