return rc;
}
-static int check_mtab_entry(char *spec, char *type)
+static int check_mtab_entry(char *spec)
{
FILE *fp;
struct mntent *mnt;
return(0);
while ((mnt = getmntent(fp)) != NULL) {
- if (strcmp(mnt->mnt_fsname, spec) == 0 &&
- strcmp(mnt->mnt_type, type) == 0) {
+ if (strcmp(mnt->mnt_fsname, spec) == 0) {
endmntent(fp);
fprintf(stderr, "%s: according to %s %s is "
"already mounted on %s\n",
(pre CMD) */
mop->mo_ldd.ldd_svindex = 0;
} else {
- /* The index won't be correct */
+ /* The index may not be correct */
mop->mo_ldd.ldd_flags =
LDD_F_SV_TYPE_OST | LDD_F_NEED_INDEX;
vprint("OST with unknown index\n");
/* device is last arg */
strcpy(mop.mo_device, argv[argc - 1]);
- if (check_mtab_entry(mop.mo_device, "lustre"))
+ if (check_mtab_entry(mop.mo_device))
return(EEXIST);
/* Are we using a loop device? */