btrfs/012: check free size of scratch device before copying files
authorSidong Yang <realwakka@gmail.com>
Sun, 23 May 2021 05:08:59 +0000 (05:08 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 23 May 2021 08:30:48 +0000 (16:30 +0800)
commit82901113bc7292a2ab56b6627f3169190a8b75a0
treea994e2021c6168eae68d41fb3287c88c216dc08b
parentae5184464dde6a38cc840082738d336a6c8b3b4e
btrfs/012: check free size of scratch device before copying files

This test failed when scratch device don't have enough space for
copying files. This patch gets size of files by du command and
checks if there is enough space in the device.

Signed-off-by: Sidong Yang <realwakka@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/012