CVS commit: src/sys/ufs/lfs

2015-10-15 Thread David A. Holland
Module Name:src Committed By: dholland Date: Thu Oct 15 06:15:48 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h lfs_syscalls.c lfs_vfsops.c ulfsmount.h Log Message: Move stuff from struct ulfsmount to struct lfs. To generate a diff of this commit: cvs rdiff -u -r1.194

CVS commit: src/sys/ufs/lfs

2015-10-15 Thread David A. Holland
Module Name:src Committed By: dholland Date: Thu Oct 15 06:25:34 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_vfsops.c Log Message: Enable mounting lfs64 volumes. To generate a diff of this commit: cvs rdiff -u -r1.347 -r1.348 src/sys/ufs/lfs/lfs_vfsops.c Please note

CVS commit: src/sys/ufs/lfs

2015-10-15 Thread David A. Holland
Module Name:src Committed By: dholland Date: Thu Oct 15 06:24:21 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_accessors.h Log Message: Remove stray #define of lfs_magic (the last of the fake superblock structure field macros) To generate a diff of this commit: cvs

CVS commit: src/sys/ufs/lfs

2015-10-15 Thread David A. Holland
Module Name:src Committed By: dholland Date: Thu Oct 15 06:24:08 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h Log Message: For now bitflip the lfs64 magic number. This will be unflipped when the format is finalized - right now I still have pending changes to the

CVS commit: src/sys/ufs/lfs

2015-10-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sat Oct 10 22:34:34 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_alloc.c lfs_segment.c lfs_syscalls.c Log Message: Fix minor bitrot in #if 0 or otherwise disabled code. To generate a diff of this commit: cvs rdiff -u -r1.130

CVS commit: src/sys/ufs/lfs

2015-10-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sat Oct 10 22:33:57 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_vfsops.c Log Message: Remove no longer needed explicit 32->64 sign extension. This is the last 32-bit-on-disk item among those that were either already tagged

CVS commit: src/sys/ufs/lfs

2015-10-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sat Oct 10 22:33:31 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_balloc.c lfs_segment.c Log Message: Use accessors for some more indirect block manipulations. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88

CVS commit: src/sys/ufs/lfs

2015-10-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sat Oct 10 22:33:44 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_accessors.h Log Message: Add byteswapping to the inode block-pointer accessors. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37

CVS commit: src/sys/ufs/lfs

2015-10-03 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Oct 3 09:31:29 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_bio.c Log Message: Remove dubious vhold()/holdrele() from lfs_reserve(). The vnodes are always referenced on entry. If we changed ulfs_remove() and ulfs_rmdir()

CVS commit: src/sys/ufs/lfs

2015-10-03 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sat Oct 3 08:27:38 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h lfs_accessors.h Log Message: Add an IINFO struct, which is like the FINFO struct but for the inode blocks portion of the segment summary. A segment summary

CVS commit: src/sys/ufs/lfs

2015-10-03 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sat Oct 3 08:27:56 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_rfw.c Log Message: Use the new IINFO in the rfw code, eliminating hardwired 32-bit values. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32

CVS commit: src/sys/ufs/lfs

2015-09-20 Thread David A. Holland
Module Name:src Committed By: dholland Date: Mon Sep 21 01:24:39 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h lfs_accessors.h Log Message: Oops, I forgot to make the atime in the 64-bit IFILE 64 bits. Correct that. Incompatible change, but no LFS64 volumes can have

CVS commit: src/sys/ufs/lfs

2015-09-19 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Sep 20 04:50:58 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_accessors.h Log Message: Fix glaringly stupid overflow/sizing bug in -r1.25. The part I don't get is how it passed testing... To generate a diff of this

CVS commit: src/sys/ufs/lfs

2015-09-15 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 15 15:00:49 UTC 2015 Modified Files: src/sys/ufs/lfs: ulfs_lookup.c Log Message: Tidy up ulfs_direnter: don't malloc a temporary struct lfs_direct and double-copy it. Just write to the destination buffer. To generate

CVS commit: src/sys/ufs/lfs

2015-09-15 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 15 15:00:32 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_rename.c lfs_vnops.c ulfs_extern.h ulfs_lookup.c ulfs_vnops.c Log Message: Kill off ulfs_makedirentry; just pass the data to ulfs_direnter instead.

CVS commit: src/sys/ufs/lfs

