3

AFAIK with aufs when a file is touched (ie. only it's metadata changed, not it's contents), then the copy-on-write mechanism of the file system will copy the whole file into the r/w layer, essentially duplicating the file.

Say, I only want to change the metadata (modification time, permissions, owner, etc.) of a lot of files, is there some union-type file system (OverlayFS perhaps?) that only keeps track of the metadata changes, unless the file content is altered - resulting in much less duplication?

Or maybe some other trick can lead to the desired result?

Udo G
  • 1,123
  • 3
  • 12
  • 27

1 Answers1

1

Yes, OverlayFS will do this when the "metadata only copy up" feature is enabled. This can be done when mounting by passing the metacopy=on mount option.

More details can be found in the documentation.

AdminBee
  • 21,637
  • 21
  • 47
  • 71
user492669
  • 11
  • 1