<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Transitional//EN">
<HTML>
<HEAD>
  <!--
    *************************************************************************************
    * Copyright (c) 2005 VERITAS Software Corporation. All rights reserved. *

      For third-party license citations, please see the bottom of this file.
    *************************************************************************************
  -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="TEMPLATEBASE" content="DocCD Manual Pages 1.4">
<meta name="LASTUPDATED" content="06/13/05 11:55:09">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="vxfs_fcl_sync.fm">
     
<title>vxfs_fcl_sync</title>

</HEAD>

<BODY bgcolor="#FFFFFF" link="#000066" vlink="#0000ff" marginheight="0" topmargin="0">
<basefont=1>

<a name="427385"></a>

<div align="left">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
 <tr>
   <td height="2" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#000000">
   </td>
 </tr>
 <tr>
   <td height="15" width="50%" border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc">
    <img src="images/vxsymbol.gif" height="20" width="31" border="0" cellspacing="0" cellpadding="0" align="left">
     
     
   </td>
   <td align="right" width="50%" bgcolor="#cccccc">

<!-- Header Breadcrumbs -->
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="vxfs_ap_remove_vxfs_manpages76_426835.html" title="Previous - vxfs_ap_remove">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="vxfs_get_ioffsets_vxfs_manpages78_426579.html" title="Next - vxfs_get_ioffsets">Next</a>
&nbsp;&gt;&nbsp;&nbsp;</font>
   </td>
 </tr>

 <tr>
  <td bgcolor="#CCCCCC" colspan="2" height="15" align="right">
  <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Product:  
<a href="vxfs_manpages_splashpage_docCD_vxfs_manpages1_103036.vxhd" title="File System Manual Pages for Storage Foundation title page ">File System Manual Pages for Storage Foundation</a>
  &nbsp;&nbsp;
  </font>
  </td>
 </tr>
 <tr>
  <td bgcolor="#CCCCCC" colspan="2" height="15" align="right">
  <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Manual:  
<a href="man3_titlepage_docCD_vxfs_manpages40_73700.vxhd" title="Library Functions (3) title page ">Library Functions (3)</a>
  &nbsp;&nbsp;
  </font>
  </td>
 </tr>


</table>
</div>

<div align="left">
 <table border="0" width="100%" bgcolor="#FFFFFF">
  <tr>
   <td width="100%" valign="top" bgcolor="#FFFFFF">

<!-- Start Main Topic Content -->
        <a name="startcontent"></a>
	
<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="426729"></a>vxfs_fcl_sync</font>
</h2>

        

<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426759"></a> NAME</font>
</h3>
<p>
<a name="426764"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2">vxfs_fcl_sync - set a synchronization point in the VxFS file change log </font>
</p>

<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426767"></a> SYNOPSIS</font>
</h3>
<br>
<font face="Courier, Courier New, sansserif, sans serif" size="2"><a name="426772"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>cc -I /opt/VRTS/include -L /opt/VRTS/lib <br>-l vxfsutil -ldld </b></font>
</font>
<br>
<font face="Courier, Courier New, sansserif, sans serif" size="2"><a name="426778"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>#include &lt;sys/types.h&gt;</b></font>  
</font>
<br>
<font face="Courier, Courier New, sansserif, sans serif" size="2"><a name="426781"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>#include &lt;vxfsutil.h&gt; </b></font>
</font>
<br>
<font face="Courier, Courier New, sansserif, sans serif" size="2"><a name="426784"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>int vxfs_fcl_sync(char *</b></font><em>fname</em><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>, uint64_t *</b></font><em>offp</em><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>); </b></font>
</font>

<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426787"></a> AVAILABILITY</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426792"></a>VRTSvxfs  </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426795"></a> DESCRIPTION</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426800"></a>The <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_fcl_sync() </b></font>function sets a synchronization point within the VxFS file change log (FCL). This synchronization point defines a clear offset into the FCL file that applications can use as a stopping point when reading the FCL. The application saves this offset to use it as a starting point the next time the application reads more of the FCL file. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426875"></a>Setting a synchronization point in the FCL also resets the FCL data write interval for all of the files in the file system. The FCL data write interval is a VxFS tunable used to limit the number of FCL records for file data changes during a specified time interval. This limitation applies to all files in all read-write mounted filesets for a given file system volume or device (see the <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxtunefs</b></font>(1M) manual page). </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426932"></a>By resetting the FCL data write interval, an application is certain to find at least one FCL data change record for each file in the file system that is being overwritten, extended, or truncated the next time that the application reads the FCL file from <em>offp</em>. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426998"></a>Multiple applications can use the <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_fcl_sync() </b></font>function. The synchronization point that is set does not affect the operation of other applications using the FCL, and multiple applications issuing a call to <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_fcl_sync() </b></font>obtain different offsets to use as their own synchronization points. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="427064"></a>To use this function, specify <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>-l vxfsutil </b></font>while linking. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="427094"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_fcl_sync() </b></font>has two parameters, a pointer to the FCL file name, and the address of a 64-bit offset. </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="427124"></a> NOTES</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="427129"></a>This function is supported only on Version 6 and later disk layouts. </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="427132"></a> RETURN VALUES</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="427137"></a>Upon successful completion, <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_fcl_sync() </b></font>stores the offset into the FCL file corresponding to the exact time that the synchronization point was made in <em>offp</em>. This offset also corresponds to the exact time that the FCL data write interval was reset for all files in the file system. The value returned upon successful completion is zero. Otherwise, <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_fcl_sync() </b></font>returns a negative number and *<em>offp </em>is set to (<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>uint64_t\|</b></font>)0. </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="427267"></a> EXAMPLES</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="427272"></a>The following sample code fragment opens the FCL file defined in <em>FCLFILE</em>, issues an FCL synchronization point, saves the offset returned in <em>save_off</em>, and closes the FCL file. </font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427335"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">fd&nbsp;=&nbsp;open(FCLFILE,&nbsp;O_RDONLY,&nbsp;444);</font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427340"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">if&nbsp;(fd&nbsp;&lt;&nbsp;0)&nbsp;{</font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427345"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ENOENT;</font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427350"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">}</font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427355"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">ret&nbsp;=&nbsp;vxfs_fcl_sync(FCLFILE,&nbsp;&amp;save_off);</font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427360"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">if&nbsp;(ret&nbsp;&lt;&nbsp;0)&nbsp;{</font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427365"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;EINVAL;</font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427370"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">}</font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="427375"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">(void)close(fd);</font>
</font>

<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="427385"></a> SEE ALSO</font>
</h3>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="427390"></a><a href="fcladm_vxfs_manpages11_431844.html#429158"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>fcladm </b></font></font></a>(1M), <a href="vxtunefs_vxfs_manpages38_435201.html#430432"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxtunefs </b></font></font></a>(1M) </font>
</blockquote>

<!-- End Main Topic Content -->

   </td>
  </tr>
 </table>
</div>

<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
 <tr>
  <td height="18" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#FFFFFF">
  </td>
 </tr>
  <td align="left"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&nbsp;&#94;&nbsp;<a href="vxfs_fcl_sync_vxfs_manpages77_427385.html" title="vxfs_fcl_sync">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="vxfs_ap_remove_vxfs_manpages76_426835.html" title="Previous - vxfs_ap_remove">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="vxfs_get_ioffsets_vxfs_manpages78_426579.html" title="Next - vxfs_get_ioffsets">Next</a>
&nbsp;&gt;&nbsp;&nbsp;</font>
  </td>
 <tr>
   <td height="9" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#FFFFFF">
   </td>
 </tr>

<!-- Footer Breadcrumbs -->
<tr>
<td bgcolor="#FFFFFF" colspan="2" height="15" align="right">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Product:  
<a href="vxfs_manpages_splashpage_docCD_vxfs_manpages1_103036.vxhd" title="File System Manual Pages for Storage Foundation title page ">File System Manual Pages for Storage Foundation</a>&nbsp;&nbsp;</font></td>
</tr>

<tr>
<td bgcolor="#FFFFFF" colspan="2" height="15" align="right">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Manual:  
<a href="man3_titlepage_docCD_vxfs_manpages40_73700.vxhd" title="Library Functions (3) title page ">Library Functions (3)</a>&nbsp;&nbsp;</font></td>
</tr>


 <tr>
  <td colspan="2" align="left"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" color="#000000" align="right" size="-2">
<em>VERITAS Software Corporation
</em></font><br>

<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">www.veritas.com</font><br>
  </td>
 </tr>
</table>
</div>

</BODY>
  <!--
    *************************************************************************************
    * Copyright (c) 2005 VERITAS Software Corporation. All rights reserved. *

    VERITAS, VERITAS SOFTWARE, the VERITAS Logo, and VERITAS Software Documentation 
    are trademarks or registered trademarks of VERITAS Software Corporation 
    or its affiliates in the U.S. and other countries. Other names may be 
    trademarks of their respective owners. 

    Apache Jakarta Lucene:
    Apache Software License
    Version 1.1

    Copyright (c) 2000 The Apache Software Foundation. All rights reserved.

    Redistribution and use in source and binary forms, with or without modification, 
    are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this 
    list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright notice, this 
    list of conditions and the following disclaimer in the documentation and/or other 
    materials provided with the distribution.

    3. The end-user documentation included with the redistribution, if any, must include 
    the following acknowledgment: "This product includes software developed by the Apache 
    Software Foundation (http://www.apache.org/)." Alternately, this acknowledgment may 
    appear in the software itself, if and wherever such third-party acknowledgments 
    normally appear.

    4. The names "Apache" and "Apache Software Foundation" must not be used to endorse or 
    promote products derived from this software without prior written permission. For 
    written permission, please contact apache@apache.org.

    5. Products derived from this software may not be called "Apache", nor may "Apache" 
    appear in their name, without prior written permission of the Apache Software Foundation.

    THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, 
    BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
    PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION 
    OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 
    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    This software consists of voluntary contributions made by many individuals on behalf 
    of the Apache Software Foundation. For more information on the Apache Software Foundation, 
    please see <http://www.apache.org/>. Portions of this software are based upon public domain 
    software originally written at the National Center for Supercomputing Applications, University 
    of Illinois, Urbana-Champaign.
    
    This product includes WebWindow Software developed by Horst Heistermann.
    *************************************************************************************
  -->
</HTML>
