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

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/libbb/
H A Dfind_mount_point.c25 struct mntent *mountEntry; local
40 while ((mountEntry = getmntent(mountTable)) != 0) {
41 if (strcmp(name, mountEntry->mnt_dir) == 0
42 || strcmp(name, mountEntry->mnt_fsname) == 0
46 if (stat(mountEntry->mnt_fsname, &s) == 0 && s.st_rdev == mountDevice) /* Match the device. */
48 if (stat(mountEntry->mnt_dir, &s) == 0 && s.st_dev == mountDevice) /* Match the directory's mount point. */
52 return mountEntry;

Completed in 46 milliseconds