In the same vein, I've also made https://github.com/pwaller/sharedextents - which exits with status 0 when there are shared extents, and 1 otherwise; it also prints the number and percentage of shared bytes. Here it is running on the file and its reflink copy from "A BTRFS mystery" in the previous post: $ sharedextents x y 1142734848 / 1679605760 bytes (68.04%) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
