Whamcloud - gitweb
b=11691
[fs/lustre-release.git] / lustre / llite / llite_lib.c
index 0c8d8a5..5858ca9 100644 (file)
@@ -921,6 +921,7 @@ int ll_fill_super(struct super_block *sb)
                                 memcpy(lsi->lsi_lmd->lmd_profile, oldname,
                                        strlen(oldname) + 1); 
                                 profilenm = get_profile_name(sb);
+                                cfg.cfg_flags |= CFG_F_SERVER146;
                         }
                         OBD_FREE(oldname, oldnamelen);
                 }
@@ -1710,7 +1711,7 @@ int ll_iocontrol(struct inode *inode, struct file *file,
         }
         case EXT3_IOC_SETFLAGS: {
                 struct mdc_op_data op_data;
-                struct ll_iattr_struct attr = { 0 };
+                struct ll_iattr_struct attr;
                 struct obd_info oinfo = { { { 0 } } };
                 struct lov_stripe_md *lsm = ll_i2info(inode)->lli_smd;
 
@@ -1724,6 +1725,7 @@ int ll_iocontrol(struct inode *inode, struct file *file,
 
                 ll_prepare_mdc_op_data(&op_data, inode, NULL, NULL, 0, 0);
 
+                memset(&attr, 0, sizeof(attr));
                 attr.ia_attr_flags = flags;
                 ((struct iattr *)&attr)->ia_valid |= ATTR_ATTR_FLAG;