[systemd-devel] mount with MS_REMOUNT and MS_REC
Keith Rarick
kr at xph.us
Sat Jul 17 13:08:23 PDT 2010
I'm a little confused by line 163 of src/namespace.c in commit 73608e:
r = mount(NULL, where, NULL, MS_REMOUNT|MS_BIND|MS_REC|flags, NULL);
I would expect this to remount, recursively, all of the bindings that
were just created a few lines earlier, applying flags to each.
This doesn't seem to be true, though. After looking through
http://repo.or.cz/w/linux-2.6.git/blob/HEAD:/fs/namespace.c and doing
some tests, it looks like MS_REMOUNT never operates recursively, and
the MS_REC flag is ignored here.
Am I just missing something?
kr
More information about the systemd-devel
mailing list