* @brief if the Filesystem is reflink/clone capable and both paths are on the same device * */
| 1262 | * |
| 1263 | */ |
| 1264 | bool canClone(const QString& src, const QString& dst) |
| 1265 | { |
| 1266 | auto srcVInfo = statFS(src); |
| 1267 | auto dstVInfo = statFS(dst); |
| 1268 | |
| 1269 | bool sameDevice = srcVInfo.rootPath == dstVInfo.rootPath; |
| 1270 | |
| 1271 | return sameDevice && canCloneOnFS(srcVInfo) && canCloneOnFS(dstVInfo); |
| 1272 | } |
| 1273 | |
| 1274 | /** |
| 1275 | * @brief reflink/clones a directory and it's contents from src to dest |
no test coverage detected