* have quotas.
*/
if (fs_quotas) {
- if (!xfs_sb_version_hasquota(sb)) {
- ASSERT(fs_quotas_allowed);
+ if (!xfs_sb_version_hasquota(sb))
xfs_sb_version_addquota(sb);
- }
/*
* protect against stray bits in the quota flag field
}
if (xfs_sb_version_hasquota(sb)) {
- if (!fs_quotas_allowed) {
- if (!no_modify) {
- do_warn(
-_("WARNING: you have disallowed quotas but this filesystem\n"
- "\thas quotas. The filesystem will be downgraded and\n"
- "\tall quota information will be removed.\n"));
- } else {
- do_warn(
-_("WARNING: you have disallowed quotas but this filesystem\n"
- "\thas quotas. The filesystem would be downgraded and\n"
- "\tall quota information would be removed.\n"));
- }
- } else {
- fs_quotas = 1;
+ fs_quotas = 1;
- if (sb->sb_uquotino != 0 &&
- sb->sb_uquotino != NULLFSINO)
- have_uquotino = 1;
+ if (sb->sb_uquotino != 0 && sb->sb_uquotino != NULLFSINO)
+ have_uquotino = 1;
- if (sb->sb_gquotino != 0 &&
- sb->sb_gquotino != NULLFSINO)
- have_gquotino = 1;
+ if (sb->sb_gquotino != 0 && sb->sb_gquotino != NULLFSINO)
+ have_gquotino = 1;
- if (sb->sb_pquotino != 0 &&
- sb->sb_pquotino != NULLFSINO)
- have_pquotino = 1;
- }
+ if (sb->sb_pquotino != 0 && sb->sb_pquotino != NULLFSINO)
+ have_pquotino = 1;
}
if (xfs_sb_version_hasalign(sb)) {
* possible XFS filesystem features
*
* inode version 2 (32-bit link counts) (6.2)
- * quotas (6.2+)
* aligned inodes (6.2+)
*
* bitmask fields happend after 6.2.
* options
*/
-EXTERN int fs_quotas_allowed;
EXTERN int fs_aligned_inodes_allowed;
EXTERN int fs_sb_feature_bits_allowed;
EXTERN int fs_has_extflgbit_allowed;