Displaying 2 results from an estimated 2 matches for "do_cmdline_mount".
Did you mean:
do_cmdline_mounts
2012 Mar 08
3
[PATCH 0/3] kinit: Allow mount options
This patch series allows user-specified mount commands to be
sent in via kernel command line ("kinit_mount=...") or via
an embedded /etc/fstab file.
The first patch is a cleanup of a patch sent last November
by San Mehat (http://web.archiveorange.com/archive/v/EazJNBMORV2U7E0coh5h);
the next two are small improvements or bug fixes.
2011 Nov 22
0
[PATCH] kinit: Add ability to mount filesystems via /etc/fstab or cmdline
...#include <string.h>
#include <unistd.h>
#include <inttypes.h>
+#include <mntent.h>
#include "do_mounts.h"
#include "kinit.h"
@@ -199,12 +200,97 @@ mount_root(int argc, char *argv[], dev_t root_dev, const char *root_dev_name)
return ret;
}
+int do_cmdline_mounts(int argc, char *argv[])
+{
+ int arg_i;
+
+ for (arg_i = 0; arg_i < argc; arg_i++) {
+ const char *fs_name, *fs_dir, *fs_type;
+ char *fs_opts;
+ unsigned long flags = 0;
+ char new_fs_opts[128] = { 0 };
+ char *saveptr = NULL;
+ char *fs_opts_savedptr = NULL;
+ int opt_first = 1;
+ con...