Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-7318 out: dynamic reply size
[fs/lustre-release.git]
/
lustre
/
utils
/
mount_utils.c
diff --git
a/lustre/utils/mount_utils.c
b/lustre/utils/mount_utils.c
index
2ec3489
..
b19aeef
100644
(file)
--- a/
lustre/utils/mount_utils.c
+++ b/
lustre/utils/mount_utils.c
@@
-573,7
+573,7
@@
int backfs_mount_type_okay(enum ldd_mount_type mount_type)
}
if (backfs_ops[mount_type] == NULL) {
fatal();
}
if (backfs_ops[mount_type] == NULL) {
fatal();
- fprintf(stderr, "unhandled fs type %d '%s'\n",
+ fprintf(stderr, "unhandled
/unloaded
fs type %d '%s'\n",
mount_type, mt_str(mount_type));
return 0;
}
mount_type, mt_str(mount_type));
return 0;
}
@@
-706,14
+706,19
@@
int osd_enable_quota(struct mkfs_opts *mop)
int osd_init(void)
{
int osd_init(void)
{
- int i, r
et = 0
;
+ int i, r
c, ret = EINVAL
;
for (i = 0; i < LDD_MT_LAST; ++i) {
for (i = 0; i < LDD_MT_LAST; ++i) {
+ rc = 0;
backfs_ops[i] = load_backfs_module(i);
if (backfs_ops[i] != NULL)
backfs_ops[i] = load_backfs_module(i);
if (backfs_ops[i] != NULL)
- ret = backfs_ops[i]->init();
- if (ret)
- break;
+ rc = backfs_ops[i]->init();
+ if (rc != 0) {
+ backfs_ops[i]->fini();
+ unload_backfs_module(backfs_ops[i]);
+ backfs_ops[i] = NULL;
+ } else
+ ret = 0;
}
return ret;
}
return ret;