Re: [PATCH] overlay: stress test changes to top and bottom layers simultaneously

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



"Theodore Ts'o":
> Since the use of unionfs is deprecated, I didn't bother to test it,
> although I could if someone was really curious whether it would BUG or
> not.  (Given that both wrapfs and sdcardfs did BUG, I'm pretty that
> unionfs, as a wrapfs derivitive, also would go down in flames.  It
> might also be fun, since there are some Ubuntu Docker users using
> AUFS, to see if AUFS --- as another wrapfs derivitive --- might also
> be succeptible.)

If you mean that aufs is based upon wrapfs or unionfs, then it is not
true. aufs1 was based upon unionfs acutally, but aufs2 and later are
totally re-written and added many new approaches and ideas.

Some of those new approaches are opposite of overlayfs' ones.
For example,
- overlayfs added d_real_inode(), lock_inode() and others into VFS. They
  aim to get the layers' inode via overlayfs' dentry. Honestly speaking
  I am afraid they confuse people who were calling d_inode().
- aufs aims to be an ordinary filesystem against VFS, and VFS uses its
  dentry as usual. Acessing the layers' inode is totally hidden within
  aufs and VFS doesn't care about it.
  One exception aufs modifies VFS (actually MM module) is vma_struct
  which contains a file pointer to point the file mmapped. Aufs adds
  another file pointer to show the path under procfs.

Also aufs allows users to modify the files on the layers direcly,
ie. bypassing aufs. Next time when user accesses those files, aufs
re-validates it and detect the changes. Additioanlly aufs has
another option to discard the caches when the files on the layers
changed directly.


J. R. Okajima
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux