Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sheep: Only ledger and inode objects keep sparse when "dog node md plug"
From the commit 2e3e1ee, atomic_create_and_write have required the sparse parameter and md_move_object have called this with sparse=true. Because of this, *all* the objects moving across the disks become sparse when "dog node md plug," including the ones which should not become sparse such as pre-allocated fully-zeroed data objects. This commit fixes the problem described above. To be specific, before calling atomic_create_and_write, md_move_object calls is_sparse_object to check whether the given object can be sparse i.e. is either ledger or inode object. Signed-off-by: Takashi Menjo <menjo.takashi@lab.ntt.co.jp>
- Loading branch information