1 .\" Copyright (c) 2001 Networks Associates Technology, Inc.
2 .\" All rights reserved.
4 .\" This software was developed for the FreeBSD Project by Chris
5 .\" Costello at Safeport Network Services and NAI Labs, the Security
6 .\" Research Division of Network Associates, Inc. under DARPA/SPAWAR
7 .\" contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS
10 .\" Redistribution and use in source and binary forms, with or without
11 .\" modification, are permitted provided that the following conditions
13 .\" 1. Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
15 .\" 2. Redistributions in binary form must reproduce the above copyright
16 .\" notice, this list of conditions and the following disclaimer in the
17 .\" documentation and/or other materials provided with the distribution.
19 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .\" $FreeBSD: src/share/man/man7/ffs.7,v 1.13 2005/07/23 15:09:27 markus Exp $
32 .\" $DragonFly: src/share/man/man5/ffs.5,v 1.1 2008/05/11 06:46:20 swildner Exp $
39 .Nd Berkeley fast file system
41 In the kernel configuration file:
44 .Cd "options SOFTUPDATES"
46 .Cd "options UFS_DIRHASH"
51 /dev/disk0a /mnt ufs rw 1 1
54 The Berkeley fast file system
55 provides facilities to store file system data onto a disk device.
57 has been optimized over the years
58 for speed and reliability
65 MIBs are defined for use with
67 .Bl -hang -width ".Va vfs.ffs.doreallocblk"
68 .It Va vfs.ffs.doasyncfree
69 Asynchronously write out modified i-node and indirect blocks
70 upon reallocating file system blocks to be contiguous.
72 .It Va vfs.ffs.doreallocblks
73 Enable support for the rearrangement of blocks
79 .It Cd "options QUOTA"
80 This option allows system administrators
81 to set limits on disk usage
83 Quotas can be used only on file systems
94 .It Cd "options SOFTUPDATES"
95 The soft updates feature tracks writes to the disk
96 and enforces metadata update dependencies
97 (e.g., updating free block maps)
98 to ensure that the file system remains consistent.
100 To enable soft updates on an
102 file system, use the following command:
104 .D1 Nm tunefs Fl n Cm enable Ar fs
107 can be either a mount point listed in
115 .Ss File Ownership Inheritance
117 .It Cd "options SUIDDIR"
118 For use in file sharing environments
119 on networks including
120 .Tn "Microsoft Windows"
122 .Tn "Apple Macintosh"
124 this option allows files on file systems
128 to inherit the ownership of its directory,
130 .Dq "if it's my directory, it must be my file."
132 .Ss Directory Hashing
134 .It Cd "options UFS_DIRHASH"
135 Implements a hash-based lookup scheme for directories
136 in order to speed up accesses to very large directories.
148 .%T "A Fast File System for UNIX"
149 .%J "ACM Transactions on Computer Systems"
157 .%T "Soft Updates: A Technique for Eliminating Most Synchronous Writes in the Fast Filesystem"
158 .%J "Proceedings of the Freenix Track at the 1999 Usenix Annual Technical Conference"