1. 05 7月, 2017 25 次提交
  2. 28 6月, 2017 2 次提交
  3. 05 6月, 2017 2 次提交
  4. 29 5月, 2017 2 次提交
    • M
      ovl: filter trusted xattr for non-admin · a082c6f6
      Miklos Szeredi 提交于
      Filesystems filter out extended attributes in the "trusted." domain for
      unprivlieged callers.
      
      Overlay calls underlying filesystem's method with elevated privs, so need
      to do the filtering in overlayfs too.
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      a082c6f6
    • A
      ovl: mark upper merge dir with type origin entries "impure" · f3a15685
      Amir Goldstein 提交于
      An upper dir is marked "impure" to let ovl_iterate() know that this
      directory may contain non pure upper entries whose d_ino may need to be
      read from the origin inode.
      
      We already mark a non-merge dir "impure" when moving a non-pure child
      entry inside it, to let ovl_iterate() know not to iterate the non-merge
      dir directly.
      
      Mark also a merge dir "impure" when moving a non-pure child entry inside
      it and when copying up a child entry inside it.
      
      This can be used to optimize ovl_iterate() to perform a "pure merge" of
      upper and lower directories, merging the content of the directories,
      without having to read d_ino from origin inodes.
      Signed-off-by: NAmir Goldstein <amir73il@gmail.com>
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      f3a15685
  5. 19 5月, 2017 3 次提交
  6. 18 5月, 2017 3 次提交
  7. 15 5月, 2017 1 次提交
    • A
      ovl: select EXPORTFS · 72d42504
      Arnd Bergmann 提交于
      We get a link error when EXPORTFS is not enabled:
      
      ERROR: "exportfs_encode_fh" [fs/overlayfs/overlay.ko] undefined!
      ERROR: "exportfs_decode_fh" [fs/overlayfs/overlay.ko] undefined!
      
      This adds a Kconfig 'select' statement for overlayfs, the same way that
      it is done for the other users of exportfs.
      
      Fixes: 3a1e819b ("ovl: store file handle of lower inode on copy up")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      72d42504
  8. 05 5月, 2017 2 次提交
    • A
      ovl: persistent inode numbers for upper hardlinks · 5b6c9053
      Amir Goldstein 提交于
      An upper type non directory dentry that is a copy up target
      should have a reference to its lower copy up origin.
      
      There are three ways for an upper type dentry to be instantiated:
      1. A lower type dentry that is being copied up
      2. An entry that is found in upper dir by ovl_lookup()
      3. A negative dentry is hardlinked to an upper type dentry
      
      In the first case, the lower reference is set before copy up.
      In the second case, the lower reference is found by ovl_lookup().
      In the last case of hardlinked upper dentry, it is not easy to
      update the lower reference of the negative dentry.  Instead,
      drop the newly hardlinked negative dentry from dcache and let
      the next access call ovl_lookup() to find its lower reference.
      
      This makes sure that the inode number reported by stat(2) after
      the hardlink is created is the same inode number that will be
      reported by stat(2) after mount cycle, which is the inode number
      of the lower copy up origin of the hardlink source.
      
      NOTE that this does not fix breaking of lower hardlinks on copy
      up, but only fixes the case of lower nlink == 1, whose upper copy
      up inode is hardlinked in upper dir.
      Signed-off-by: NAmir Goldstein <amir73il@gmail.com>
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      5b6c9053
    • M
      ovl: merge getattr for dir and nondir · 5b712091
      Miklos Szeredi 提交于
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      5b712091