[sheepdog] [sheepdog/sheepdog] 2818ac: tests/unit: Add unit tests on creating sparse/non-...

Hitoshi Mitake mitake.hitoshi at gmail.com
Fri May 27 07:43:02 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/sheepdog/sheepdog
  Commit: 2818ac1e1315ccc9de897603d47ba73026b37289
      https://github.com/sheepdog/sheepdog/commit/2818ac1e1315ccc9de897603d47ba73026b37289
  Author: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>
  Date:   2016-05-25 (Wed, 25 May 2016)

  Changed paths:
    M tests/unit/lib/Makefile.am
    A tests/unit/lib/test_atomic_create_and_write.c
    A tests/unit/lib/test_punchhole.c

  Log Message:
  -----------
  tests/unit: Add unit tests on creating sparse/non-sparse file

Signed-off-by: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>


  Commit: 2e3e1eede0b214d82539a2103476b05cad53d782
      https://github.com/sheepdog/sheepdog/commit/2e3e1eede0b214d82539a2103476b05cad53d782
  Author: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>
  Date:   2016-05-25 (Wed, 25 May 2016)

  Changed paths:
    M include/common.h
    M lib/common.c
    M sheep/config.c
    M sheep/store/common.c
    M sheep/store/md.c
    M tests/unit/lib/test_atomic_create_and_write.c

  Log Message:
  -----------
  lib: Add a parameter 'sparse' to atomic_create_and_write()

If sparse is true, atomic_create_and_write() should create sparse file.
Otherwise, it should do like as before i.e. create non-sparse file.

This also makes md_move_object() in sheep/store/md.c
call atomic_create_and_write() with sparse=true.
Hereby, object files will be sparsed when they move between disks (*).

(*) Note: being implemented in the next commmit

Signed-off-by: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>


  Commit: 094d723d43ef8d27a02b424b979f62e4448efe38
      https://github.com/sheepdog/sheepdog/commit/094d723d43ef8d27a02b424b979f62e4448efe38
  Author: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>
  Date:   2016-05-27 (Fri, 27 May 2016)

  Changed paths:
    M lib/common.c
    M tests/unit/lib/test_atomic_create_and_write.c

  Log Message:
  -----------
  lib: A sparse file can be created with atomic_create_and_write()

Fixes #227.

Signed-off-by: Takashi Menjo <menjo.takashi at lab.ntt.co.jp>


  Commit: c04cf2d9d382a8eaaf5f1e1e708b5baef12fe459
      https://github.com/sheepdog/sheepdog/commit/c04cf2d9d382a8eaaf5f1e1e708b5baef12fe459
  Author: Hitoshi Mitake <mitake.hitoshi at gmail.com>
  Date:   2016-05-27 (Fri, 27 May 2016)

  Changed paths:
    M include/common.h
    M lib/common.c
    M sheep/config.c
    M sheep/store/common.c
    M sheep/store/md.c
    M tests/unit/lib/Makefile.am
    A tests/unit/lib/test_atomic_create_and_write.c
    A tests/unit/lib/test_punchhole.c

  Log Message:
  -----------
  Merge pull request #244 from tmenjo/fix-md-sparse-object

lib: A sparse file can be created with atomic_create_and_write()


Compare: https://github.com/sheepdog/sheepdog/compare/9a7919422f69...c04cf2d9d382


More information about the sheepdog mailing list