 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH 1/3] lib/vfscore: Use a scalable bitmap for open file descriptors
 Hello Costin, Please find the comment inline. Thanks & Regards Sharan On 9/2/19 3:22 PM, Costin Lupu wrote: Do we want to define max file descriptor as configuration in Config.uk? 
From a user perspective it might not always be possible to determine 
this value before hand. We might add support for ulimit instead of keep 
is compile time configuration. I would rather we pick a default value 
for now and if a need arise we make it configurable then.diff --git a/lib/vfscore/fd.c b/lib/vfscore/fd.c index 01025a46..e09dd54c 100644 --- a/lib/vfscore/fd.c +++ b/lib/vfscore/fd.c @@ -35,19 +35,19 @@#include <string.h>#include <uk/essentials.h> -#include <uk/bitops.h> +#include <uk/bitmap.h> #include <uk/assert.h> #include <vfscore/file.h> #include <uk/plat/lcpu.h> #include <errno.h> #include <uk/ctors.h>-#define FDTABLE_MAX_FILES (sizeof(uint64_t) * 8)+#define FDTABLE_MAX_FILES 1024 Shouldn't it this be CONFIG_LIBVFSCORE_MAX_FILES? void init_stdio(void); struct fdtable { _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |