]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
dmthin: express low_water in cluster_size not sector size
authorEryu Guan <eguan@redhat.com>
Fri, 17 Jun 2016 10:54:28 +0000 (18:54 +0800)
committerEryu Guan <eguan@redhat.com>
Wed, 22 Jun 2016 02:31:41 +0000 (10:31 +0800)
commit3832affdc989408b7cfd47835826266fb338bf7c
tree79816aa9eae3f429268d5a4eef2d4e1efc54db9a
parenta173f8e66d7d8df90a48cd239de13f05fce2d228
dmthin: express low_water in cluster_size not sector size

I noticed that thin-pool sent out "reached low water mark for data
device" event even before thin-pool device was mounted in
generic/347, this is because low water mark was set to a too high
value.

According to kernel thin-provisioning.txt documentation, low water
mark should be expressed in blocks of $cluster_size, not in sectors.

"$low_water_mark is expressed in blocks of size $data_block_size."

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/dmthin