summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/softdep.h
Commit message (Collapse)AuthorAgeFilesLines
* When running with soft updates, track the number of blocks and filesmckusick2001-05-081-2/+5
| | | | | | | | | | | | | that are committed to being freed and reflect these blocks in the counts returned by statfs (and thus also by the `df' command). This change allows programs such as those that do news expiration to know when to stop if they are trying to create a certain percentage of free space. Note that this change does not solve the much harder problem of making this to-be-freed space available to applications that want it (thus on a nearly full filesystem, you may still encounter out-of-space conditions even though the free space will show up eventually). Hopefully this harder problem will be the subject of a future enhancement.
* Add snapshots to the fast filesystem. Most of the changes supportmckusick2000-07-111-3/+3
| | | | | | | | | | | | | | | | | | | | the gating of system calls that cause modifications to the underlying filesystem. The gating can be enabled by any filesystem that needs to consistently suspend operations by adding the vop_stdgetwritemount to their set of vnops. Once gating is enabled, the function vfs_write_suspend stops all new write operations to a filesystem, allows any filesystem modifying system calls already in progress to complete, then sync's the filesystem to disk and returns. The function vfs_write_resume allows the suspended write operations to begin again. Gating is not added by default for all filesystems as for SMP systems it adds two extra locks to such critical kernel paths as the write system call. Thus, gating should only be added as needed. Details on the use and current status of snapshots in FFS can be found in /sys/ufs/ffs/README.snapshot so for brevity and timelyness is not included here. Unless and until you create a snapshot file, these changes should have no effect on your system (famous last words).
* Update to new copyright.mckusick2000-06-221-23/+6
|
* Back out the previous change to the queue(3) interface.jake2000-05-261-22/+22
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-22/+22
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Whitespace cleanup.mckusick1999-05-071-2/+2
|
* Ensure that softdep_sync_metadata can handle bmsafemap and mkdir entriesmckusick1999-03-021-2/+3
| | | | | if they ever arise (which should not happen as softdep_sync_metadata is currently used).
* Bring up-to-date with Whistle's current versionjulian1998-05-191-1/+2
| | | | Includes some debugging code.
* Merge in Kirk's changes to stop softupdates from hogging all of memory.julian1998-05-191-17/+32
|
* First published FreeBSD version of soft updates Feb 5.julian1998-05-191-1/+0
|
* Import the next version received from kirk after somejulian1998-05-191-10/+22
| | | | FreeBSD feedback.
* Import the earliest version of the soft update code that I have.julian1998-05-191-0/+520
OpenPOWER on IntegriCloud