[zircon][fvm] Decouple format from disk size.
This is the first step towards allowing gaps between primary and secondary metadata. This gaps are meant to represent room for growth when the underlying block device grows (extend the fvm partition). added fvm/test for unittests. The integration test that was added verifies that even if the underlying block devices grows, for now, the FVM remains unchanged in terms of addressable slices and data persistency. It is just a safety check as we add logic to actually grow and increase the addressable slices later. TEST=fvm-unit-test, fvm-test Change-Id: I733aea9f22431d98dfaa792e52ebe80a2d9cf59e
Showing
- zircon/system/dev/block/fvm/fvm-private.h 11 additions, 9 deletionszircon/system/dev/block/fvm/fvm-private.h
- zircon/system/dev/block/fvm/fvm.cpp 21 additions, 22 deletionszircon/system/dev/block/fvm/fvm.cpp
- zircon/system/dev/block/fvm/vpartition.cpp 7 additions, 10 deletionszircon/system/dev/block/fvm/vpartition.cpp
- zircon/system/ulib/fvm-host/container/fvm.cpp 14 additions, 11 deletionszircon/system/ulib/fvm-host/container/fvm.cpp
- zircon/system/ulib/fvm/fvm-check.cpp 31 additions, 29 deletionszircon/system/ulib/fvm/fvm-check.cpp
- zircon/system/ulib/fvm/fvm.cpp 45 additions, 4 deletionszircon/system/ulib/fvm/fvm.cpp
- zircon/system/ulib/fvm/include/fvm/format.h 79 additions, 17 deletionszircon/system/ulib/fvm/include/fvm/format.h
- zircon/system/ulib/fvm/test/BUILD.gn 29 additions, 0 deletionszircon/system/ulib/fvm/test/BUILD.gn
- zircon/system/ulib/fvm/test/format-info-test.cpp 115 additions, 0 deletionszircon/system/ulib/fvm/test/format-info-test.cpp
- zircon/system/ulib/fvm/test/main.cpp 9 additions, 0 deletionszircon/system/ulib/fvm/test/main.cpp
- zircon/system/utest/BUILD.gn 2 additions, 0 deletionszircon/system/utest/BUILD.gn
- zircon/system/utest/fvm/fvm.cpp 200 additions, 127 deletionszircon/system/utest/fvm/fvm.cpp
Loading
Please register or sign in to comment