2 .\" Copyright (c) 2015 The DragonFly Project. All rights reserved.
4 .\" This code is derived from software contributed to The DragonFly Project
5 .\" by Antonio Huete Jimenez <tuxillo@quantumachine.net>
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in
15 .\" the documentation and/or other materials provided with the
17 .\" 3. Neither the name of The DragonFly Project nor the names of its
18 .\" contributors may be used to endorse or promote products derived
19 .\" from this software without specific, prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 .\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 .\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 .\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 .Nd HAMMER file system interface
47 library provides a set of functions which serve as an interface to applications
48 that need to obtain information or perform maintenance operations in
52 This library is an attempt to factor out most of the code in the initial
54 program greatly reducing its complexity and taking advantage of all the
55 functionality it contained helping other programs to reuse it.
57 There are several parts of the
59 file system for which this library provides an API:
62 .Em Information facilities:
63 The following information is gathered and exposed by this library:
64 .Bl -dash -offset indent
66 File system specific information such as size, big block details, version,
67 PFSes, snapshots, mount points.
69 Statistical data like number of B-Tree operations, number of device operations,
70 number of undo operations.
73 .Em Pseudo-file systems:
74 These are independent sub file systems within a HAMMER file system.
77 library initialisation the list of pseudo-file systems will be available in the
82 Creating and deleting pseudo-file systems is not yet supported by this library.
85 Per PFS point in time snapshots are kept in the file system meta-data since
87 A list of snapshots is collected and placed within a
91 Creating and deleting snapshots is not yet supported by this library.
94 Before any API call the library must be initalised with the
95 .Fn libhammer_get_fsinfo
97 This will perform all the operations needed to initialise the data structures in
98 which the API function rely for the specified HAMMER file system.
100 Once you are done, the special function
101 .Fn libhammer_free_fsinfo
102 will release all the resources used by the library during its initialisation and
105 .Xr libhammer_fsinfo 3 ,
106 .Xr libhammer_snapshot 3 ,
107 .Xr libhammer_stats 3 ,
111 This man page was written by
112 .An Antonio Huete Jimenez Aq Mt tuxillo@quantumachine.net .
114 Please note that, at the moment of writing this man page, the
116 library is incomplete.