Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The manual for aufs makes several references to something called a "whiteout", but it's not clear to me what this is.

What is a whiteout and why would one exist?

share|improve this question
up vote 10 down vote accepted

It is how the union file system supports deleting from a union where the underlying file to be deleted resides on a read-only file system.

Say you have

  • /bin (read-only)
  • /usr/bin (read-only)
  • /home/USERNAME/bin (read-write)

all union mounted together in /bin (read-write).

And you do rm /bin/ls.

It would place a whiteout for ls in /home/USERNAME/bin, which makes it look like /bin/ls has been deleted.

See State of the unionfs for a good read and a full explanation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.