zfs_log.c revision fa9e4066f08beec538e775443c5be79dd423fcab
/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
#include <sys/zfs_znode.h>
#include <sys/byteorder.h>
/*
* All the functions in this file are used to construct the log entries
* to record transactions. They allocate * a intent log transaction
* structure (itx_t) and save within it all the information necessary to
* possibly replay the transaction. The itx is then assigned a sequence
* number and inserted in the in-memory list anchored in the zilog.
*/
/*
* zfs_log_create() is used to handle TX_CREATE, TX_MKDIR and TX_MKXATTR
* transactions.
*/
{
return (0);
return (seq);
}
/*
* zfs_log_remove() handles both TX_REMOVE and TX_RMDIR transactions.
*/
{
return (0);
return (seq);
}
/*
* zfs_log_link() handles TX_LINK transactions.
*/
{
return (0);
return (seq);
}
/*
* zfs_log_symlink() handles TX_SYMLINK transactions.
*/
{
return (0);
return (seq);
}
/*
* zfs_log_rename() handles TX_RENAME transactions.
*/
{
return (0);
return (seq);
}
/*
* zfs_log_write() handles TX_WRITE transactions.
*
* We store data in the log buffers if it small enough.
* Otherwise we flush the data out via dmu_sync().
*/
{
lr_write_t *lr;
return (0);
itx->itx_data_copied = 0;
len);
/*
* copyin shouldn't fault as we've already successfully
* copied it to a dmu buffer. However if it does we'll get
* the data from the dmu later.
*/
if (!err)
}
return (seq);
}
/*
* zfs_log_truncate() handles TX_TRUNCATE transactions.
*/
{
return (0);
return (seq);
}
/*
* zfs_log_setattr() handles TX_SETATTR transactions.
*/
{
return (0);
return (seq);
}
/*
* zfs_log_acl() handles TX_ACL transactions.
*/
{
return (0);
return (seq);
}