The correct way to check for CoW support and conditionally disabling it
for the database is just by setting the NO_COW flag.
The CoW support is not only filesystem dependent, but is affected by
parameters at filesystem creation (XFS reflink) or mount time (BTRFS
nodatacow).