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

@@ -17,11 +17,11 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
- * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
  * lofiadm - administer lofi(7d). Very simple, add and remove file<->device

@@ -28,11 +28,11 @@
  * associations, and display status. All the ioctls are private between
  * lofi and lofiadm, and so are very simple - device information is
  * communicated via a minor number.
  */
 
-#pragma ident   "@(#)main.c     1.8     07/12/18 SMI"
+#pragma ident   "@(#)main.c     1.9     08/05/07 SMI"
 
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/lofi.h>
 #include <sys/stat.h>

@@ -302,10 +302,12 @@
     boolean_t force)
 {
         struct lofi_ioctl li;
 
         li.li_force = force;
+        li.li_cleanup = 0;
+
         if (devicename == NULL) {
                 /* delete by filename */
                 (void) strlcpy(li.li_filename, filename,
                     sizeof (li.li_filename));
                 li.li_minor = 0;