2015-09-15 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 15 15:01:03 UTC 2015 Modified Files: src/sys/ufs/lfs: ulfs_extern.h ulfs_vfsops.c Log Message: Kill off the ulfs_direct_cache pool. We no longer allocate temporary struct directs, so we don't need a pool for them. To

CVS commit: src/sys/ufs/lfs

2015-09-15 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 15 15:02:40 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h Log Message: Remove struct lfs_direct (no longer used) and update the big block comment about directories. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/ufs/lfs

2015-09-13 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Sep 13 07:53:37 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_alloc.c Log Message: Fix wrong code in lfs_valloc_fixed(). It was overwriting the inode number it was supposed to be allocating with the head of the inode

CVS commit: src/sys/ufs/lfs

2015-09-01 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 1 06:13:09 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_accessors.h lfs_inode.c Log Message: Fix up indirect block handling in truncate to be 32/64 clean. To generate a diff of this commit: cvs rdiff -u -r1.20

CVS commit: src/sys/ufs/ufs

2015-09-01 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 1 06:09:23 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_vnops.c Log Message: Propagate fix from lfs: For non-devices, have getattr (and thus stat) produce NODEV in the rdev field, instead of leaking the address of the

CVS commit: src/sys/ufs/lfs

2015-09-01 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 1 06:15:46 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h Log Message: Comments on directories. This includes a description of the struct direct byteswap horrors that ought to be propagated to ufs/ufs. To generate

CVS commit: src/sys/ufs/ufs

2015-09-01 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 1 06:16:03 UTC 2015 Modified Files: src/sys/ufs/ufs: dir.h Log Message: Pull over comments on struct direct's type/reclen byte swapping from LFS. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25

CVS commit: src/sys/ufs/lfs

2015-08-29 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Aug 29 21:04:22 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_accessors.h lfs_alloc.c Log Message: Fix IFILE pointer calculation when scanning freelist. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

CVS commit: src/sys/ufs/lfs

2015-08-21 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Aug 21 07:35:56 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_segment.c Log Message: lfs_writevnodes: replace mnt_vnodelist traversal with vfs_vnode_iterator. To generate a diff of this commit: cvs rdiff -u -r1.257 -r1.258

CVS commit: src/sys/ufs/ffs

2015-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Aug 12 14:52:35 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_alloc.c Log Message: Need wapbl transaction around ffs_blkfree_cg. Fixes wapbl+discard. To generate a diff of this commit: cvs rdiff -u -r1.150 -r1.151

CVS commit: src/sys/ufs/lfs

2015-08-12 Thread David A. Holland
Module Name:src Committed By: dholland Date: Wed Aug 12 18:23:47 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_extern.h lfs_syscalls.c lfs_vnops.c Log Message: Move the security checks for lfs_bmapv/lfs_markv into those functions. (instead of the system call entry points)

CVS commit: src/sys/ufs/lfs

2015-08-12 Thread David A. Holland
Module Name:src Committed By: dholland Date: Wed Aug 12 18:24:14 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h lfs_kernel.h lfs_vnops.c Log Message: Widen several of the fields of BLOCK_INFO to 64 bits. Keep the old BLOCK_INFO as BLOCK_INFO_70, and version the fcntls

CVS commit: src/sys/ufs/lfs

2015-08-12 Thread David A. Holland
Module Name:src Committed By: dholland Date: Wed Aug 12 18:23:59 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_vfsops.c Log Message: Fix botched syscall_package. HI CHRISTOS To generate a diff of this commit: cvs rdiff -u -r1.334 -r1.335 src/sys/ufs/lfs/lfs_vfsops.c

CVS commit: src/sys/ufs/lfs

2015-08-12 Thread David A. Holland
Module Name:src Committed By: dholland Date: Wed Aug 12 18:27:18 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h Log Message: Make the inode number in the 64-bit dinode 64 bits wide, like the other lfs64 on-disk inode numbers; I've been doing that since this is a new

CVS commit: src/sys/ufs/ffs

2015-08-08 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Aug 8 08:18:52 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_alloc.c Log Message: don't crash when printing error messages when there are no credentials. don't abuse the printed uid to log the inode number. The

CVS commit: src/sys/ufs/lfs

2015-08-03 Thread David A. Holland
Module Name:src Committed By: dholland Date: Mon Aug 3 17:33:54 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_vnops.c Log Message: Simplify some leftover code and remove some old assertions. Last year when I killed off some evil dirop-related macros, I added these

CVS commit: src/sys/ufs/lfs

