[LU-9339] fix RHEL 7.2 project quota build error Created: 13/Apr/17  Updated: 07/Nov/18  Resolved: 11/May/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.10.0
Fix Version/s: Lustre 2.10.0

Type: Bug Priority: Critical
Reporter: Andreas Dilger Assignee: Li Xi (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-9360 lustre-initialization-1 failed, MDS ... Resolved
Related
is related to LU-20 patchless server kernel Resolved
is related to LU-4017 Add project quota support feature Resolved
is related to LU-9350 use LL_MAXQUOTAS instead of MAXQUOTAS Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The builds at build.lustre.org are now failing consistently on RHEL 7.2:

http://build.lustre.org/builders/CentOS%207.2%20x86_64%20%28BUILD%29/builds/7890

Making all in ldiskfs
Applying ext4 patches: rhel7/ext4-inode-version.patch rhel7/ext4-lookup-dotdot.patch rhel6.3/ext4-print-inum-in-htree-warning.patch rhel7/ext4-prealloc.patch rhel7/ext4-mballoc-extra-checks.patch rhel7/ext4-misc.patch rhel7/ext4-osd-iop-common.patch rhel7/ext4-hash-indexed-dir-dotdot-update.patch rhel7/ext4-kill-dx-root.patch rhel7/ext4-mballoc-pa-free-mismatch.patch rhel7/ext4-data-in-dirent.patch rhel7.2/ext4-large-eas.patch rhel7/ext4-disable-mb-cache.patch rhel7/ext4-nocmtime.patch rhel7/ext4-large-dir.patch rhel7.2/ext4-pdirop.patch rhel7/ext4-max-dir-size.patch rhel7/ext4-remove-truncate-warning.patch rhel7/ext4-corrupted-inode-block-bitmaps-handling-patches.patch rhel7/ext4-give-warning-with-dir-htree-growing.patch rhel7/ext4-mmp-brelse.patch rhel7/ext4-jcb-optimization.patch rhel7/ext4_s_max_ext_tree_depth.patch rhel7.2/ext4-release-bh-in-makeinxdir.patch rhel7.2/ext4-dont-check-in-ro.patch rhel7.2/ext4-dont-check-before-replay.patch rhel7.2/ext4-remove-i_data_sem-from-xattr.patch rhel7/ext4-projid-ignore-maxquotas.patch rhel7/ext4-projid-feature-support.patch rhel7/ext4-projid-quotas.patch rhel7/ext4-projid-xfs-ioctls.patch rhel7/ext4-export-__ext4_ioctl_setproject-for-lustre.patch
Replacing 'ext4' with 'ldiskfs': xattr.h acl.h mballoc.h truncate.h extents_status.h ext4.h ext4_extents.h ext4_jbd2.h ioctl.c dir.c fsync.c indirect.c ext4_jbd2.c migrate.c page-io.c xattr_user.c acl.c extents.c namei.c move_extent.c xattr.c symlink.c inode.c file.c mmp.c super.c hash.c xattr_security.c bitmap.c ialloc.c extents_status.c block_validity.c mballoc.c inline.c balloc.c xattr_trusted.c resize.c mmp.c htree_lock.c ext4.h ext4_extents.h ext4_jbd2.h ext4.h htree_lock.h
Making all in .
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c: In function 'ldiskfs_iflags_to_xflags':
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:412:13: error: 'FS_XFLAG_SYNC' undeclared (first use in this function)
   xflags |= FS_XFLAG_SYNC;
             ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:412:13: note: each undeclared identifier is reported only once for each function it appears in
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:414:13: error: 'FS_XFLAG_IMMUTABLE' undeclared (first use in this function)
   xflags |= FS_XFLAG_IMMUTABLE;
             ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:416:13: error: 'FS_XFLAG_APPEND' undeclared (first use in this function)
   xflags |= FS_XFLAG_APPEND;
             ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:418:13: error: 'FS_XFLAG_NODUMP' undeclared (first use in this function)
   xflags |= FS_XFLAG_NODUMP;
             ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:420:13: error: 'FS_XFLAG_NOATIME' undeclared (first use in this function)
   xflags |= FS_XFLAG_NOATIME;
             ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:422:13: error: 'FS_XFLAG_PROJINHERIT' undeclared (first use in this function)
   xflags |= FS_XFLAG_PROJINHERIT;
             ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c: In function 'ldiskfs_xflags_to_iflags':
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:431:15: error: 'FS_XFLAG_SYNC' undeclared (first use in this function)
  if (xflags & FS_XFLAG_SYNC)
               ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:433:15: error: 'FS_XFLAG_IMMUTABLE' undeclared (first use in this function)
  if (xflags & FS_XFLAG_IMMUTABLE)
               ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:435:15: error: 'FS_XFLAG_APPEND' undeclared (first use in this function)
  if (xflags & FS_XFLAG_APPEND)
               ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:437:15: error: 'FS_XFLAG_NODUMP' undeclared (first use in this function)
  if (xflags & FS_XFLAG_NODUMP)
               ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:439:15: error: 'FS_XFLAG_NOATIME' undeclared (first use in this function)
  if (xflags & FS_XFLAG_NOATIME)
               ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:441:15: error: 'FS_XFLAG_PROJINHERIT' undeclared (first use in this function)
  if (xflags & FS_XFLAG_PROJINHERIT)
               ^
In file included from /tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ldiskfs_jbd2.h:20:0,
                 from /tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:19:
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c: In function 'ldiskfs_ioctl':
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ldiskfs.h:630:33: error: 'FS_IOC_FSGETXATTR' undeclared (first use in this function)
 #define LDISKFS_IOC_FSGETXATTR  FS_IOC_FSGETXATTR
                                 ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:781:7: note: in expansion of macro 'LDISKFS_IOC_FSGETXATTR'
  case LDISKFS_IOC_FSGETXATTR:
       ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:783:18: error: storage size of 'fa' isn't known
   struct fsxattr fa;
                  ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:786:25: error: invalid application of 'sizeof' to incomplete type 'struct fsxattr'
   memset(&fa, 0, sizeof(struct fsxattr));
                         ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:783:18: error: unused variable 'fa' [-Werror=unused-variable]
   struct fsxattr fa;
                  ^
In file included from /tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ldiskfs_jbd2.h:20:0,
                 from /tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:19:
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ldiskfs.h:631:33: error: 'FS_IOC_FSSETXATTR' undeclared (first use in this function)
 #define LDISKFS_IOC_FSSETXATTR  FS_IOC_FSSETXATTR
                                 ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:802:7: note: in expansion of macro 'LDISKFS_IOC_FSSETXATTR'
  case LDISKFS_IOC_FSSETXATTR:
       ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:804:18: error: storage size of 'fa' isn't known
   struct fsxattr fa;
                  ^
/tmp/rpmbuild-lustre-buildbot-uJbfPheG/BUILD/lustre-2.9.55_42_g60a4d3f/ldiskfs/ioctl.c:804:18: error: unused variable 'fa' [-Werror=unused-variable]
error: Bad exit status from /tmp/rpmbuild-lustre-buildbot-uJbfPheG/TMP/rpm-tmp.ZV9A8a (%build)


 Comments   
Comment by Gerrit Updater [ 16/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: https://review.whamcloud.com/26647
Subject: LU-9339 ldiskfs: Make ldiskfs buildable on kernels with no project quota
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 73d4dd6a2a706239a9a7e842e0c52edc677bbb09

Comment by Gerrit Updater [ 16/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: https://review.whamcloud.com/26648
Subject: LU-9339 quota: Replace MAXQUOTAS usage with LL_MAXQUOTAS
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6382ec072c40d42972d6d583390b3819e7c0e22a

Comment by Gerrit Updater [ 16/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: https://review.whamcloud.com/26649
Subject: LU-9339 kernel: Drop vfs projectquota patch
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7bef3c27f6b51b1ca2ca3fae29d0012d392c2969

Comment by Gerrit Updater [ 18/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26648/
Subject: LU-9339 quota: Replace MAXQUOTAS usage with LL_MAXQUOTAS
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a7e0ce3a5780fb4530fb651ad5c8e5371cfca6db

Comment by Gerrit Updater [ 18/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26647/
Subject: LU-9339 ldiskfs: Make ldiskfs buildable on kernels with no project quota
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: de10075373c80cb0200726ea4f13eddcf38895fd

Comment by Peter Jones [ 18/Apr/17 ]

Landed for 2.10

Comment by Gerrit Updater [ 21/Apr/17 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/26769
Subject: LU-9339 ldiskfs: fix regression of macro check
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2109e945afbe40d3af1528f1fac02c818cde0a14

Comment by Andreas Dilger [ 21/Apr/17 ]

Still one patch to land.

Comment by Gerrit Updater [ 28/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26769/
Subject: LU-9339 ldiskfs: fix regression of macro check
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: af3d457b77e0ffb649871532b04e4721a701f974

Comment by James A Simmons [ 10/May/17 ]

The regression fix was merged. Can this ticket be closed?

Generated at Sat Feb 10 02:25:18 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.