|
|
Log in / Subscribe / Register

Introducing /run

Introducing /run

Posted Jan 20, 2012 20:15 UTC (Fri) by smurf (subscriber, #17840)
In reply to: Introducing /run by nix
Parent article: Introducing /run

Just for the record:

Notice the MS_MOVE up there? This means that the source directory is moved there, thus the old root is (lazily) unmounted.
Unmounting a tempfs causes the files to get freed.
So in fact there is no problem.


to post comments

Introducing /run

Posted Jan 26, 2012 18:19 UTC (Thu) by nix (subscriber, #2304) [Link]

This is not the case. mount("a","b"), no matter the flags, will never unmount "b". It just mounts "a" over the top of it: unmounting "a" will show you "b" still sitting there.

Inspecting /proc/self/mounts should show you this as well: both mounts are still shown, mounted in the same place.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds