Skip to content

Commit

Permalink
uml: Simplify tempdir logic.
Browse files Browse the repository at this point in the history
Inferring the mount hierarchy correctly from /proc/mounts is hard when MS_MOVE
may have been used, and the previous code did it wrongly. This change simplifies
the logic to only require that /dev/shm be _on_ tmpfs (which can be checked
trivially with statfs) rather than that it be a _mountpoint_ of tmpfs, since
there isn't a compelling reason to be that strict. We also now check for tmpfs
on whatever directory we ultimately use so that the user is better informed.

This change also moves the more standard TMPDIR environment variable check ahead
of the others.

Applies to 3.12.

Signed-off-by: Tristan Schmelcher <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
  • Loading branch information
Tristan Schmelcher authored and richardweinberger committed Apr 20, 2014
1 parent a798c10 commit 0d71832
Showing 1 changed file with 75 additions and 297 deletions.
Loading

0 comments on commit 0d71832

Please sign in to comment.