[PATCH] gnumach/device/ds_routines.h (device_pager_setup): add a function prototype

2013-06-28 Thread Marin Ramesa
There is a function declared in dev_pager.c, used in ds_routines.c without a prototype. --- ./gnumach/device/ds_routines.h 2013-06-28 10:10:49.875024397 +0200 +++ ./gnumach1/device/ds_routines.h 2013-06-28 19:39:36.544358212 +0200 @@ -58,4 +58,11 @@ void iowait (io_req_t ior); +kern_return_t

[PATCH 2/4] sutils: fix file_name_lookup_carefully

2013-06-28 Thread Justus Winter
file_name_lookup_carefully is like file_name_lookup but tries hard to avoid starting any passive translators while doing the lookup. The callback contains code to get a new handle to the root if it encounters a translator, but this code was not being executed if the node had no record of an passive

[PATCH 3/4] mount: fix mount -oremount with one parameter

2013-06-28 Thread Justus Winter
This fixes mount -oremount when just given the mountpoint, e. g.: % mount -oremount,ro /tmp * util/mount.c (main): Add a one-argument form for remount. --- utils/mount.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/utils/mount.c b/utils/mo

[PATCH 4/4] mount: add -f and --fake arguments

2013-06-28 Thread Justus Winter
Add -f and --fake arguments. This makes our mount more compatible with Linux mount. * utils/mount.c (argp_opts): Add -f and --fake. (do_mount): Fake the translator startup if --fake is given. --- utils/mount.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-)

patches for our mount utility

2013-06-28 Thread Justus Winter
Hi :) this is a patch series making our mount more compatible with Linux mount. The most interesting one is patch 3, it fixes an issue with file_name_lookup_carefully, but but I'm not sure whether I accidentally broke something. Justus

[PATCH 1/4] mount: add -n and --no-mtab arguments

2013-06-28 Thread Justus Winter
Add -n and --no-mtab arguments. As we do not write an mtab file, this is a trivial patch that just ignores this argument to be more compatible with Linux mount. * utils/mount.c (argp_opts): Add -n and --no-mtab. (parse_opt): Do nothing on 'n'. --- utils/mount.c |5 + 1 file changed, 5 ins

[PATCH 6/6] procfs: provide a more meaningful response to fsys_get_options

2013-06-28 Thread Justus Winter
Implement our own netfs_append_args function that provides the appropriate command line flags if the current values differ from the default values. * procfs/main.c (netfs_append_args): New function. --- procfs/main.c | 42 ++ 1 file changed, 42 insertions

[PATCH 5/6] procfs: define macros for the default argument values

2013-06-28 Thread Justus Winter
Define a macro for the default value of each command line parameter. This allows one to generate a minimal response to fsys_get_options requests. * procfs/main.c: New macro definitions for default values. --- procfs/main.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-)

[PATCH 4/6] procfs: handle the --update parameter

2013-06-28 Thread Justus Winter
Split the argument handling into a common part and one for fsys_update_options. Handle the --update parameter; for procfs this is a no-op. * procfs/main.c (common_options): New variable. (runtime_argp_parser): Handle --update. (startup_argp): New variable. (netfs_runtime_argp_): New variable. ---

[PATCH 2/6] procfs: keep old config values if the parsing fails

2013-06-28 Thread Justus Winter
Previously if strtol failed the previous configuration value would get overwritten. Prevent this by storing the result in a temporary variable and update the configuration if the argument was parsed correctly and passed the sanity checks. * procfs/main.c (argp_parser): Keep old configuration in ca

[PATCH 3/6] procfs: enable fsys_set_options

2013-06-28 Thread Justus Winter
Make procfs translators handle fsys_set_options requests by pointing netfs_runtime_argp to our argp struct. * procfs/main.c (netfs_runtime_argp): New variable. --- procfs/main.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/procfs/main.c b/procfs/main.c index 0892d36..1b19c01 100644 -

[PATCH 1/6] procfs: fix the error handling in argp_parser

2013-06-28 Thread Justus Winter
Do not exit using error (1, ..) but gracefully handle the error using argp_error. Also fix a typo ("the a user") while touching these lines. * procfs/main.c (argp_parser): Proper error handling. (argp_parser): Fix typo. --- procfs/main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 del

[PATCH] gnumach/kern/slab.c (slab_info): fix format warnings

2013-06-28 Thread Marin Ramesa
A simple fix of printf format; vm_size_t is type defined as an unsigned int. --- ./gnumach/kern/slab.c 2013-06-28 10:10:49.951023129 +0200 +++ ./gnumach1/kern/slab.c 2013-06-28 10:44:03.020995010 +0200 @@ -1450,7 +1450,7 @@ mem_usage = (cache->nr_slabs * cache->slab_size) >> 1