Home
last modified time | relevance | path

Searched refs:fstab (Results 1 – 25 of 39) sorted by relevance

12

/base/update/updater/test/unittest/mount_test/
Dfstabapi_unittest.cpp56 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/
Dinit_mount.c26 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()
Dinit.c133 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 …]
Dswitch_root.c99 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()
Dinit_mount.h27 int MountRequriedPartitions(const Fstab *fstab);
/base/startup/init/interfaces/innerkits/fs_manager/
Dfstab.c76 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 …]
Dfstab_mount.c446 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/
Dinnerkits_unittest.cpp71 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/
Dfs_manager.h81 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/
Dmount_unittest.cpp51 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/
Dreadfstabfromfile_fuzzer.cpp33 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/
Dreleasefstab_fuzzer.cpp36 Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzReleaseFstab() local
37 ReleaseFstab(fstab); in FuzzReleaseFstab()
/base/startup/init/test/fuzztest/mountallwithfstab_fuzzer/
Dmountallwithfstab_fuzzer.cpp36 Fstab *fstab = ReadFstabFromFile("fstab.test", false); in FuzzMountAllWithFstab() local
37 if (!MountAllWithFstab(fstab, false)) { in FuzzMountAllWithFstab()
/base/startup/init/test/fuzztest/findfstabitemforpath_fuzzer/
Dfindfstabitemforpath_fuzzer.cpp38 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/
Dparsefstabperline_fuzzer.cpp38 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/
Dfindfstabitemformountpoint_fuzzer.cpp38 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/
Dmountoneitem_fuzzer.cpp38 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/
Dgetblockdevicebyname_fuzzer.cpp38 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/
Dgetblockdevicebymountpoint_fuzzer.cpp37 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/
Dfstab.updater1 # cat fstab.updater
2 # fstab file.
/base/startup/init/interfaces/innerkits/fs_manager/dm_verity/
Ddm_verity.c66 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/
Ddm_verity.h29 int HvbDmVerityinit(const Fstab *fstab);
/base/startup/hvb/
DREADME_zh.md145 ### fstab适配
147 [init](https://gitee.com/openharmony/startup_init_lite)部件在挂载系统镜像时,会根据fstab配置的fs_mgr_flags选项决定哪些系统镜像…
/base/update/updater/
DREADME_zh.md61 升级包安装组件在运行过程中,需要通过分区配置表操作分区。默认的分区配置表文件名是fstab.updater,在编译的时候,打包到升级包安装组件中。
/base/startup/init/services/etc/param/
Dohos.para15 const.postinstall.fstab.prefix=/system

12