/base/update/updater/test/unittest/mount_test/ |
D | fstabapi_unittest.cpp | 56 Fstab *fstab = nullptr; variable 58 fstab = ReadFstabFromFile(fstabFile1.c_str(), false); 59 EXPECT_EQ(fstab, nullptr); 61 fstab = ReadFstabFromFile(fstabFile2.c_str(), false); 62 EXPECT_EQ(fstab, nullptr); 64 fstab = ReadFstabFromFile(fstabFile3.c_str(), false); 65 EXPECT_EQ(fstab, nullptr); 67 fstab = ReadFstabFromFile(fstabFile4.c_str(), false); 68 EXPECT_EQ(fstab, nullptr); 70 fstab = ReadFstabFromFile(fstabFile5.c_str(), false); [all …]
|
/base/startup/init/services/init/standard/ |
D | init_mount.c | 26 int MountRequriedPartitions(const Fstab *fstab) in MountRequriedPartitions() argument 28 INIT_ERROR_CHECK(fstab != NULL, return -1, "fstab is NULL"); in MountRequriedPartitions() 31 rc = MountAllWithFstab(fstab, 1); in MountRequriedPartitions() 37 Fstab *fstab = NULL; in LoadRequiredFstab() local 38 fstab = LoadFstabFromCommandLine(); in LoadRequiredFstab() 39 if (fstab == NULL) { in LoadRequiredFstab() 44 fstab = ReadFstabFromFile(fstabFile, false); in LoadRequiredFstab() 46 return fstab; in LoadRequiredFstab()
|
D | init.c | 133 static char **GetRequiredDevices(Fstab fstab, int *requiredNum) in GetRequiredDevices() argument 136 FstabItem *item = fstab.head; in GetRequiredDevices() 150 item = fstab.head; in GetRequiredDevices() 180 Fstab *fstab = LoadRequiredFstab(); in StartInitSecondStage() local 181 char **devices = (fstab != NULL) ? GetRequiredDevices(*fstab, &requiredNum) : NULL; in StartInitSecondStage() 185 ret = MountRequriedPartitions(fstab); in StartInitSecondStage() 189 ReleaseFstab(fstab); in StartInitSecondStage() 190 fstab = NULL; in StartInitSecondStage() 204 if (fstab != NULL) { in StartInitSecondStage() 205 ReleaseFstab(fstab); in StartInitSecondStage() [all …]
|
D | switch_root.c | 99 Fstab *fstab = ReadFstabFromFile("/proc/mounts", true); in MountToNewTarget() local 100 if (fstab == NULL) { in MountToNewTarget() 105 for (FstabItem *item = fstab->head; item != NULL; item = item->next) { in MountToNewTarget() 128 ReleaseFstab(fstab); in MountToNewTarget() 129 fstab = NULL; in MountToNewTarget()
|
D | init_mount.h | 27 int MountRequriedPartitions(const Fstab *fstab);
|
/base/startup/init/interfaces/innerkits/fs_manager/ |
D | fstab.c | 76 static int AddToFstab(Fstab *fstab, FstabItem *item) in AddToFstab() argument 78 if (fstab == NULL || item == NULL) { in AddToFstab() 81 if (fstab->tail == NULL) { in AddToFstab() 82 fstab->head = fstab->tail = item; in AddToFstab() 84 fstab->tail->next = item; in AddToFstab() 85 fstab->tail = item; in AddToFstab() 117 void ReleaseFstab(Fstab *fstab) in ReleaseFstab() argument 119 if (fstab != NULL) { in ReleaseFstab() 120 FstabItem *item = fstab->head; in ReleaseFstab() 126 fstab->head = fstab->tail = NULL; in ReleaseFstab() [all …]
|
D | fstab_mount.c | 446 int MountAllWithFstab(const Fstab *fstab, bool required) in MountAllWithFstab() argument 448 BEGET_CHECK(fstab != NULL, return -1); in MountAllWithFstab() 455 rc = HvbDmVerityinit(fstab); in MountAllWithFstab() 462 for (item = fstab->head; item != NULL; item = item->next) { in MountAllWithFstab() 482 Fstab *fstab = NULL; in MountAllWithFstabFile() local 483 if ((fstab = ReadFstabFromFile(fstabFile, false)) == NULL) { in MountAllWithFstabFile() 488 int rc = MountAllWithFstab(fstab, required); in MountAllWithFstabFile() 489 ReleaseFstab(fstab); in MountAllWithFstabFile() 490 fstab = NULL; in MountAllWithFstabFile() 499 Fstab *fstab = NULL; in UmountAllWithFstabFile() local [all …]
|
/base/startup/init/test/unittest/innerkits/ |
D | innerkits_unittest.cpp | 71 Fstab *fstab = nullptr; variable 73 fstab = ReadFstabFromFile(fstabFile1.c_str(), false); 74 EXPECT_EQ(fstab, nullptr); 76 fstab = ReadFstabFromFile(fstabFile2.c_str(), false); 77 EXPECT_NE(fstab, nullptr); 78 ParseFstabPerLine(const_cast<char *>("test"), fstab, true, nullptr); 79 ReleaseFstab(fstab); 92 Fstab *fstab = nullptr; variable 93 fstab = ReadFstabFromFile(fstabFile1.c_str(), false); 94 ASSERT_NE(fstab, nullptr); [all …]
|
/base/startup/init/interfaces/innerkits/include/fs_manager/ |
D | fs_manager.h | 81 void ReleaseFstab(Fstab *fstab); 83 FstabItem *FindFstabItemForPath(Fstab fstab, const char *path); 84 FstabItem* FindFstabItemForMountPoint(Fstab fstab, const char *mp); 85 int ParseFstabPerLine(char *str, Fstab *fstab, bool procMounts, const char *separator); 87 int GetBlockDeviceByMountPoint(const char *mountPoint, const Fstab *fstab, char *deviceName, int na… 88 int GetBlockDeviceByName(const char *deviceName, const Fstab *fstab, char* miscDev, size_t size); 94 int MountAllWithFstab(const Fstab *fstab, bool required);
|
/base/startup/init/test/unittest/init/ |
D | mount_unittest.cpp | 51 Fstab fstab = {&fstabitem}; variable 53 ret = GetBlockDeviceByMountPoint("notmountpoint", &fstab, devicename, sizeof(devicename)); 55 ret = GetBlockDeviceByMountPoint("mountPoint", &fstab, devicename, 0); 57 ret = GetBlockDeviceByMountPoint("mountPoint", &fstab, devicename, sizeof(devicename));
|
/base/update/updater/test/fuzztest/readfstabfromfile_fuzzer/ |
D | readfstabfromfile_fuzzer.cpp | 33 Fstab *fstab = NULL; in FuzzReadFstabFromFile() local 44 fstab = ReadFstabFromFile(fstabFile.c_str(), false); in FuzzReadFstabFromFile() 46 ReleaseFstab(fstab); in FuzzReadFstabFromFile()
|
/base/startup/init/test/fuzztest/releasefstab_fuzzer/ |
D | releasefstab_fuzzer.cpp | 36 Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzReleaseFstab() local 37 ReleaseFstab(fstab); in FuzzReleaseFstab()
|
/base/startup/init/test/fuzztest/mountallwithfstab_fuzzer/ |
D | mountallwithfstab_fuzzer.cpp | 36 Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzMountAllWithFstab() local 37 if (!MountAllWithFstab(fstab, false)) { in FuzzMountAllWithFstab()
|
/base/startup/init/test/fuzztest/findfstabitemforpath_fuzzer/ |
D | findfstabitemforpath_fuzzer.cpp | 38 Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzFindFstabItemForPath() local 41 if (FindFstabItemForPath(*fstab, str.c_str()) != nullptr) { in FuzzFindFstabItemForPath()
|
/base/startup/init/test/fuzztest/parsefstabperline_fuzzer/ |
D | parsefstabperline_fuzzer.cpp | 38 Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzParseFstabPerLine() local 41 if (ParseFstabPerLine(nullptr, fstab, false, str.c_str())) { in FuzzParseFstabPerLine()
|
/base/startup/init/test/fuzztest/findfstabitemformountpoint_fuzzer/ |
D | findfstabitemformountpoint_fuzzer.cpp | 38 Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzFindFstabItemForMountPoint() local 41 if (FindFstabItemForMountPoint(*fstab, str.c_str()) != nullptr) { in FuzzFindFstabItemForMountPoint()
|
/base/startup/init/test/fuzztest/mountoneitem_fuzzer/ |
D | mountoneitem_fuzzer.cpp | 38 Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzMountOneItem() local 41 FstabItem *item = FindFstabItemForPath(*fstab, str.c_str()); in FuzzMountOneItem()
|
/base/startup/init/test/fuzztest/getblockdevicebyname_fuzzer/ |
D | getblockdevicebyname_fuzzer.cpp | 38 const Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzGetBlockDeviceByName() local 44 if (GetBlockDeviceByName(str.c_str(), fstab, miscDev, len)) { in FuzzGetBlockDeviceByName()
|
/base/startup/init/test/fuzztest/getblockdevicebymountpoint_fuzzer/ |
D | getblockdevicebymountpoint_fuzzer.cpp | 37 const Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzGetBlockDeviceByMountPoint() local 41 if (!GetBlockDeviceByMountPoint(str.c_str(), fstab, deviceName, length)) { in FuzzGetBlockDeviceByMountPoint()
|
/base/update/updater/test/unittest/test_data/updater/ |
D | fstab.updater | 1 # cat fstab.updater 2 # fstab file.
|
/base/startup/init/interfaces/innerkits/fs_manager/dm_verity/ |
D | dm_verity.c | 66 int HvbDmVerityinit(const Fstab *fstab) in HvbDmVerityinit() argument 76 for (p = fstab->head; p != NULL; p = p->next) { in HvbDmVerityinit()
|
/base/startup/init/interfaces/innerkits/fs_manager/dm_verity/include/ |
D | dm_verity.h | 29 int HvbDmVerityinit(const Fstab *fstab);
|
/base/startup/hvb/ |
D | README_zh.md | 145 ### fstab适配 147 [init](https://gitee.com/openharmony/startup_init_lite)部件在挂载系统镜像时,会根据fstab配置的fs_mgr_flags选项决定哪些系统镜像…
|
/base/update/updater/ |
D | README_zh.md | 61 升级包安装组件在运行过程中,需要通过分区配置表操作分区。默认的分区配置表文件名是fstab.updater,在编译的时候,打包到升级包安装组件中。
|
/base/startup/init/services/etc/param/ |
D | ohos.para | 15 const.postinstall.fstab.prefix=/system
|