int
init_options(struct lustre_mount_data *lmd)
{
- memset(lmd, 0, sizeof(*lmd));
+ memset(lmd, 0, sizeof(lmd));
lmd->lmd_magic = LMD_MAGIC;
lmd->lmd_server_nid = PTL_NID_ANY;
lmd->lmd_local_nid = PTL_NID_ANY;
if (rc != 0) {
fprintf(stderr, "%s: can't read Elan ID from /proc\n",
progname);
-
+
return -1;
}
}
rc = mount(source, target, "lustre", 0, (void *)&lmd);
if (rc) {
- rc = errno;
perror(argv[0]);
- if (rc == ENODEV)
- fprintf(stderr, "Are the lustre modules loaded?\n"
- "Check /etc/modules.conf and /proc/filesystems\n");
} else {
update_mtab_entry(source, target, "lustre", options, 0, 0, 0);
}