At 06/24/2016 11:22 AM, Eric Sandeen wrote:
On 6/23/16 8:49 PM, Steven Haigh wrote:
I've tried to build the new tools for CentOS 6 / Scientific Linux 6 / RHEL 6 
etc.

During the build process, I see:
cmds-fi-du.c: In function 'du_calc_file_space':
cmds-fi-du.c:330: error: 'FIEMAP_EXTENT_SHARED' undeclared (first use in this 
function)
cmds-fi-du.c:330: error: (Each undeclared identifier is reported only once
cmds-fi-du.c:330: error: for each function it appears in.)
make: *** [cmds-fi-du.o] Error 1

I'm guessing this is probably due to a different GCC version used? I'm guessing 
this is a simple fix for someone with knowhow... :)

Fair warning, the btrfs.ko in centos6 is positively ancient, and it
won't be updated.

Just in case that matters to you ... not sure if you just want to
build there, or use actually btrfs under a centos6 kernel....

-Eric

This is the new function introduced to calculate shared extents size for files/dirs.

Which uses EXTENT_SHARED flag for ioctl, which is not included in old kernels.

I have already informed the author several weeks ago, and the fix is quite easy.

But it seems that author didn't send out the fix though.

Thanks,
Qu

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html




--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to