diff options
Diffstat (limited to 'module/zfs/spa_config.c')
-rw-r--r-- | module/zfs/spa_config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/zfs/spa_config.c b/module/zfs/spa_config.c index 7e712d368..8459e7362 100644 --- a/module/zfs/spa_config.c +++ b/module/zfs/spa_config.c @@ -162,6 +162,11 @@ spa_config_write(spa_config_dirent_t *dp, nvlist_t *nvl) */ if (nvl == NULL) { err = vn_remove(dp->scd_path, UIO_SYSSPACE, RMFILE); + /* + * Don't report an error when the cache file is already removed + */ + if (err == ENOENT) + err = 0; return (err); } |