]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Revert "dir: non-functional changes"
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 15 Aug 2017 16:11:11 +0000 (18:11 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 15 Aug 2017 16:44:43 +0000 (18:44 +0200)
This reverts commit 8f2896da31e7822eb7894a5ade9e11652fe75f7f.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/bdev/lxcdir.c

index bf2336539f6f95343c08813909fdd427d8c16db7..cd3d40ad65c6501328714e6e117b2c7440a8a44c 100644 (file)
@@ -36,15 +36,14 @@ lxc_log_define(lxcdir, lxc);
  * name and paths for the new
  */
 int dir_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname,
-                  const char *cname, const char *oldpath, const char *lxcpath,
-                  int snap, uint64_t newsize, struct lxc_conf *conf)
+               const char *cname, const char *oldpath, const char *lxcpath,
+               int snap, uint64_t newsize, struct lxc_conf *conf)
 {
        int ret;
        size_t len;
 
        if (snap) {
-               ERROR("directories cannot be snapshotted.  Try aufs or "
-                     "overlayfs.");
+               ERROR("directories cannot be snapshotted.  Try aufs or overlayfs.");
                return -1;
        }
 
@@ -151,13 +150,11 @@ int dir_mount(struct bdev *bdev)
 
        src = lxc_storage_get_path(bdev->src, bdev->type);
 
-       ret = mount(src, bdev->dest, "bind", MS_BIND | MS_REC | mntflags,
-                   mntdata);
+       ret = mount(src, bdev->dest, "bind", MS_BIND | MS_REC | mntflags, mntdata);
        if ((0 == ret) && (mntflags & MS_RDONLY)) {
                DEBUG("remounting %s on %s with readonly options",
-                     src ? src : "(none)", bdev->dest ? bdev->dest : "(none)");
-               mflags = add_required_remount_flags(
-                   src, bdev->dest, MS_BIND | MS_REC | mntflags | MS_REMOUNT);
+                       src ? src : "(none)", bdev->dest ? bdev->dest : "(none)");
+               mflags = add_required_remount_flags(src, bdev->dest, MS_BIND | MS_REC | mntflags | MS_REMOUNT);
                ret = mount(src, bdev->dest, "bind", mflags, mntdata);
        }