Lines Matching defs:mnt
389 static struct mnttab mnt;
400 while ( getmntent( mtab, &mnt ) == 0 ) {
402 if ( (stat( mnt.mnt_special, &sb ) == 0) && (devno == sb.st_rdev)) {
404 return mnt.mnt_mountp;
408 * strcmp(mnt.mnt_fstype, MNTTYPE_NFS), but that's not as fast. */
409 if ((stat(mnt.mnt_mountp, &sb) == 0) && (devno == sb.st_dev) &&
410 strchr(mnt.mnt_special, ':')) {
413 return mnt.mnt_special;
476 struct mntent *mnt;
488 while (( mnt = getmntent( mtab )) != NULL ) {
490 if ( (stat( mnt->mnt_fsname, &sb ) == 0) && devno == sb.st_rdev) {
496 * strcmp(mnt->mnt_type, MNTTYPE_NFS) instead of the strchr. */
497 if ((stat(mnt->mnt_dir, &sb) == 0) && (devno == sb.st_dev) &&
498 strchr(mnt->mnt_fsname, ':')) {
510 if (strcmp(mnt->mnt_type, "xfs") == 0)
514 return( mnt->mnt_fsname );