1. 09 Jan, 2015 1 commit
  2. 08 Jan, 2015 4 commits
    • Miklos Szeredi's avatar
      ovl: document lower layer ordering · 6d900f5a
      Miklos Szeredi authored
      Reported-by: Fabian Sturm <fabian.sturm@aduu.de> 
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      6d900f5a
    • Seunghun Lee's avatar
      ovl: Prevent rw remount when it should be ro mount · 3cdf6fe9
      Seunghun Lee authored
      Overlayfs should be mounted read-only when upper-fs is read-only or nonexistent.
      But now it can be remounted read-write and this can cause kernel panic.
      So we should prevent read-write remount when the above situation happens.
      Signed-off-by: default avatarSeunghun Lee <waydi1@gmail.com>
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      3cdf6fe9
    • hujianyang's avatar
      ovl: Fix opaque regression in ovl_lookup · a425c037
      hujianyang authored
      Current multi-layer support overlayfs has a regression in
      .lookup(). If there is a directory in upperdir and a regular
      file has same name in lowerdir in a merged directory, lower
      file is hidden and upper directory is set to opaque in former
      case. But it is changed in present code.
      
      In lowerdir lookup path, if a found inode is not directory,
      the type checking of previous inode is missing. This inode
      will be copied to the lowerstack of ovl_entry directly.
      
      That will lead to several wrong conditions, for example,
      the reading of the directory in upperdir may return an error
      like:
      
         ls: reading directory .: Not a directory
      
      This patch makes the lowerdir lookup path check the opaque
      for non-directory file too.
      Signed-off-by: default avatarhujianyang <hujianyang@huawei.com>
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      a425c037
    • hujianyang's avatar
      ovl: Fix kernel panic while mounting overlayfs · 2f83fd8c
      hujianyang authored
      The function ovl_fill_super() in recently multi-layer support
      version will incorrectly return 0 at error handling path and
      then cause kernel panic.
      
      This failure can be reproduced by mounting a overlayfs with
      upperdir and workdir in different mounts.
      
      And also, If the memory allocation of *lower_mnt* fail, this
      function may return an zero either.
      
      This patch fix this problem by setting *err* to proper error
      number before jumping to error handling path.
      Signed-off-by: default avatarhujianyang <hujianyang@huawei.com>
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      2f83fd8c
  3. 12 Dec, 2014 17 commits
  4. 07 Dec, 2014 2 commits
  5. 06 Dec, 2014 2 commits
  6. 05 Dec, 2014 7 commits
  7. 04 Dec, 2014 5 commits
  8. 03 Dec, 2014 2 commits