| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | XFS fiemap issue with Linux 3.10.0-327.el7.x86_64 (CentOS 7) |
| From: | Jim Wilcoxson <prirun@xxxxxxxxx> |
| Date: | Mon, 15 Feb 2016 12:26:35 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1Pml0kVBMltIvU4/o3lc4Mj9ZWQsH1HHuEmB5F4AN/g=; b=MN9rHG2HdWRZatrTgSrJB6a+pr5f9J7KfPFElxwklkADdJ+X0b/0Nb5ge22BkQZtw8 twcH/w27EKL0jL5AA+mES/mUxP/IqYYmx72bArFLuSDYe6PqP+Vb9iaSblYm9KZLZxpj c2tj4jGb7WJ0WDbRZq7635xMkOG1ffqoXLQ+JkAypSEO5Lfim9E4B9nTufC4jfXs5eE+ hFKl1BIGOTjLCnM9GjlzaCn7TCoVdFt+xX89ucQwHrTTaQ54/SU++BdSS7T6gPDbiJpJ YNNq/riC62r9PJl2NX1CvKUQXxYqEF7BTKbvhSsRILSo51ZNDEqT+A8a2foISoj96Z1u ixOw== |
I'm developing a backup program, HashBackup, and recently added sparse "hole skipping" using fiemap. Today I ran into a weird issue with xfs on Linux 3.10. A test program creates a sparse file with 10000*(4K data, 4M hole). HB calls fiemap with start=0, length=0xFFFF...FFFF, mapped_extents=0 to get the number of extents. Fiemap is coming back with mapped_extents=1364 instead of 10000. The fiemap.txt file says: "If fm_extent_count is zero, then the fm_extents[] array is ignored (no extents will be returned), and the fm_mapped_extents count will hold the number of extents needed in fm_extents[] to hold the file's current mapping." It doesn't say the filesystem can choose to return fewer extents if it wants, but maybe xfs interprets it this way and fiemap has to be called in a loop until the extent_last flag is set. If that's the case, fiemap.txt should be updated. Thanks, Jim (not on the xfs mailing list) -- HashBackup: easy onsite and offsite Unix backup http://www.hashbackup.com |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v5 2/2] xfs_repair: new secondary superblock search method, Bill O'Donnell |
|---|---|
| Next by Date: | Re: XFS fiemap issue with Linux 3.10.0-327.el7.x86_64 (CentOS 7), Eric Sandeen |
| Previous by Thread: | [PATCH v3] xfs_quota: modify commands which can't handle multiple types, Zorro Lang |
| Next by Thread: | Re: XFS fiemap issue with Linux 3.10.0-327.el7.x86_64 (CentOS 7), Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |