Home | History | Annotate | Download | only in misc

Lines Matching refs:mnt

269 	struct mntent	*mnt = NULL;
284 while ((mnt = getmntent(fp)) != NULL) {
291 if (stat64(mnt->mnt_fsname, &ms) < 0)
297 if (strcmp(mnt->mnt_type, FS_EXT4) == 0) {
298 strncpy(mount_point, mnt->mnt_dir,
324 struct mntent *mnt = NULL;
351 while ((mnt = getmntent(fp)) != NULL) {
352 if (mnt->mnt_fsname[0] != '/')
354 len = strlen(mnt->mnt_dir);
355 ret = memcmp(file_path, mnt->mnt_dir, len);
364 mnt_type = realloc(mnt_type, strlen(mnt->mnt_type) + 1);
369 memset(mnt_type, 0, strlen(mnt->mnt_type) + 1);
370 strncpy(mnt_type, mnt->mnt_type, strlen(mnt->mnt_type));
371 strncpy(lost_found_dir, mnt->mnt_dir, PATH_MAX);
372 strncpy(devname, mnt->mnt_fsname, strlen(mnt->mnt_fsname) + 1);