Skip to content

fs: Support compiling out the pivot_root syscall

[email protected] linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fs: Makes functions used by pivot_root accessiblefs/mount.h fs/namespace.c+30 -210 replies
2/3fs: Extracts pivot_root so it can be made optionalfs/Makefile fs/namespace.c fs/pivot_root.c+130 -1246 replies
3/3fs: Allows for the pivot_root syscall to be omittedfs/Makefile init/Kconfig kernel/sys_ni.c+14 -10 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNicolas Pitre
SeriesA-b
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] fs: Support compiling out the pivot_root syscall

From: Brian Ashworth <[email protected]>

This patch series will allow for the pivot_root syscall to be made optional. The first patch refactors the functions that are required by pivot_root so they can be accessed outside of fs/namespace.c. The second patch moves the pivot_root syscall to its own file. The third adds a Kconfig option and conditional compilation to the Makefile.

The pivot_root syscall is not needed on systems that do not use any intermediate filesystem. Allowing for pivot_root to be ommitted from the kernel will aid in the tinification efforts.

Brian Ashworth (3):
Makes functions used by pivot_root accessible
Extracts pivot_root so it can be made optional
Allows for the pivot_root syscall to be omitted

 fs/Makefile     |   2 +
 fs/mount.h      |  24 +++++++++
 fs/namespace.c  | 150 +++-----------------------------------------------------
 fs/pivot_root.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++
 init/Kconfig    |  10 ++++
 kernel/sys_ni.c |   1 +
 6 files changed, 172 insertions(+), 144 deletions(-)
 create mode 100644 fs/pivot_root.c
Signature · 1 line
2.11.1