}
}
+ if (fs_attributes2) {
+ if (!XFS_SB_VERSION_HASATTR2(sb)) {
+ ASSERT(fs_attributes2_allowed);
+
+ XFS_SB_VERSION_ADDATTR2(sb);
+ }
+ }
+
if (fs_inode_nlink) {
if (!XFS_SB_VERSION_HASNLINK(sb)) {
ASSERT(fs_inode_nlink_allowed);
int issue_warning;
fs_attributes = 0;
+ fs_attributes2 = 0;
fs_inode_nlink = 0;
fs_quotas = 0;
fs_aligned_inodes = 0;
}
}
+ if (XFS_SB_VERSION_HASATTR2(sb)) {
+ if (!fs_attributes2_allowed) {
+ if (!no_modify) {
+ do_warn(
+_("WARNING: you have disallowed attr2 attributes but this filesystem\n"
+ "\thas attributes. The filesystem will be downgraded and\n"
+ "\tall attr2 attributes will be removed.\n"));
+ } else {
+ do_warn(
+_("WARNING: you have disallowed attr2 attributes but this filesystem\n"
+ "\thas attributes. The filesystem would be downgraded and\n"
+ "\tall attr2 attributes would be removed.\n"));
+ }
+ } else {
+ fs_attributes2 = 1;
+ }
+ }
+
if (XFS_SB_VERSION_HASNLINK(sb)) {
if (!fs_inode_nlink_allowed) {
if (!no_modify) {
*/
EXTERN int fs_attributes_allowed;
+EXTERN int fs_attributes2_allowed;
EXTERN int fs_inode_nlink_allowed;
EXTERN int fs_quotas_allowed;
EXTERN int fs_aligned_inodes_allowed;
*/
EXTERN int fs_attributes;
+EXTERN int fs_attributes2;
EXTERN int fs_inode_nlink;
EXTERN int fs_quotas;
EXTERN int fs_aligned_inodes;
sb_unit = 0;
sb_width = 0;
fs_attributes_allowed = 1;
+ fs_attributes2_allowed = 1;
fs_inode_nlink_allowed = 1;
fs_quotas_allowed = 1;
fs_aligned_inodes_allowed = 1;