/*
* 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.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This file contains interface definitions and wrappers for file
* system snapshot support. File systems may depend on this module
* for symbol resolution while the implementation may remain unloaded
* until needed.
*/
#include <sys/fssnap_if.h>
NULL, /* fssnap_create */
NULL, /* fssnap_set_candidate */
NULL, /* fssnap_is_candidate */
NULL, /* fssnap_create_done */
NULL, /* fssnap_delete */
NULL /* fssnap_strategy */
};
void *
{
if (snapops.fssnap_create)
return (snapid);
}
void
{
}
int
{
int rc = 0;
return (rc);
}
int
{
return (snapslot);
}
int
{
if (snapops.fssnap_delete)
return (snapslot);
}
void
{
if (snapops.fssnap_strategy)
}
extern struct mod_ops mod_miscops;
&mod_miscops, "File System Snapshot Interface",
};
};
int
_init(void)
{
return (mod_install(&modlinkage));
}
/*
* Unloading is MT-safe because our client drivers use
* the _depends_on[] mechanism - we won't go while they're
* still around.
*/
int
_fini(void)
{
return (mod_remove(&modlinkage));
}
int
{
}