Home
last modified time | relevance | path

Searched refs:mentry (Results 1 - 4 of 4) sorted by relevance

/base/startup/init/test/unittest/remount/
H A Dremount_overlay_unittest.cpp44 struct mntent mentry; in HWTEST_F() local
45 bool ret = IsSkipRemount(mentry); in HWTEST_F()
48 mentry.mnt_type = "ufs"; in HWTEST_F()
49 mentry.mnt_dir = "test"; in HWTEST_F()
50 ret = IsSkipRemount(mentry); in HWTEST_F()
53 mentry.mnt_dir = "/"; in HWTEST_F()
54 ret = IsSkipRemount(mentry); in HWTEST_F()
57 mentry.mnt_type = "er11ofs"; in HWTEST_F()
58 ret = IsSkipRemount(mentry); in HWTEST_F()
61 mentry in HWTEST_F()
[all...]
/base/startup/init/remount/
H A Dremount_overlay.c51 INIT_STATIC bool IsSkipRemount(const struct mntent mentry) in IsSkipRemount() argument
53 if (mentry.mnt_type == NULL || mentry.mnt_dir == NULL) { in IsSkipRemount()
56 if (!MntNeedRemount(mentry.mnt_dir)) { in IsSkipRemount()
59 if (strncmp(mentry.mnt_type, "erofs", strlen("erofs")) != 0) { in IsSkipRemount()
63 if (strncmp(mentry.mnt_fsname, "/dev/block/dm-", strlen("/dev/block/dm-")) != 0) { in IsSkipRemount()
160 INIT_STATIC bool DoRemount(struct mntent *mentry, bool *result) in DoRemount() argument
165 ret = sscanf_s(mentry->mnt_fsname + strlen("/dev/block/dm-"), "%d", &devNum); in DoRemount()
178 if (strncmp(mentry->mnt_dir, PREFIX_LOWER, strlen(PREFIX_LOWER)) == 0) { in DoRemount()
179 mnt = mentry in DoRemount()
258 DoSystemRemount(struct mntent *mentry, bool *result) DoSystemRemount() argument
402 struct mntent *mentry = NULL; RemountRofsOverlay() local
[all...]
/base/startup/init/test/unittest/param/
H A Dparam_stub.h104 bool IsSkipRemount(const struct mntent mentry);
110 bool DoRemount(struct mntent *mentry, bool *result);
112 bool DoSystemRemount(struct mntent *mentry, bool *result);
/base/tee/tee_client/services/teecd/src/
H A Dfs_work_agent.c651 struct mntent *mentry = NULL; in CheckPartitionReady() local
659 mentry = getmntent(fp); in CheckPartitionReady()
660 while (mentry != NULL) { in CheckPartitionReady()
661 if (mentry->mnt_dir != NULL) { in CheckPartitionReady()
662 if (strlen(mentry->mnt_dir) == strlen(mntDir) && in CheckPartitionReady()
663 strncmp(mentry->mnt_dir, mntDir, strlen(mntDir)) == 0) { in CheckPartitionReady()
668 mentry = getmntent(fp); in CheckPartitionReady()

Completed in 3 milliseconds