Support XFS on older Linuces?
The following discussion from !2 (merged) should be addressed, while I was reading your other patches:
-
@rubdos started a discussion: @fdintino, could you also comment on commit e763e7fe0b0723d96483f2e61bf90764fb444dac?
diff --git a/reflink/linux.c b/reflink/linux.c index 4d45db7..01360b4 100644 --- a/reflink/linux.c +++ b/reflink/linux.c @@ -5,6 +5,10 @@ #include <assert.h> #include <errno.h> +#if !defined FICLONE && defined __linux__ +# define FICLONE _IOW (0x94, 9, int) +#endif + int clone_permissions(char *oldpath, char *newpath) { struct stat st; int rc;
It seems like
fs.h
include this define; is this for older Linuces? If this is useful, I'd be inclined to upstream this too.