2015-08-02 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Aug 2 17:57:27 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_accessors.h Log Message: Allow superblock accessors that widen 32-bit disk fields to 64-bit memory values. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/ufs/lfs

2015-08-02 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Aug 2 18:10:55 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_segment.c Log Message: Fix catastrophic bug in lfs_rewind() that changed segment numbers (lfs_curseg/lfs_nextseg in the superblock) using the wrong units. These

CVS commit: src/sys/ufs/lfs

2015-08-02 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Aug 2 18:12:41 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_inode.c lfs_inode.h lfs_segment.c lfs_vnops.c Log Message: Make i_eff_nblks in the in-memory inode 64 bits wide. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/ufs/lfs

2015-08-02 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Aug 2 18:12:59 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h lfs_vnops.c Log Message: lfs_cleanint[] in the in-memory superblock needs to have 64-bit entries. To generate a diff of this commit: cvs rdiff -u -r1.169

CVS commit: src/sys/ufs/lfs

2015-08-02 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Aug 2 18:18:46 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h lfs_accessors.h lfs_balloc.c lfs_segment.c lfs_vfsops.c ulfs_bmap.c Log Message: Pass the fs object to LFS_MAX_DADDR so it can check lfs_is64.

CVS commit: src/sys/ufs/lfs

2015-08-02 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Aug 2 20:23:21 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_inode.c Log Message: whoops, fix 32-bit build To generate a diff of this commit: cvs rdiff -u -r1.142 -r1.143 src/sys/ufs/lfs/lfs_inode.c Please note that

CVS commit: src/sys/ufs/lfs

2015-07-26 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sun Jul 26 08:13:24 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_vnops.c Log Message: lfs_flush_pchain: replace vget() with vcache_get(). To generate a diff of this commit: cvs rdiff -u -r1.276 -r1.277

CVS commit: src/sys/ufs/lfs

2015-07-26 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sun Jul 26 08:33:53 UTC 2015 Modified Files: src/sys/ufs/lfs: ulfs_quota1.c Log Message: Remove bogus mutex_enter(mntvnode_lock). To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/ufs/lfs/ulfs_quota1.c

CVS commit: src/sys/ufs/lfs

2015-07-25 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Jul 25 10:40:35 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_bio.c lfs_debug.c lfs_pages.c lfs_segment.c lfs_vnops.c Log Message: Use accessors in DEBUG and DIAGNOSTIC code as well To generate a diff of this

CVS commit: src/sys/ufs/lfs

2015-07-25 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Jul 25 13:01:06 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_debug.c Log Message: Another lfs superblock accessor (inside #ifdef 0). To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45

CVS commit: src/sys/ufs/lfs

2015-07-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Fri Jul 24 06:51:46 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs.h Log Message: ulfs2_dinode, having never actually been used with lfs, doesn't have a di_inumber field. Fix that. First preliminary step on PR 5. To

CVS commit: src/sys/ufs/lfs

2015-07-16 Thread David A. Holland
Module Name:src Committed By: dholland Date: Thu Jul 16 08:31:45 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_alloc.c lfs_inode.c lfs_rfw.c lfs_subr.c lfs_vfsops.c Log Message: Don't cast the return value of malloc. To generate a diff of this commit: cvs

CVS commit: src/sys/ufs

2015-07-11 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Jul 11 11:04:48 UTC 2015 Modified Files: src/sys/ufs/lfs: ulfs_lookup.c src/sys/ufs/ufs: ufs_lookup.c Log Message: mp-mnt_stat.f_flag is never set. Use the mnt_flag directly. This will now actually prevent the 'bad

CVS commit: src/sys/ufs/ffs

2015-06-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 28 10:04:32 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_snapshot.c Log Message: Small fixes. ok hannken@ To generate a diff of this commit: cvs rdiff -u -r1.139 -r1.140 src/sys/ufs/ffs/ffs_snapshot.c Please note that

CVS commit: src/sys/ufs/ufs

2015-06-13 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Jun 13 14:56:45 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_inode.c Log Message: ufs_inactive: stop overwriting error status and return the last error seen. Should resolve CID 1306276 (UNUSED_VALUE) To generate a diff

CVS commit: src/sys/ufs/ufs

2015-06-10 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Jun 10 15:28:27 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_inode.c Log Message: ufs_inactive: take UFS_WAPBL_BEGIN() before calling chkiq(). Should fix PR kern/49948 (quota panic) To generate a diff of this commit: cvs

CVS commit: src/sys/ufs/lfs

2015-06-07 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sun Jun 7 13:39:49 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_segment.c lfs_vfsops.c lfs_vnops.c Log Message: Fix copy and paste errors from last commits. - Kernel i386/ALL and amd64/ALL compile again. - Resolves CID 1304138

CVS commit: src/sys/ufs/lfs

2015-05-31 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sun May 31 15:45:18 UTC 2015 Modified Files: src/sys/ufs/lfs: lfs_extern.h lfs_syscalls.c Log Message: Make lfs_fastvget() private to lfs_syscalls.c, change it to take the BLOCK_INFO and vnode lock type instead of the inode disk

CVS commit: src/sys/ufs/ffs

2015-05-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat May 23 16:59:13 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Add a missing goto. (was here before my changes) ok christos@ To generate a diff of this commit: cvs rdiff -u -r1.333 -r1.334

CVS commit: src/sys/ufs/ffs

2015-05-20 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed May 20 18:19:09 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_bswap.c Log Message: Don't (harmlessly) overrun di_db array; copy di_ib separately. Noted by Coverity, CID 974635. While here, simplify size calculation for

CVS commit: src/sys/ufs/ffs

2015-05-20 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed May 20 18:21:17 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_bswap.c Log Message: memcpy di_extb/db/ib separately. Noted by Coverity, CID 974636. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39

CVS commit: src/sys/ufs/ffs

2015-05-19 Thread Martin Husemann
Module Name:src Committed By: martin Date: Tue May 19 06:44:42 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Cosmetics: fix netbsd.org spelling To generate a diff of this commit: cvs rdiff -u -r1.332 -r1.333 src/sys/ufs/ffs/ffs_vfsops.c Please

CVS commit: src/sys/ufs/ffs

2015-05-18 Thread Martin Husemann
Module Name:src Committed By: martin Date: Mon May 18 08:07:30 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Make the recently added fs_cgsize test less strict, as it prevents existing installs from booting. Catch the common case and warn about it,

CVS commit: src/sys/ufs/ffs

2015-04-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Apr 26 06:19:36 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): check the size of cylinder groups. To generate a diff of this commit: cvs rdiff -u -r1.329 -r1.330

CVS commit: src/sys/ufs/ffs

2015-04-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Apr 22 07:27:09 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Instead of duplicating code, create ffs_is_appleufs(): returns 1 if the device is an AppleUFS FS, 0 otherwise. This changes the behavior a

CVS commit: src/sys/ufs

2015-04-20 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Apr 20 21:02:49 UTC 2015 Modified Files: src/sys/ufs/lfs: ulfs_vnops.c src/sys/ufs/ufs: ufs_vnops.c Log Message: Fix more dvp-v_mount after vput(dvp). To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24

CVS commit: src/sys/ufs/ufs

2015-04-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Apr 15 14:39:24 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_inode.c Log Message: Release the glock on VOP_GETPAGES failure. Tripped over by nick@'s failing disk, missing unlock in error branch discovered by jmcneill@.

CVS commit: src/sys/ufs/lfs

2015-04-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Apr 12 22:51:24 UTC 2015 Modified Files: src/sys/ufs/lfs: ulfs_readwrite.c Log Message: Strip IO_JOURNALLOCKED, PGO_JOURNALLOCKED out of ulfs_readwrite.c. These are vestigial from ufs_readwrite.c with wapbl -- lfs does

CVS commit: src/sys/ufs/ufs

2015-04-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Apr 12 22:41:28 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_readwrite.c Log Message: Don't putpages in ufs buffercached writes: kassert there are none. To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119

CVS commit: src/sys/ufs/lfs

2015-04-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Apr 12 22:49:55 UTC 2015 Modified Files: src/sys/ufs/lfs: ulfs_readwrite.c Log Message: Same putpages-kassert in ulfs_readwrite.c To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16

CVS commit: src/sys/ufs/ufs

2015-04-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Apr 12 22:48:38 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_readwrite.c Log Message: Omit now-unused variable. rump build didn't catch this... To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120

CVS commit: src/sys/ufs/ffs

2015-04-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Apr 4 06:00:12 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): ensure fs_ncg!=0 and fs_maxbpg!=0 to prevent several divisions by zero. To generate a diff of this commit: cvs

CVS commit: src/sys/ufs/ufs

2015-04-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Apr 1 20:03:11 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_vnops.c Log Message: Don't use dvp after vput(dvp). Still don't understand why the fstrans_done must happen after the vput, and that will cause trouble once we

CVS commit: src/sys/ufs/ufs

2015-03-31 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Mar 31 11:43:05 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_readwrite.c Log Message: Amplify that even if we fixed it now the tentacles are still stuck. To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118

CVS commit: src/sys/ufs/ufs

2015-03-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Mar 31 00:22:50 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_readwrite.c Log Message: Write an essay explaining why ffs_write is one huge WAPBL transaction. To generate a diff of this commit: cvs rdiff -u -r1.116

CVS commit: src/sys/ufs/ufs

2015-03-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Mar 29 14:39:41 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_readwrite.c Log Message: WAPBL tx is always locked by ufs_bufrd caller, so never unlock it. To generate a diff of this commit: cvs rdiff -u -r1.115 -r1.116

CVS commit: src/sys/ufs

2015-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 28 17:06:15 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_readwrite.c src/sys/ufs/lfs: ulfs_readwrite.c src/sys/ufs/ufs: ufs_readwrite.c Log Message: Factor out post-read/write inode updates in

CVS commit: src/sys/ufs

2015-03-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Mar 27 17:27:56 UTC 2015 Modified Files: src/sys/ufs/chfs: chfs_vnops.c src/sys/ufs/ext2fs: ext2fs_extern.h ext2fs_lookup.c ext2fs_readwrite.c ext2fs_rename.c ext2fs_vfsops.c ext2fs_vnops.c

CVS commit: src/sys/ufs

2015-03-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Mar 27 19:47:14 UTC 2015 Modified Files: src/sys/ufs/lfs: ulfs_readwrite.c ulfs_vnops.c src/sys/ufs/ufs: ufs_readwrite.c ufs_vnops.c Log Message: Tighten some kasserts in ufs_bufio code paths. To generate a diff

CVS commit: src/sys/ufs/ext2fs

2015-03-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 28 03:49:41 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_readwrite.c Log Message: Missed another spot, in ext2fs_write. To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69

CVS commit: src/sys/ufs

