Commit Graph

47 Commits

Author SHA1 Message Date
mrg
295af85e9e remove swap configuration. 1997-06-12 17:12:17 +00:00
bouyer
76c414a957 Add support for ext2fs, this needed a few modifications to ufs/ufs/inode.h:
- added an "union inode_ext" to struct inode, for the per-fs extentions.
  For now only ext2fs uses it.
- i_din is now an union:
	union {
		struct  dinode ffs_din; /* 128 bytes of the on-disk dinode. */
		struct ext2fs_dinode e2fs_din; /* 128 bytes of the on-disk dinode. */
	} i_din
  Added a lot of #define i_ffs_* and i_e2fs_* to access the fields.
- Added two macros: FFS_ITIMES and EXT2FS_ITIMES. ITIMES calls the rigth
  macro, depending on the time of the inode. ITIMES is used where necessary,
  FFS_ITIMES and EXT2FS_ITIMES in other places.
1997-06-11 10:09:37 +00:00
mycroft
66c4e32b11 Just increment the generation count. Using the time is bogus and defeats
fsirand(8).
1997-03-10 06:18:28 +00:00
thorpej
727078d31e - Add ffs_mountroot to ffs_vfsops.
- Only attempt to mount a root FFS on a DV_DISK class device.
1997-01-31 03:05:31 +00:00
tls
0024ac02cf Correct old inode flag names in comment, and reformat for 80 character screen 1997-01-27 10:30:14 +00:00
cgd
90688fce27 Change the second and third args to struct vfsops' (*vfs_mount)() to
'const char *', and 'void *', respectively.  The second arg is taken directly
from user arguments, and is const there, so must be const in the prototypes
and functions.  The third arg is also taken directly from user arguments.
It doesn't have to be changed, but since it's cleaner to keep the type
the same as the user arg's type, and I'm already making the 'const char *'
change...
1996-12-22 10:10:12 +00:00
thorpej
34e2fb3bb6 Performance enhancement from Kirk McKusick <mckusick@McKusick.COM>:
When freeing an indirect block, there is no need to write it (synchronously,
no less!) before tossing it.
1996-11-06 03:02:59 +00:00
christos
90c7de0919 revert previous kprintf changes 1996-10-12 21:58:44 +00:00
christos
de1b2b437e printf -> kprintf, sprintf -> ksprintf 1996-10-10 17:16:17 +00:00
christos
9cdf304505 Make this compile cleanly from userland (fsck_ffs). 1996-09-20 22:14:59 +00:00
mycroft
2bc736661a Implement poll(2). 1996-09-07 12:40:22 +00:00
mycroft
c52352c819 Add a set of generic file system operations that most file systems use.
Also, fix some time stamp bogosities.
1996-09-01 23:47:48 +00:00
mycroft
261382c331 Change VOP_UPDATE() semantics:
* Make 2nd and 3rd args timespecs, not timevals.
* Consistently pass a Boolean as the 4th arg (except in LFS).
Also, fix ffs_update() and lfs_update() to actually change the nsec fields.
1996-05-11 18:26:27 +00:00
christos
48fda0b4ca Fix printf format strings 1996-03-17 02:16:18 +00:00
christos
ec3d880232 ffs prototypes 1996-02-09 22:22:18 +00:00
cgd
b567511c78 Fix from Lite-2: when reloading the file system, save fs_maxcluster and
the old summary structure pointers, and recalculate cluster per cyl. grp.
information.
1995-12-19 23:27:53 +00:00
mycroft
7edc899fdd ffs -> ufs 1995-11-11 22:00:15 +00:00
cgd
60db543a18 don't just throw away updates to the cylinder group bitmaps, actually
write them to disk!  From Keith Smith at Harvard, via Kirk McKusick.
fixes the occasional `blkfree: freeing free block' that has been seen
when cluster reallocation code is enabled.
1995-07-19 15:47:36 +00:00
cgd
8f62c773e8 don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN 1995-06-18 14:45:14 +00:00
cgd
94b7cf1b85 compensate for timeval/timespec/stat structure changes. 1995-06-15 23:22:41 +00:00
mycroft
fc46bf42f7 Make use of the `fs_clean' field. If it was set when the file system was
mounted or upgraded to r-w, then clear it and set it again later when the
file system is unmounted or downgraded.
1995-04-12 21:21:00 +00:00
jtc
db0046c14d KERNEL -> _KERNEL 1995-03-28 19:59:56 +00:00
cgd
dd6089fc52 explicitly cast &time to (struct timeval *) when passing it to VOP_UPDATE.
new prototypes and picky compilers make a volatile mess.
1995-03-24 15:33:23 +00:00
mycroft
2f805fa51b copy*str() should use size_t. 1995-03-09 12:05:21 +00:00
cgd
ad86c7f247 size for copyinstr should be u_long 1995-03-08 01:51:49 +00:00
mycroft
41f181e0d8 Clean up the code to frob mnt_stat a bit. 1995-01-18 09:44:34 +00:00
mycroft
9843f45605 Turn mountlist into a CIRCLEQ, and handle setting and checking of MNT_ROOTFS
differently.
1995-01-18 06:19:49 +00:00
mycroft
6a5daf3070 Ignore rotational optimization if nrpos == 1, as suggested by Stefan Esser. 1994-12-16 05:55:15 +00:00
mycroft
b4aa6d3a28 Call foo_statfs() from a common place when mounting. 1994-12-15 19:46:08 +00:00
mycroft
a63cb01c7d Sync with CSRG. 1994-12-14 13:03:35 +00:00
mycroft
527b796ff5 Turn lease_check() into a vnode op, per CSRG. 1994-12-13 20:14:30 +00:00
mycroft
5857125e47 Sync with CSRG. 1994-12-13 19:10:43 +00:00
mycroft
4c7eedf0b8 This is not my day. 1994-10-28 20:20:18 +00:00
mycroft
c0fd0f67f1 Fix typo. 1994-10-28 20:16:10 +00:00
mycroft
0badb64371 For now, limit the maxfilesize to 2^31*bsize-1 in core. This is temporary. 1994-10-28 20:15:09 +00:00
mycroft
f62b376067 Fix a couple of types in the compatibility code. 1994-10-28 19:59:21 +00:00
mycroft
f5720d1edd Don't allow truncating past maxfilesize. 1994-10-28 19:31:07 +00:00
cgd
f0c1138373 update for new syscall args description mechanism, and deal safely
with wider types.
1994-10-20 04:20:55 +00:00
mycroft
b303126d1e Do the doasyncfree conditionalization better. 1994-07-04 21:06:07 +00:00
cgd
fccfa11af5 New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD' 1994-06-29 06:39:25 +00:00
mycroft
d22df96ea2 Reload mnt_maxsymlinklen, for `fsck -c2'. 1994-06-28 21:50:24 +00:00
mycroft
d46a373019 Deallocate the vnode data using the correct type for MFS nodes. 1994-06-22 05:45:19 +00:00
mycroft
0be7885407 Add a couple of missing casts. 1994-06-22 03:01:40 +00:00
mycroft
914f6b157b Fastlink compat. 1994-06-15 15:35:06 +00:00
mycroft
6d939e6bec Format police. 1994-06-13 20:49:56 +00:00
pk
3eb1a95749 Check requested file size; negative values cause havoc. 1994-06-13 20:38:42 +00:00
mycroft
264b874c14 Update to 4.4-Lite fs code, with local changes. 1994-06-08 11:41:58 +00:00