Print this page
PSARC 2008/290 lofi mount
6384817 Need persistent lofi based mounts and direct mount(1m) support for lofi

@@ -1,12 +1,11 @@
 /*
  * CDDL HEADER START
  *
  * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
  *
  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  * or http://www.opensolaris.org/os/licensing.
  * See the License for the specific language governing permissions
  * and limitations under the License.

@@ -18,15 +17,15 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
- * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "@(#)fslib.c    1.25    05/06/08 SMI"
+#pragma ident   "@(#)fslib.c    1.26    08/05/07 SMI"
 
 #include        <stdio.h>
 #include        <stdarg.h>
 #include        <stdlib.h>
 #include        <unistd.h>

@@ -319,10 +318,18 @@
                         *equalptr = '\0';
 
                 if (*option_ptr == '\0')
                         continue;
 
+                /*
+                 * Whilst we don't need this option to perform a lofi
+                 * mount, let's not be mendacious enough to complain
+                 * about it.
+                 */
+                if (strcmp(option_ptr, "loop") == 0)
+                        continue;
+
                 /*
                  * Search for the requested option in the list of options
                  * actually supported.
                  */
                 found = 0;