storage/dir: remove error handling down

parent 4a398f8c
...@@ -170,8 +170,6 @@ int dir_mount(struct lxc_storage *bdev) ...@@ -170,8 +170,6 @@ int dir_mount(struct lxc_storage *bdev)
"", PROTECT_OPATH_DIRECTORY, "", PROTECT_OPATH_DIRECTORY,
PROTECT_LOOKUP_BENEATH, 0, true); PROTECT_LOOKUP_BENEATH, 0, true);
} }
if (ret < 0)
return syserror("Failed to mount \"%s\" onto \"%s\"", source, target);
} else { } else {
ret = mount(source, target, "bind", MS_BIND | MS_REC | mnt_opts->mnt_flags | mnt_opts->prop_flags, mnt_opts->data); ret = mount(source, target, "bind", MS_BIND | MS_REC | mnt_opts->mnt_flags | mnt_opts->prop_flags, mnt_opts->data);
if (ret < 0) if (ret < 0)
...@@ -192,6 +190,8 @@ int dir_mount(struct lxc_storage *bdev) ...@@ -192,6 +190,8 @@ int dir_mount(struct lxc_storage *bdev)
TRACE("Mounted \"%s\" on \"%s\" with options \"%s\", mount flags \"%lu\", and propagation flags \"%lu\"", TRACE("Mounted \"%s\" on \"%s\" with options \"%s\", mount flags \"%lu\", and propagation flags \"%lu\"",
source, target, mnt_opts->data, mflags, mnt_opts->mnt_flags); source, target, mnt_opts->data, mflags, mnt_opts->mnt_flags);
} }
if (ret < 0)
return syserror_set(ret, "Failed to mount \"%s\" onto \"%s\"", source, target);
TRACE("Mounted \"%s\" onto \"%s\"", source, target); TRACE("Mounted \"%s\" onto \"%s\"", source, target);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment