Displaying 2 results from an estimated 2 matches for "opt_first".
Did you mean:
old_first
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
...+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;
+ const char *opt;
+
+ if (strncmp(argv[arg_i], "kinit_mount=", 12))
+ continue;
+ /*
+ * Format:
+ * <fs_name>;<dir>;<fs_type>;[opt1],[optn...]
+ */
+ fs_name = strtok_r(&argv[arg_i][12], ";", &saveptr);
+ if (!fs_name) {
+ fprint...