[fshost] Reformat zxcrypt and minfs partitions when missing.
If the disk format is unknown but the GPT GUID values dictate that it should be a data format, it determines if the volume should be a zxcrypt or minfs partition and formats it as such. Added a unit test that failed without the changes. I added a test that would have caught the vim2 breakage, but I also manually tested that it boots up properly. Change-Id: I276d55fc8dbcc8377d6a6b7d5dfe7b0fd9019eb4
Showing
- zircon/system/core/devmgr/fshost/block-device-interface.h 8 additions, 0 deletionszircon/system/core/devmgr/fshost/block-device-interface.h
- zircon/system/core/devmgr/fshost/block-device-test.cpp 55 additions, 18 deletionszircon/system/core/devmgr/fshost/block-device-test.cpp
- zircon/system/core/devmgr/fshost/block-device.cpp 57 additions, 0 deletionszircon/system/core/devmgr/fshost/block-device.cpp
- zircon/system/core/devmgr/fshost/block-device.h 2 additions, 0 deletionszircon/system/core/devmgr/fshost/block-device.h
- zircon/system/core/devmgr/fshost/block-watcher-test.cpp 133 additions, 0 deletionszircon/system/core/devmgr/fshost/block-watcher-test.cpp
- zircon/system/utest/BUILD.gn 1 addition, 0 deletionszircon/system/utest/BUILD.gn
- zircon/system/utest/fs-recovery/BUILD.gn 33 additions, 0 deletionszircon/system/utest/fs-recovery/BUILD.gn
- zircon/system/utest/fs-recovery/recovery.cpp 181 additions, 0 deletionszircon/system/utest/fs-recovery/recovery.cpp
- zircon/system/utest/fs-test-utils/perftest_test.cpp 1 addition, 1 deletionzircon/system/utest/fs-test-utils/perftest_test.cpp
Loading
Please register or sign in to comment