summaryrefslogtreecommitdiffstats
path: root/sys/ufs/lfs/lfs.h
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1994-11-17 01:30:53 +0000
committergibbs <gibbs@FreeBSD.org>1994-11-17 01:30:53 +0000
commit02b39f95c4927ea494cd1146c3e4bbda7435ee77 (patch)
treec5bfd9e88f2f40c61118ea5d75550f34eaa93249 /sys/ufs/lfs/lfs.h
parent8119b5015f901ca196c21cf712d8513ee0d4275b (diff)
downloadFreeBSD-src-02b39f95c4927ea494cd1146c3e4bbda7435ee77.zip
FreeBSD-src-02b39f95c4927ea494cd1146c3e4bbda7435ee77.tar.gz
John Dyson's patches (and a few from me too) to LFS to use a different
buffering scheme and make it more in tune with FreeBSD's vfs_bio implementation. The filesystem seems fairly stable, but I wouldn't recommend it to anyone not willing to experience problems. This is very green code and has the limitation that YOU CAN ONLY HAVE ONE LFS PARTITION MOUNTED AT A TIME. What LFS is good for: Non fsynced writes FASTER THAN FFS Large deletions Increadibly fast Reads are a little bit slower than FFS right now, but that is a factor of how under optimized this code is. LFS should in theory perform at least as well as FFS under fsync (iozone) type loads, and this is what I'm currently working on. Reviewed by: Justin Gibbs Submitted by: John Dyson Obtained from:
Diffstat (limited to 'sys/ufs/lfs/lfs.h')
-rw-r--r--sys/ufs/lfs/lfs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/ufs/lfs/lfs.h b/sys/ufs/lfs/lfs.h
index 9003ece..3a072a8 100644
--- a/sys/ufs/lfs/lfs.h
+++ b/sys/ufs/lfs/lfs.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)lfs.h 8.3 (Berkeley) 9/23/93
- * $Id: lfs.h,v 1.3 1994/08/21 07:16:08 paul Exp $
+ * $Id: lfs.h,v 1.4 1994/10/10 01:04:47 phk Exp $
*/
#ifndef _UFS_LFS_LFS_H_
@@ -110,6 +110,7 @@ struct lfs {
daddr_t lfs_offset; /* offset in curseg for next partial */
daddr_t lfs_lastpseg; /* address of last partial written */
u_long lfs_tstamp; /* time stamp */
+ long lfs_maxsymlinklen; /* max length of an internal symlink */
/* These are configuration parameters. */
u_long lfs_minfree; /* minimum percentage of free blocks */
@@ -157,6 +158,7 @@ struct lfs {
u_char lfs_flags; /* currently unused flag */
u_char lfs_fsmnt[MNAMELEN]; /* name mounted on */
u_char pad[3]; /* long-align */
+ u_char pad2[156]; /* Block align */
/* Checksum; valid on disk. */
u_long lfs_cksum; /* checksum for superblock checking */
OpenPOWER on IntegriCloud