cp --reflink 失败
linux 提供了copy on write 的功能, cp 带上--reflink
cp --reflink 失败的情况:
cp --reflink=always
几乎肯定能正常工作。如果不是,您将收到错误。按照设计,这是--reflink=always
和--reflink=auto
之间的区别。错误看起来像这样:
# Filesystem that does not support the feature at all
cp: failed to clone `xx' from `yy': Inappropriate ioctl for device
# Filesystem that does support it, but copy across filesystems
cp: failed to clone `xx' from `yy': Invalid cross-device link