[sheepdog] [sheepdog/sheepdog] 44a726: sheep: Only ledger and inode objects keep sparse w...
Hitoshi Mitake
mitake.hitoshi at gmail.com
Wed Aug 31 03:28:43 CEST 2016
Branch: refs/heads/master
Home: https://github.com/sheepdog/sheepdog
Commit: 44a7268e90acc662a36199854942613cb5e29709
https://github.com/sheepdog/sheepdog/commit/44a7268e90acc662a36199854942613cb5e29709
Author: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>
Date: 2016-08-29 (Mon, 29 Aug 2016)
Changed paths:
M sheep/store/md.c
Log Message:
-----------
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 at lab.ntt.co.jp>
Commit: 9c8c07e9e1713e085af6b35f12df6f601b8e7fbd
https://github.com/sheepdog/sheepdog/commit/9c8c07e9e1713e085af6b35f12df6f601b8e7fbd
Author: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>
Date: 2016-08-29 (Mon, 29 Aug 2016)
Changed paths:
A tests/functional/114
A tests/functional/114.out
M tests/functional/group
Log Message:
-----------
tests: Add functional 114 to test sparse file when "dog node md plug"
Signed-off-by: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>
Commit: dbf83bcaee9a395684680a184a43f5bf8df96c57
https://github.com/sheepdog/sheepdog/commit/dbf83bcaee9a395684680a184a43f5bf8df96c57
Author: Hitoshi Mitake <mitake.hitoshi at gmail.com>
Date: 2016-08-31 (Wed, 31 Aug 2016)
Changed paths:
M sheep/store/md.c
A tests/functional/114
A tests/functional/114.out
M tests/functional/group
Log Message:
-----------
Merge pull request #303 from tmenjo/md-is-sparse-object
sheep: Only ledger and inode objects keep sparse when "dog node md plug"
Compare: https://github.com/sheepdog/sheepdog/compare/ba1f39aca02a...dbf83bcaee9a
More information about the sheepdog
mailing list