From 5abe4685b6aad913535116dd256a9e3f465ae0f1 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 17 Apr 2013 13:26:47 -0700 Subject: [PATCH] add linux/fs.h The ipnetns nees MS_SLAVE, MS_SHARED etc definitions which are in include/linux/fs.h. --- include/linux/fs.h | 205 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 205 insertions(+) create mode 100644 include/linux/fs.h diff --git a/include/linux/fs.h b/include/linux/fs.h new file mode 100644 index 000000000..c7fc1e651 --- /dev/null +++ b/include/linux/fs.h @@ -0,0 +1,205 @@ +#ifndef _UAPI_LINUX_FS_H +#define _UAPI_LINUX_FS_H + +/* + * This file has definitions for some important file table + * structures etc. + */ + +#include +#include +#include + +/* + * It's silly to have NR_OPEN bigger than NR_FILE, but you can change + * the file limit at runtime and only root can increase the per-process + * nr_file rlimit, so it's safe to set up a ridiculously high absolute + * upper limit on files-per-process. + * + * Some programs (notably those using select()) may have to be + * recompiled to take full advantage of the new limits.. + */ + +/* Fixed constants first: */ +#undef NR_OPEN +#define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */ +#define INR_OPEN_MAX 4096 /* Hard limit for nfile rlimits */ + +#define BLOCK_SIZE_BITS 10 +#define BLOCK_SIZE (1<