RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 851158 - [xfs/xfsdump] The core.projid_hi is lost in dump/restore process
Summary: [xfs/xfsdump] The core.projid_hi is lost in dump/restore process
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: xfsdump
Version: 7.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 860454
TreeView+ depends on / blocked
 
Reported: 2012-08-23 11:42 UTC by Boris Ranto
Modified: 2013-02-25 13:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 860454 (view as bug list)
Environment:
Last Closed: 2013-02-25 13:49:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The test script I used to find this. (1.31 KB, application/x-shellscript)
2012-08-23 11:42 UTC, Boris Ranto
no flags Details

Description Boris Ranto 2012-08-23 11:42:04 UTC
Created attachment 606518 [details]
The test script I used to find this.

Description of problem:
When a projid32bit enabled xfs fs is dumped and then restored to a different location (again with the projid32bit functionality enabled), the core.projid_hi value is not copied to the new location resulting in incorrect 16bit project quota id.

Version-Release number of selected component (if applicable):
kernel-3.3.0-0.20.el7.x86_64
xfsprogs-3.1.8-4.el7.x86_64
xfsdump-3.1.0-2.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create 32bit project quota enabled xfs filesystem
2. Dump the filesystem
3. Restore the filesystem, check the 32bit project quota id
  
Actual results:
The core.projid_hi is not copied resulting in 16bit project quota ids.

Expected results:
The dump and restore preserve the 32bit project quota ids.

Additional info:
The fact that the core.projid_hi is thrown away in dump/restore cycle was found by the examination of the original and restored fs with xfs_db. You just need to know the inode number of the project quota file:
xfs_db -c "inode <ino>" -c "print core.projid_lo" -c "print core.projid_hi" <device>
You can notice that the core.projid_hi is 0 in the restored filesystem.

Comment 1 Eric Sandeen 2012-08-27 18:50:55 UTC
Patch for this sent upstream, pending review:

http://oss.sgi.com/archives/xfs/2012-08/msg00391.html

Comment 4 Boris Ranto 2013-02-25 13:49:37 UTC
This is actually fixed in current rhel7 xfsdump/xfsprogs/kernel packages.


Note You need to log in before you can comment on or make changes to this bug.