2015-03-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 28 03:53:36 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_readwrite.c src/sys/ufs/lfs: ulfs_readwrite.c src/sys/ufs/ufs: ufs_readwrite.c Log Message: Turn some `#if DIAGNOSTIC' into KASSERT. To

CVS commit: src/sys/ufs/ufs

2015-03-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 28 04:13:26 UTC 2015 Modified Files: src/sys/ufs/ufs: ufs_readwrite.c Log Message: VOP_WRITE never has IO_JOURNALLOCKED. To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/sys/ufs/ufs/ufs_readwrite.c

CVS commit: src/sys/ufs/ext2fs

2015-03-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 28 03:46:51 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_readwrite.c Log Message: Missed a spot in ext2fs_read To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68

CVS commit: src/sys/ufs

2015-03-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Tue Mar 17 09:39:29 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_vfsops.c src/sys/ufs/ffs: ffs_alloc.c ffs_extern.h ffs_vfsops.c ffs_wapbl.c src/sys/ufs/mfs: mfs_vfsops.c src/sys/ufs/ufs:

CVS commit: src/sys/ufs/ffs

2015-03-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Mar 15 09:21:01 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_reload(): fix a bug that prevents Big Endian FSes from being reloaded. 'newfs' should be tagged as FS_SWAPPED, not 'fs'. Was here before

CVS commit: src/sys/ufs/ffs

2015-03-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Mar 14 19:52:54 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): ensure fs_ipg and fs_fpg are != 0. Otherwise division by zero in several places. To generate a diff of this

CVS commit: src/sys/ufs/ffs

2015-03-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Mar 10 12:59:32 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): check the number of inodes per block. Otherwise a malformed value could panic the system. To generate a diff of

CVS commit: src/sys/ufs/ffs

2015-03-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Mar 3 17:56:51 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_reload(): release 'bp' earlier To generate a diff of this commit: cvs rdiff -u -r1.320 -r1.321 src/sys/ufs/ffs/ffs_vfsops.c Please note

CVS commit: src/sys/ufs/ffs

2015-03-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Mar 3 17:46:39 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_reload(): the current implementation blindly guesses critical fields of the superblock didn't change. Add checks to ensure they didn't

CVS commit: src/sys/ufs/ffs

2015-02-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 23 13:38:54 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Small changes: - instead of always calling DPRINTF with __func__, put __func__ directly in the macro - ffs_mountfs(): rename fsblockloc -

CVS commit: src/sys/ufs/ext2fs

2015-02-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 23 17:05:59 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_vfsops.c Log Message: Hum. Perhaps I missed a bit of the specification. Let's not be that severe when checking the superblock. Should fix ATF. To generate a

CVS commit: src/sys/ufs/ffs

2015-02-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 22 14:12:48 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_quota2.c Log Message: KNF, and simplify a bit. No functional change To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/ufs/ffs/ffs_quota2.c

CVS commit: src/sys/ufs/ffs

2015-02-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 22 14:22:34 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): sanitize fs_fragshift, fs_bmask and fs_fmask. To generate a diff of this commit: cvs rdiff -u -r1.317 -r1.318

CVS commit: src/sys/ufs/ext2fs

2015-02-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 22 14:55:23 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_vfsops.c Log Message: Merge _sbcompute() and _sbcheck() into _sbfill(). In ext2fs_sbfill(), check more fields of the superblock, to prevent several kernel

CVS commit: src/sys/ufs/ext2fs

2015-02-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 20 17:44:54 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_vfsops.c Log Message: Several fixes: - rename ext2fs_checksb() - ext2fs_sbcheck(): more consistent - in ext2fs_sbcheck(), add a check to ensure

CVS commit: src/sys/ufs/ffs

2015-02-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 20 17:10:17 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Style, and fix a DPRINTF No functional change To generate a diff of this commit: cvs rdiff -u -r1.316 -r1.317 src/sys/ufs/ffs/ffs_vfsops.c

CVS commit: src/sys/ufs/ext2fs

2015-02-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 19 21:31:45 UTC 2015 Modified Files: src/sys/ufs/ext2fs: ext2fs_vfsops.c Log Message: e2fs_sbcheck(): add a check to ensure e2fs_bpg!=0. Otherwise the kernel panics with a division by zero. While here, remove the #ifdef's.

CVS commit: src/sys/ufs/ffs

2015-02-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 15 11:04:44 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_appleufs.c Log Message: Revert a change in my previous commit that broke the checksum calculation. Noted by dholland@ To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/ufs/ffs

2015-02-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 14 10:21:29 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): compute fs_bshift and fs_fshift, and ensure they are consistent with what is indicated in the superblock. This

CVS commit: src/sys/ufs/ffs

2015-02-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 14 09:55:53 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: In fact, we need to sanitize the superblock *after* swapping it. Therefore, move the swap code inside the loop. 'fs-fs_sbsize' is swapped

CVS commit: src/sys/ufs/ffs

2015-02-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 14 13:43:28 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): when checking the number of frag blocks, also make sure it matches fs-fs_frag. This also prevents an infinite loop

CVS commit: src/sys/ufs/ffs

2015-02-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 14 08:07:39 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_appleufs.c Log Message: ffs_appleufs_validate(): - remove superfluous printfs - ensure ul_namelen!=0, otherwise the kernel accesses ul_name[-1] and overwrites

CVS commit: src/sys/ufs/ffs

2015-02-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 14 09:00:12 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): sanitize the number of frag blocks. To generate a diff of this commit: cvs rdiff -u -r1.312 -r1.313

CVS commit: src/sys/ufs/ffs

2015-02-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 14 09:06:11 UTC 2015 Modified Files: src/sys/ufs/ffs: fs.h Log Message: Two typos: - preferrably - preferably - overriden - overridden No functional change. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66

CVS commit: src/sys/ufs/ffs

2015-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 13 15:28:56 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Make this a bit more readable. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.305 -r1.306

CVS commit: src/sys/ufs/ffs

2015-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 13 17:13:20 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_superblock_validate(): ensure fs-fs_cssize!=0, otherwise the kernel panics with kmem_alloc(0). To generate a diff of this commit: cvs

CVS commit: src/sys/ufs/ffs

2015-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 13 15:52:29 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Add a new function: ffs_superblock_validate(). And add a new check to ensure fs_size!=0; otherwise the kernel panics with a division by zero.

CVS commit: src/sys/ufs/ffs

2015-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 13 16:59:53 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Add some checks in ffs_superblock_validate(): - fs_bsize MINBSIZE - !powerof2(fs_bsize) - !powerof2(fs-fs_fsize) - fs_bsize fs-fs_fsize

CVS commit: src/sys/ufs/ffs

2015-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 14 07:11:34 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: ffs_reload(): call ffs_superblock_validate() with the new superblock. To generate a diff of this commit: cvs rdiff -u -r1.309 -r1.310

<    1   2   3   4   5   6   7   8   >