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

*** 17,27 **** * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* ! * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * lofiadm - administer lofi(7d). Very simple, add and remove file<->device --- 17,27 ---- * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* ! * 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,38 **** * 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" #include <sys/types.h> #include <sys/param.h> #include <sys/lofi.h> #include <sys/stat.h> --- 28,38 ---- * 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.9 08/05/07 SMI" #include <sys/types.h> #include <sys/param.h> #include <sys/lofi.h> #include <sys/stat.h>
*** 302,311 **** --- 302,313 ---- 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;