802 if(vfs_class.length > 0) { |
802 if(vfs_class.length > 0) { |
803 VfsType *vfs = vfs_get_type((scstr_t){vfs_class.ptr, vfs_class.length}); |
803 VfsType *vfs = vfs_get_type((scstr_t){vfs_class.ptr, vfs_class.length}); |
804 if(vfs) { |
804 if(vfs) { |
805 repository->vfs = vfs; |
805 repository->vfs = vfs; |
806 repository->vfsInitData = vfs_init_backend(cfg, cfg->pool, vfs, obj, &init_error); |
806 repository->vfsInitData = vfs_init_backend(cfg, cfg->pool, vfs, obj, &init_error); |
807 ret = init_error; |
807 if(!ret) { |
|
808 ret = init_error; |
|
809 } |
808 } else { |
810 } else { |
809 log_ereport(LOG_FAILURE, "Unknown vfs type '%s'", vfs_class.ptr); |
811 log_ereport(LOG_FAILURE, "Unknown vfs type '%s'", vfs_class.ptr); |
810 ret = 1; |
812 ret = 1; |
811 } |
813 } |
812 } |
814 } |