Hello, We've been experiencing an interesting issue where, on a CentOS Stream 10 box running XFS with a 10GiB disk, `cp --reflink=auto` fails to fall back.
We observed (via strace) that the ioctl for cloning fails with ENOSPC. It looks like XFS returns ENOSPC if the AG for reflink metadata is full [1] and we have confirmed this is the issue we're hitting. ENOSPC is one of the errors marked as terminal in `is_terminal_error` in `copy.c` so no fallback is attempted. Since it is only the AG for the reflink metadata which is full, using `cp --reflink=never` succeeds. Thank you, Peter Chaplin-Smith [1]: https://github.com/torvalds/linux/blob/89a312991dc6e638a36adc43ccb91dbc25504c04/fs/xfs/xfs_reflink.c#L1311-L1342 ________________________________ Sophos Ltd, a company registered in England and Wales, number 2096520, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom
