git: usr.sbin/makefs: Cast daddr_t to off_t before multiplication

2022-07-07 Thread Tomohiro Kusumi
commit d0a13d2ff133469dfc81f38950a52add4ff904e7 Author: Tomohiro Kusumi Date: Wed Jul 6 12:43:08 2022 -0700 usr.sbin/makefs: Cast daddr_t to off_t before multiplication Apparently some large-file systems out there, such as my powerpc64le Linux box, define daddr_t as a 32-bit

git: usr.sbin/makefs: Allocate extra inodes in makefs when leaving free space in UFS images

2022-07-06 Thread Tomohiro Kusumi
commit 7660903baf65c6a52d4b9ff4d5cafb460cd3c89b Author: Tomohiro Kusumi Date: Tue Jul 5 22:31:01 2022 -0700 usr.sbin/makefs: Allocate extra inodes in makefs when leaving free space in UFS images By default, makefs(8) has very few spare inodes in its output images, which

git: usr.sbin/makefs: Fix calculation of file sizes

2022-07-06 Thread Tomohiro Kusumi
commit 214357ff39157c4bbd99df364ed6dd28c212b0c9 Author: Tomohiro Kusumi Date: Tue Jul 5 21:54:34 2022 -0700 usr.sbin/makefs: Fix calculation of file sizes When a new FS image is created we need to calculate how much space each file is going to consume. Fix two bugs

git: usr.sbin/makefs: Rename vnode::logical, vflushed, malloced to start with v_

2022-06-06 Thread Tomohiro Kusumi
commit e00b9e51ade2c4ced7c6fd860e5e58dcbcc09907 Author: Tomohiro Kusumi Date: Mon Jun 6 19:13:33 2022 +0900 usr.sbin/makefs: Rename vnode::logical,vflushed,malloced to start with v_ Almost all vnode fields in sys/sys/vnode.h start with v_, so follow that naming rule

git: sbin/newfs_msdos: Add missing MAKEFS ifdefs

2022-06-05 Thread Tomohiro Kusumi
commit c589a8b83c02c783a462c59eab7d0707e9be4e5d Author: Tomohiro Kusumi Date: Sun Jun 5 03:44:48 2022 +0900 sbin/newfs_msdos: Add missing MAKEFS ifdefs Bring in MAKEFS related conditionals from FreeBSD commits. 162ae9c834f6d9f9cb443bd62cceb23e0b5fef48

git: usr.sbin/makefs: Fix warnings (in FreeBSD)

2022-06-05 Thread Tomohiro Kusumi
commit 2294e82fd7832ad43f29419fe53ee40bfd1c0509 Author: Tomohiro Kusumi Date: Sun Jun 5 13:56:58 2022 +0900 usr.sbin/makefs: Fix warnings (in FreeBSD) taken from FreeBSD cc1a53bc1aea0675d64e9547cdca241612906592 Summary of changes: usr.sbin/makefs/ffs.c | 2

git: usr.sbin/makefs: Add HAMMER2 support

2022-06-04 Thread Tomohiro Kusumi
commit 2d60b848f2503f28d840ceae174d07eb149ccce9 Author: Tomohiro Kusumi Date: Sat Jun 4 20:54:35 2022 +0900 usr.sbin/makefs: Add HAMMER2 support This commit adds HAMMER2 image creation support for makefs(8). It runs newfs_hammer2(8) and then sys/vfs/hammer2 logic

git: sbin/newfs_hammer2: Fix `-V 1' option

2022-06-04 Thread Tomohiro Kusumi
commit 4efe7d95b2bef41b8d3a6d1b9a134a88db637ebb Author: Tomohiro Kusumi Date: Fri Jun 3 20:12:25 2022 +0900 sbin/newfs_hammer2: Fix `-V 1' option It's been broken since 0b7381572b131c74051832dc251604e7f77b5a54 which introduced multi-volumes. No one probably needed to create

git: sys/vfs/hammer2: Mostly trailing whitespace cleanups

2022-02-21 Thread Tomohiro Kusumi
commit 022bb0a9ed6967bc18e421ed074f5727e49314e0 Author: Tomohiro Kusumi Date: Tue Feb 22 01:10:05 2022 +0900 sys/vfs/hammer2: Mostly trailing whitespace cleanups Summary of changes: sys/vfs/hammer2/DESIGN | 2 +- sys/vfs/hammer2/hammer2_bulkfree.c | 4 ++-- sys/vfs

git: sys/vfs/msdosfs: Fix mounting when the device sector size is >512B

2022-02-19 Thread Tomohiro Kusumi
commit 08e120530f425098d15b0861e92d67afcb80d220 Author: Tomohiro Kusumi Date: Sat Feb 19 02:10:06 2022 +0900 sys/vfs/msdosfs: Fix mounting when the device sector size is >512B HugeSectors * BytesPerSec should be computed before converting HugeSectors to a DEV_BSIZE-ba

git: sys/vfs/hammer2: Fix hammer2_chain_allocs calculation

2022-02-19 Thread Tomohiro Kusumi
commit 263688eb126867928a2c8f7672a81c5bb53f63f6 Author: Tomohiro Kusumi Date: Sat Feb 19 02:12:38 2022 +0900 sys/vfs/hammer2: Fix hammer2_chain_allocs calculation This counter should be decremented on freeing chains. Currently it gets incremented on chain allocation

git: sys/vfs/ext2fs: Improve extents verification logic (partial)

2022-02-09 Thread Tomohiro Kusumi
commit d4fdf3e6c9e302edd9d89177f15930c667f37963 Author: Tomohiro Kusumi Date: Thu Feb 10 00:45:06 2022 +0900 sys/vfs/ext2fs: Improve extents verification logic (partial) Sync with ext2fs/ext2_inode_cnv.c part of diff. Other diff hunks are for ext4 extents which isn't

git: sys/vfs/ext2fs: Add more accurate check for root inode

2022-02-08 Thread Tomohiro Kusumi
commit 7d478d3dfbb72f42d1fa01005d30a38e17ec6f2f Author: Tomohiro Kusumi Date: Wed Feb 9 00:46:33 2022 +0900 sys/vfs/ext2fs: Add more accurate check for root inode Check that root inode has links and is directory. taken from FreeBSD

git: sys/vfs/ext2fs: Add more accurate directory entries check

2022-02-08 Thread Tomohiro Kusumi
commit 2532d84a015ae37901f2c367db4d0c1ec99db80d Author: Tomohiro Kusumi Date: Wed Feb 9 00:20:08 2022 +0900 sys/vfs/ext2fs: Add more accurate directory entries check Rename ext2_dirbadentry() to ext2_check_direntry(). Add directory entry inode value check, and call

git: sys/vfs/ext2fs: Remove unnecessary e2fs_first_dblock value check

2022-02-08 Thread Tomohiro Kusumi
commit be29200b43db1f869b1f3fc5722243207eda15ce Author: Tomohiro Kusumi Date: Wed Feb 9 00:32:14 2022 +0900 sys/vfs/ext2fs: Remove unnecessary e2fs_first_dblock value check taken from FreeBSD 5034b44574c44d50bcb5fadec1d6aae152855bc0 Summary of changes: sys/vfs/ext2fs

git: usr.sbin/makefs: Fix a few typos in source code comments

2022-02-07 Thread Tomohiro Kusumi
commit 2946f1738fa116a9d76b9b9b9c5657e4c2349648 Author: Tomohiro Kusumi Date: Tue Feb 8 00:36:15 2022 +0900 usr.sbin/makefs: Fix a few typos in source code comments - s/concearned/concerned/ - s/quadradically/quadratically/ taken-from FreeBSD

git: sys/vfs/ext2fs: Fix a few common typos in source code comments

2022-02-07 Thread Tomohiro Kusumi
commit f39b800bc954bee16684e380160af0419155 Author: Tomohiro Kusumi Date: Tue Feb 8 01:01:22 2022 +0900 sys/vfs/ext2fs: Fix a few common typos in source code comments - s/quadradically/quadratically/ taken-from FreeBSD 8ea3ceda7644b7b93532d0c31b50ac5fa61e51a3

git: sys/vfs/msdosfs: denode some style

2022-02-05 Thread Tomohiro Kusumi
commit 3c6f531528a468eeb1a8409efdbf93bbb1c56279 Author: Tomohiro Kusumi Date: Fri Feb 4 00:34:16 2022 +0900 sys/vfs/msdosfs: denode some style taken-from FreeBSD d51b0786a2f60c3d188cae812cc0a3e0ab1a9893 Summary of changes: sys/vfs/msdosfs/msdosfs_denode.c | 10 +- 1

git: sys/vfs/msdosfs: Plug the rest of undef behavior places

2022-02-05 Thread Tomohiro Kusumi
commit b4dc4e98fc3b5dcf0525e35c00202f74d8b604c4 Author: Tomohiro Kusumi Date: Sat Feb 5 01:12:08 2022 +0900 sys/vfs/msdosfs: Plug the rest of undef behavior places There are three more places in msdosfs_fat.c which might shift one into the sign bit. While there, fix

git: sys/vfs/msdosfs: Do no allow lookup to return vdp except for dot lookups

2022-02-02 Thread Tomohiro Kusumi
commit 6f26ce0a44c226faaf4bda2fa1f3371c5d33fa7f Author: Tomohiro Kusumi Date: Thu Feb 3 00:10:09 2022 +0900 sys/vfs/msdosfs: Do no allow lookup to return vdp except for dot lookups taken-from FreeBSD aec97963cd03f10e04083537ed449a84a5e42f87 Summary of changes: sys/vfs/msdosfs

git: sys/vfs/msdosfs: Sanity check sector count from BPB

2022-02-02 Thread Tomohiro Kusumi
commit 12069653227cc541aa138ed6673a81662ad67bfe Author: Tomohiro Kusumi Date: Thu Feb 3 00:59:42 2022 +0900 sys/vfs/msdosfs: Sanity check sector count from BPB taken-from FreeBSD ba2c98389b78b548aedac0be53121df909c3fe2f Summary of changes: sys/vfs/msdosfs/msdosfs_vfsops.c | 11

git: sys/vfs/msdosfs: Handle a case when non-dot lookup returned dvp

2022-02-01 Thread Tomohiro Kusumi
commit 9645701edcf1b66368bb79ff127ae5f0e29a6df2 Author: Tomohiro Kusumi Date: Wed Feb 2 01:49:57 2022 +0900 sys/vfs/msdosfs: Handle a case when non-dot lookup returned dvp This means that filesystem is corrupted, there is a loop. taken-from FreeBSD

git: sys/vfs/msdosfs: Take inusemap inconsistency as an error, not invariants violation

2022-02-01 Thread Tomohiro Kusumi
commit 5dd3291fafdd28db2c56c917307681b3869a11c4 Author: Tomohiro Kusumi Date: Wed Feb 2 01:23:17 2022 +0900 sys/vfs/msdosfs: Take inusemap inconsistency as an error, not invariants violation In other words, stop silently accepting freeing free cluster in non-debug kernels

git: sys/vfs/msdosfs: mountmsdosfs() some style

2022-01-31 Thread Tomohiro Kusumi
commit b346beab2a7be3daf6d3925ef23bb46710c2350b Author: Tomohiro Kusumi Date: Tue Feb 1 00:23:08 2022 +0900 sys/vfs/msdosfs: mountmsdosfs() some style taken-from FreeBSD 04fd468da0d0baea535da418b92df74101a9659d Summary of changes: sys/vfs/msdosfs/msdosfs_vfsops.c | 46

git: msdosfs: clusterfree() is used only in error handling cases

2022-01-30 Thread Tomohiro Kusumi
commit 011c75d35238f71e76c704a45cc3eab082f4b5ce Author: Tomohiro Kusumi Date: Sun Jan 30 23:30:07 2022 +0900 msdosfs: clusterfree() is used only in error handling cases Change its return type to void, because its result is ignored in both call sites. Remove oldcnp argument

git: usr.sbin/makefs: Remove set but not used variables

2022-01-30 Thread Tomohiro Kusumi
commit cbbc68fdfdc15b5cac358ab3cdbc9d076a7f3158 Author: Tomohiro Kusumi Date: Mon Jan 31 00:07:01 2022 +0900 usr.sbin/makefs: Remove set but not used variables These were leftovers from the port from NetBSD (where they are used). taken-from FreeBSD

git: sys/vfs/hammer2: Add hammer2_ prefixed spin_[un]lock_update()

2022-01-28 Thread Tomohiro Kusumi
commit 7379b65c34b6e0a20fd9c2d407b301251be99aec Author: Tomohiro Kusumi Date: Fri Jan 28 01:03:32 2022 +0900 sys/vfs/hammer2: Add hammer2_ prefixed spin_[un]lock_update() like any other spin lock variants. Summary of changes: sys/vfs/hammer2/hammer2.h | 2 ++ sys/vfs

git: sys/vfs/hammer2: Use hammer2_ prefixed spin_init() for portability

2022-01-28 Thread Tomohiro Kusumi
commit fc6a1f2564a17f998f1cf46826c944bf711feaad Author: Tomohiro Kusumi Date: Fri Jan 28 01:02:36 2022 +0900 sys/vfs/hammer2: Use hammer2_ prefixed spin_init() for portability Summary of changes: sys/vfs/hammer2/hammer2_ccms.c | 2 +- sys/vfs/hammer2/hammer2_inode.c | 2 +- sys

git: sys/vfs/hammer2: Add missing hammer2_spin_init() for chain core

2022-01-25 Thread Tomohiro Kusumi
commit 345e2178abbf928baa5957102684128f975f0910 Author: Tomohiro Kusumi Date: Tue Jan 25 01:10:10 2022 +0900 sys/vfs/hammer2: Add missing hammer2_spin_init() for chain core This happened to be harmless, as all it does is zero initialize some fields that are already zero

git: sys/vfs/hammer2: Remove wrong comments in hammer2_chain_core_init()

2022-01-24 Thread Tomohiro Kusumi
commit d2a0e9b447cec869b58b78390dd95ee5838fd38d Author: Tomohiro Kusumi Date: Mon Jan 24 02:00:18 2022 +0900 sys/vfs/hammer2: Remove wrong comments in hammer2_chain_core_init() No such arguments *trans, *nchain, *ochain since da6f36f44bb9c76612e31b56cdfe4d787e53d61f in 2014

git: sys/vfs/hammer2: Use HAMMER2_METH_DEFAULT

2021-12-28 Thread Tomohiro Kusumi
commit 9371b097511d9a0d775b7d3cc43d56a1f45d1260 Author: Tomohiro Kusumi Date: Wed Dec 29 01:14:03 2021 +0900 sys/vfs/hammer2: Use HAMMER2_METH_DEFAULT hammer2_chain_create() callers use HAMMER2_METH_DEFAULT, not '-1'. Summary of changes: sys/vfs/hammer2/hammer2_chain.c | 2

git: ext2fs: Remove sys/gnu/vfs/ext2fs and make sys/vfs/ext2fs the default

2021-12-07 Thread Tomohiro Kusumi
commit fcfd9e22061b8fa31303c1c21a9241afe7077238 Author: Tomohiro Kusumi Date: Mon Dec 6 01:23:39 2021 +0900 ext2fs: Remove sys/gnu/vfs/ext2fs and make sys/vfs/ext2fs the default This commit removes the old+unstable GPL ext2 implementation, and makes the new FreeBSD based

git: sys/vfs/ext2fs: Check for e2fs_first_dblock in ext2_compute_sb_data()

2021-12-05 Thread Tomohiro Kusumi
commit d7cd4e5da13c837a602745fbbf838a15e5773350 Author: Tomohiro Kusumi Date: Sun Dec 5 22:00:23 2021 +0900 sys/vfs/ext2fs: Check for e2fs_first_dblock in ext2_compute_sb_data() This prevents a kernel panic on a damaged ext2 superblock. taken-from FreeBSD

git: sys/vfs/hammer2: Remove unused local variables in freemap

2021-11-21 Thread Tomohiro Kusumi
commit 9b5ac5f8a2c66835334e94732ef4a6a32507 Author: Tomohiro Kusumi Date: Mon Nov 22 00:23:40 2021 +0900 sys/vfs/hammer2: Remove unused local variables in freemap Summary of changes: sys/vfs/hammer2/hammer2_freemap.c | 8 1 file changed, 8 deletions(-) http

git: sys/vfs/hammer2: Rename **bresp -> **brefp

2021-11-21 Thread Tomohiro Kusumi
commit 7a7fe9e96e3bb965b619ba7e7ab8eab56be13b83 Author: Tomohiro Kusumi Date: Sun Nov 21 21:02:19 2021 +0900 sys/vfs/hammer2: Rename **bresp -> **brefp hammer2_blockref_t pointer is *bref, then the double pointer should be **brefp. Summary of changes: sys/vfs/hamm

git: sys/vfs/hammer2: Fix wrong comment on freemap zone/rotation

2021-11-15 Thread Tomohiro Kusumi
commit 641a6901d8de26d56405c4347db9b8bba886a54b Author: Tomohiro Kusumi Date: Tue Nov 16 01:12:06 2021 +0900 sys/vfs/hammer2: Fix wrong comment on freemap zone/rotation Freemaps are in every 1GB, and there are 8 rotations in each freemap. It was 2GB and 4 when

git: sbin/fsck_msdosfs: truncate directory entry when the head pointer is invalid.

2021-11-09 Thread Tomohiro Kusumi
commit 1351cfd71b069b3338915f3ac9908051ac283d6f Author: Tomohiro Kusumi Date: Wed Nov 10 01:12:26 2021 +0900 sbin/fsck_msdosfs: truncate directory entry when the head pointer is invalid. As far as we know, there is no FAT implementation that supported hard links, and our

git: usr.sbin/fstyp: Fix intra-object buffer overread for labeled msdosfs volumes

2021-11-03 Thread Tomohiro Kusumi
commit bc425cd926be5780293e34a801f97124ce041690 Author: Tomohiro Kusumi Date: Wed Nov 3 22:35:00 2021 +0900 usr.sbin/fstyp: Fix intra-object buffer overread for labeled msdosfs volumes Volume labels, like directory entries, are padded with spaces and so have no NUL

git: usr.sbin/makefs: Ignore the "tags" keyword in mtree manifests

2021-10-31 Thread Tomohiro Kusumi
commit 32357d2acfd467795886f13d62427207578d24db Author: Tomohiro Kusumi Date: Mon Nov 1 00:27:28 2021 +0900 usr.sbin/makefs: Ignore the "tags" keyword in mtree manifests An install using -DNO_ROOT emits mtree entries containing tags used by pkgbase. makefs(8)

git: usr.sbin/makefs: Fix -Wpointer-sign warnings in makefs

2021-10-31 Thread Tomohiro Kusumi
commit c3ba2018f9c7e075ad7429043b57c2fe146306d7 Author: Tomohiro Kusumi Date: Mon Nov 1 00:14:25 2021 +0900 usr.sbin/makefs: Fix -Wpointer-sign warnings in makefs UFS part taken from FreeBSD fe41c64b577251fd1df89aa6c722a877b88b402b iso9660 part is unchanged. Summary

git: usr.sbin/makefs: fix use-after-free in read_mtree_keywords()

2021-10-31 Thread Tomohiro Kusumi
commit 2a7b29081fc07850383b0a851c4d32b553412522 Author: Tomohiro Kusumi Date: Mon Nov 1 00:25:27 2021 +0900 usr.sbin/makefs: fix use-after-free in read_mtree_keywords() The st variable is used as a shortcut for >inode->st, but in one branch just before the exit we

git: usr.sbin/makefs: Also set UFS di_birthtime when building on Linux

2021-10-31 Thread Tomohiro Kusumi
commit a318d7ce8ac61299d56c159eec1709514389c075 Author: Tomohiro Kusumi Date: Sun Oct 31 23:45:06 2021 +0900 usr.sbin/makefs: Also set UFS di_birthtime when building on Linux Since st_birthtime doesn't exists on Linux (unless you use statx(2)), we instead populate

git: usr.sbin/makefs: Fix "time" mtree attribute handling

2021-10-31 Thread Tomohiro Kusumi
commit 58306fcd2a8b47e570ba1490e659bd570ce8be8a Author: Tomohiro Kusumi Date: Sun Oct 31 21:34:33 2021 +0900 usr.sbin/makefs: Fix "time" mtree attribute handling When processing mtree(5) MANIFEST files, makefs(8) previously threw an error if it encountered an e

git: usr.sbin/makefs: Improve error handling

2021-10-31 Thread Tomohiro Kusumi
commit e949eabd1a3dd3cd979a0d7426fccfb9f99b64e2 Author: Tomohiro Kusumi Date: Sun Oct 31 21:30:06 2021 +0900 usr.sbin/makefs: Improve error handling Bail out if one of the files scheduled to go to the FS image we are making cannot be read (e.g. EPERM). Current behaviour

git: usr.sbin/makefs: Add FAT support (taken from FreeBSD)

2021-10-27 Thread Tomohiro Kusumi
commit 20f6ddd0df90767e1eba2d12dfa8e1769be7cec7 Author: Tomohiro Kusumi Date: Wed Oct 27 00:21:14 2021 +0900 usr.sbin/makefs: Add FAT support (taken from FreeBSD) Basically same as FreeBSD version, except that several denode functions (that makefs(8) is trying to override

git: sys/kern: Add fdatasync(2)

2021-09-12 Thread Tomohiro Kusumi
commit 74fa2560ac77f9db4a34b2a7c72450126fec4ed6 Author: Tomohiro Kusumi Date: Sun Sep 12 01:57:53 2021 +0900 sys/kern: Add fdatasync(2) Based on the following FreeBSD commits in 2016. 295af703a0d7987c6cf4987e7b7f5f07b3ca1221 1c1cc89580f0fbfabaf6f6c7f0f6440eef0c128e

git: sys/kern: Move vop_stdallocate() within vfs_default.c

2021-09-11 Thread Tomohiro Kusumi
commit 815bacc95516b55f0c2bfd9eb2be96f8b0f2a6f8 Author: Tomohiro Kusumi Date: Sun Sep 12 00:40:04 2021 +0900 sys/kern: Move vop_stdallocate() within vfs_default.c vop_allocate stuff are usually placed after vop_markatime, but looking at vfs_default.c this std function should

git: sys/kern: Add posix_fallocate(2)

2021-09-08 Thread Tomohiro Kusumi
commit 09d96b9c7c1b6575f2ca53ae7c03876bdfa2413b Author: Tomohiro Kusumi Date: Wed Sep 8 23:09:44 2021 +0900 sys/kern: Add posix_fallocate(2) Based on the initial posix_fallocate(2) implementation in FreeBSD from d91f88f7f38078ac6dd4b0f0e77470d605d1518e in 2011

git: usr.sbin/fstyp: Add BeFS support

2021-08-27 Thread Tomohiro Kusumi
commit 6025be5878fc8286162a074592be39505968dbee Author: Tomohiro Kusumi Date: Fri Aug 27 00:04:26 2021 +0900 usr.sbin/fstyp: Add BeFS support from FreeBSD 0e92585cde5101506720ca1b904372317b7d84b6 Summary of changes: usr.sbin/fstyp/Makefile | 2 +- usr.sbin

git: sys/vfs/ext2fs: Correct a typo in an error message

2021-08-27 Thread Tomohiro Kusumi
commit cde80429c4bb1c8b293920dd0528753302218da8 Author: Tomohiro Kusumi Date: Thu Aug 26 23:15:07 2021 +0900 sys/vfs/ext2fs: Correct a typo in an error message from FreeBSD 47f880ebeb3092b1b7bbc6d75e82532e43bbf010 Summary of changes: sys/vfs/ext2fs/ext2_vfsops.c | 2 +- 1 file

git: sbin/hammer2: Fix total_size inconsistency check

2021-08-11 Thread Tomohiro Kusumi
commit c5fda8154f8b7af35a1c76971fac62ae925e3cb6 Author: Tomohiro Kusumi Date: Tue Aug 10 15:18:57 2021 +0900 sbin/hammer2: Fix total_size inconsistency check This should be errx(). The ondisk total_size != sum of volumes means total_size is corrupted or volume(s) missing

git: sbin/hammer2: Silence -Waddress-of-packed-member warnings

2021-08-11 Thread Tomohiro Kusumi
commit bc092eeff3c6f3eaf4bf1c3cd75c47c317ced9fe Author: Tomohiro Kusumi Date: Tue Aug 10 06:35:52 2021 +0900 sbin/hammer2: Silence -Waddress-of-packed-member warnings Not a problem on x86_64, but silence warnings caused by callers passing address of packed (possibly

git: sys/vfs/ext2fs: Fix incorrect VFS_VGET() argument in ext2_fhtovp()

2021-07-24 Thread Tomohiro Kusumi
commit f241f77e618b922710488641e753c169d8a60a77 Author: Tomohiro Kusumi Date: Sat Jul 24 01:34:50 2021 +0900 sys/vfs/ext2fs: Fix incorrect VFS_VGET() argument in ext2_fhtovp() A bug introduced when porting from FreeBSD. Summary of changes: sys/vfs/ext2fs/ext2_vfsops.c | 2

git: sys/vfs/hammer2: Fix bulkfree message/comments on old ondisk format

2021-07-22 Thread Tomohiro Kusumi
commit 63a8b78d9f23c88ed00fd8329b54c6e067a9dcf8 Author: Tomohiro Kusumi Date: Fri Jul 23 02:09:34 2021 +0900 sys/vfs/hammer2: Fix bulkfree message/comments on old ondisk format in addition to b0ac2d2999bc7ac111dbb5ffbc0f7ffbb4c92988. The bulkfree descriptions written in 2015

git: sys/vfs/hammer2: Fix "2MB segs cleaned" message to 4MB

2021-07-21 Thread Tomohiro Kusumi
commit b0ac2d2999bc7ac111dbb5ffbc0f7ffbb4c92988 Author: Tomohiro Kusumi Date: Thu Jul 22 02:54:33 2021 +0900 sys/vfs/hammer2: Fix "2MB segs cleaned" message to 4MB HAMMER2_FREEMAP_LEVEL0_RADIX was 21 (now 22) when this message firs

git: sys/vfs/hammer2: Rename hammer2_bulk_scan() to hammer2_bulkfree_scan()

2021-07-21 Thread Tomohiro Kusumi
commit 76fc35db470b1d22b717b080356cfc83971ae407 Author: Tomohiro Kusumi Date: Thu Jul 22 01:03:28 2021 +0900 sys/vfs/hammer2: Rename hammer2_bulk_scan() to hammer2_bulkfree_scan() Sync with function name in kprintf messages. This was also the only function without "

git: sys/vfs/hammer2: Remove unused hammer2_chain_save::pri

2021-07-21 Thread Tomohiro Kusumi
commit bfdcc5989fee49d9ae36bae9aae076f1f563f560 Author: Tomohiro Kusumi Date: Thu Jul 22 00:04:10 2021 +0900 sys/vfs/hammer2: Remove unused hammer2_chain_save::pri Never used since first appeared in 125966e80c1aba734d3d5f12a8fcfde2bbcdb018 in 2015. Summary of changes: sys/vfs

git: sys/vfs/hammer2: Remove unused hammer2_bulkfree_info::saved_mirror_tid

2021-07-21 Thread Tomohiro Kusumi
commit f9255826e3efc02aae9bdda17a407bb81d82668c Author: Tomohiro Kusumi Date: Thu Jul 22 00:22:00 2021 +0900 sys/vfs/hammer2: Remove unused hammer2_bulkfree_info::saved_mirror_tid No longer used since c8c0a18a66946d3ec5fd24de73f593da9c4af6ba in 2017. Summary of changes: sys

git: sbin/hammer2: Print freemap leaf's linear offset when "show"

2021-07-18 Thread Tomohiro Kusumi
commit 66b8e023faf81dca5a7f84d8eec956d797b9da9b Author: Tomohiro Kusumi Date: Sun Jul 18 01:23:28 2021 +0900 sbin/hammer2: Print freemap leaf's linear offset when "show" Summary of changes: sbin/hammer2/cmd_debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

git: sys/vfs/hammer2: Fix compilation when HAMMER2_IO_DEBUG enabled

2021-07-17 Thread Tomohiro Kusumi
commit cba5eccd875f1ec8aa76dd0ae5103b287f6e23b9 Author: Tomohiro Kusumi Date: Fri Jul 16 01:45:08 2021 +0900 sys/vfs/hammer2: Fix compilation when HAMMER2_IO_DEBUG enabled No such field debug_data in struct hammer2_io. Summary of changes: sys/vfs/hammer2/hammer2_io.c | 2 ++ 1

git: sys/vfs/hammer2: #if0 incomplete HAMMER2_FREEMAP_{DOMAYFREE, DOREALFREE} related

2021-07-17 Thread Tomohiro Kusumi
commit cfde014494a5f6b6c452bf296cc827bd2697c80b Author: Tomohiro Kusumi Date: Thu Jul 15 01:12:28 2021 +0900 sys/vfs/hammer2: #if0 incomplete HAMMER2_FREEMAP_{DOMAYFREE,DOREALFREE} related Disable related code in addition to already #if0'd parts. Neither &quo

git: sys/vfs/hammer2: Remove unused HAMMER2_XOP_IROOT

2021-07-17 Thread Tomohiro Kusumi
commit a7bb180bab3b5111dc7ad6f0fae394e530bffc0d Author: Tomohiro Kusumi Date: Tue Jul 13 02:02:23 2021 +0900 sys/vfs/hammer2: Remove unused HAMMER2_XOP_IROOT Never used since first appeared in 6f445d15835c6677a0a79c8d168ef44d0b9b22c3 in 2018. Also remove a comment

git: sys/vfs/hammer2: Remove unused HAMMER2_OFFSET_{MIN,MAX}

2021-07-11 Thread Tomohiro Kusumi
commit 7be2bcd461fd29f67cdfb0bb927fcb2c4dda3b41 Author: Tomohiro Kusumi Date: Thu Jul 8 02:18:06 2021 +0900 sys/vfs/hammer2: Remove unused HAMMER2_OFFSET_{MIN,MAX} Never used since first appeared in 504565062f34ec55037ac0cf308fe3562f091460 in 2014. Summary of changes: sys/vfs

git: sys/vfs/hammer2: Use HAMMER2_IND_COUNT_XXX

2021-07-07 Thread Tomohiro Kusumi
commit eadf1e6edecd0c6813085fce22defd9e7fd68de8 Author: Tomohiro Kusumi Date: Mon Jul 5 02:32:28 2021 +0900 sys/vfs/hammer2: Use HAMMER2_IND_COUNT_XXX Summary of changes: sys/vfs/hammer2/hammer2_chain.c | 6 +++--- sys/vfs/hammer2/hammer2_disk.h | 2 ++ 2 files changed, 5 insertions

git: sys/vfs/hammer2: HAMMER2_CHAIN_BMAP* should be HAMMER2_CHAIN_BLKMAP*

2021-07-07 Thread Tomohiro Kusumi
commit b70cecb798447d052d6e5ac455962fc0c3a4b051 Author: Tomohiro Kusumi Date: Mon Jul 5 01:30:10 2021 +0900 sys/vfs/hammer2: HAMMER2_CHAIN_BMAP* should be HAMMER2_CHAIN_BLKMAP* The freemap code uses "bmap" and "BMAP" for bitmap, so these two macr

git: sys/vfs/hammer2: Fix function name in xop kprintf's

2021-07-04 Thread Tomohiro Kusumi
commit e1dcd957e5d66b342fa838ce852361d2ec3d6346 Author: Tomohiro Kusumi Date: Sun Jul 4 01:54:09 2021 +0900 sys/vfs/hammer2: Fix function name in xop kprintf's Summary of changes: sys/vfs/hammer2/hammer2_xops.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions

git: sys/vfs/hammer2: #if0 unused HAMMER2_DIRHASH_{HIMASK,FORCED}

2021-07-04 Thread Tomohiro Kusumi
commit e632e5af5a7405daa3e4aa924bcd99662a4249b9 Author: Tomohiro Kusumi Date: Sun Jul 4 02:50:42 2021 +0900 sys/vfs/hammer2: #if0 unused HAMMER2_DIRHASH_{HIMASK,FORCED} HIMASK was no longer used since e028fa747e9825425f74da7e9c57a50a82b48e82 in 2012. FORCED bit was never

git: sys/vfs/hammer2: Move cache_xops global variable to hammer2_admin.c

2021-07-02 Thread Tomohiro Kusumi
commit c96b5d1011730eac636eff35209cb53f1362ed01 Author: Tomohiro Kusumi Date: Sat Jul 3 02:55:42 2021 +0900 sys/vfs/hammer2: Move cache_xops global variable to hammer2_admin.c Not much to do with vnops. Summary of changes: sys/vfs/hammer2/hammer2_admin.c | 2 ++ sys/vfs

git: sys/vfs/hammer2: Avoid two hammer2_knote() implementation

2021-07-02 Thread Tomohiro Kusumi
commit 0a27f7ce96abc9f5191d90363b7fcdeccdf95c60 Author: Tomohiro Kusumi Date: Sat Jul 3 02:19:13 2021 +0900 sys/vfs/hammer2: Avoid two hammer2_knote() implementation Summary of changes: sys/vfs/hammer2/hammer2.h | 8 sys/vfs/hammer2/hammer2_inode.c | 8 sys/vfs

git: sys/vfs/hammer2: Fix volhdrno initialization bug

2021-06-26 Thread Tomohiro Kusumi
commit 75d9730a687fcff22414364698e4ba023b466437 Author: Tomohiro Kusumi Date: Sun Jun 27 01:14:18 2021 +0900 sys/vfs/hammer2: Fix volhdrno initialization bug While hammer2_init_volumes() returned correct root volume header, hmp->volhdrno was always initialized wit

git: sbin/hammer2: Introduce HAMMER2_SHOW_ALL_VOLUME_HEADERS to show all volhdrs when -q

2021-06-26 Thread Tomohiro Kusumi
commit d490438fc14a707977eb2091b58c3636b0f556aa Author: Tomohiro Kusumi Date: Sat Jun 26 02:21:11 2021 +0900 sbin/hammer2: Introduce HAMMER2_SHOW_ALL_VOLUME_HEADERS to show all volhdrs when -q Previously only VerboseOpt>=3 printed all volume headers, and beca

git: sbin/hammer2: Introduce HAMMER2_SHOW_MIN_XXX_TID to limit blockrefs

2021-06-24 Thread Tomohiro Kusumi
commit 71782ce36f3953b7ba35612c81b8c60a4fe10fa1 Author: Tomohiro Kusumi Date: Wed Jun 23 01:24:07 2021 +0900 sbin/hammer2: Introduce HAMMER2_SHOW_MIN_XXX_TID to limit blockrefs Blockrefs with smaller tid are ignored as if HAMMER2_BREF_TYPE_EMPTY. The default is 0 which means

git: sys/vfs/hammer2: Remove unused HAMMER2_INODE_METAGOOD

2021-06-21 Thread Tomohiro Kusumi
commit 8e4aa7a7b0029b6176f7dc64eed96b636aa24922 Author: Tomohiro Kusumi Date: Tue Jun 22 02:19:33 2021 +0900 sys/vfs/hammer2: Remove unused HAMMER2_INODE_METAGOOD This appeared in 7a9b14a0e3b0630905b28addf32dfdef68b39014 in 2015, but was only used for kasserts which never

git: sys/vfs/hammer2: Remove unused HAMMER2_INODE_SROOT

2021-06-21 Thread Tomohiro Kusumi
commit 7b47769b5466e2a133fc43a93021156ac1036303 Author: Tomohiro Kusumi Date: Tue Jun 22 02:07:17 2021 +0900 sys/vfs/hammer2: Remove unused HAMMER2_INODE_SROOT No longer used since 504565062f34ec55037ac0cf308fe3562f091460 in 2014. Summary of changes: sys/vfs/hammer2/hammer2.h

git: sys/vfs/hammer2: Remove if0'd HAMMER2_TRANS_PREFLUSH

2021-06-21 Thread Tomohiro Kusumi
commit 55e28d189990229c33c6aa2e7933bcf91f6213af Author: Tomohiro Kusumi Date: Tue Jun 22 01:31:57 2021 +0900 sys/vfs/hammer2: Remove if0'd HAMMER2_TRANS_PREFLUSH This no longer exists since 2085215738c03d949e60de63843cb91e84836eb9 in 2016. Summary of changes: sys/vfs/hammer2

git: sys/vfs/hammer2: Remove unused FLUSH_DEBUG

2021-06-21 Thread Tomohiro Kusumi
commit fb431ac42365f2163f6ad5e978d63c4016848701 Author: Tomohiro Kusumi Date: Tue Jun 22 00:20:08 2021 +0900 sys/vfs/hammer2: Remove unused FLUSH_DEBUG No longer used since 8138a154be31c3db1d8bd046ca7b003a6c79c01c in 2014. Summary of changes: sys/vfs/hammer2/hammer2_flush.c

git: sys/vfs/hammer2: Remove redundant local dedup mask variable initialization

2021-06-20 Thread Tomohiro Kusumi
commit bed1f76bab37a278bbe6976dfe768b6ea6adaa16 Author: Tomohiro Kusumi Date: Sun Jun 20 00:34:07 2021 +0900 sys/vfs/hammer2: Remove redundant local dedup mask variable initialization Summary of changes: sys/vfs/hammer2/hammer2.h | 1 - 1 file changed, 1 deletion(-) http

Re: git: hammer2 - Fix growfs issue with multi-volume support + one other bug

2021-06-15 Thread Tomohiro Kusumi
2021年6月15日(火) 5:20 Matthew Dillon : > > > commit 0ed77c0451fd8246c4e40d07fd0562fc21eada3d > Author: Matthew Dillon > Date: Mon Jun 14 13:16:59 2021 -0700 > > hammer2 - Fix growfs issue with multi-volume support + one other bug > > * A hammer2 filesystem versioned for multi-volume

git: sys/vfs/hammer2: Remove unused hammer2_flush_info::debug

2021-06-15 Thread Tomohiro Kusumi
commit 556042eaa0998d8eadc98c98187a6b356212983c Author: Tomohiro Kusumi Date: Mon Jun 14 01:12:07 2021 +0900 sys/vfs/hammer2: Remove unused hammer2_flush_info::debug No longer used since 850d3f60f0a03e7a3f08357489acac749d6224ca in 2017. Remove the entire "hammer2_

git: sys/vfs/hammer2: Remove unused hammer2_thread::depth

2021-06-12 Thread Tomohiro Kusumi
commit fc4d71d734534edbb04641aec403eac8c7d8b745 Author: Tomohiro Kusumi Date: Sun Jun 13 04:06:59 2021 +0900 sys/vfs/hammer2: Remove unused hammer2_thread::depth No longer used since 01d71aa5538cba09383737ddbea2fb05e1e75e78 in 2015. Summary of changes: sys/vfs/hammer2/hammer2

git: sys/vfs/hammer2: Remove unused rdok/wrok helper inline functions

2021-06-12 Thread Tomohiro Kusumi
commit f61fbe920dc9b804b5687a7388ef37431638242a Author: Tomohiro Kusumi Date: Sun Jun 13 00:03:06 2021 +0900 sys/vfs/hammer2: Remove unused rdok/wrok helper inline functions Appeared in 23c7c7dd4e59da5bdb6ffa7fe2074c5b7ffe5e4f in 2015, but never used for anything. Summary

git: sys/vfs/hammer2: Remove unused hammer2_pfs::lock_nlink

2021-06-12 Thread Tomohiro Kusumi
commit e8be6d078a36829b2c255b7fd01d5e3bb3e58b95 Author: Tomohiro Kusumi Date: Sun Jun 13 03:22:00 2021 +0900 sys/vfs/hammer2: Remove unused hammer2_pfs::lock_nlink No longer used since cf1b3fafd1f08bd3a18fc9af3c431c48f600eb32 in 2016. Summary of changes: sys/vfs/hammer2

git: sys/vfs/hammer2: Remove nonexistent struct name

2021-06-11 Thread Tomohiro Kusumi
commit 371f808146db3306c605587d10636cdf77fb9eb6 Author: Tomohiro Kusumi Date: Sat Jun 12 03:32:28 2021 +0900 sys/vfs/hammer2: Remove nonexistent struct name struct hammer2_span never existed. struct hammer2_msg was removed in 3a5aa68f9b693d86f3b5d5ac9191035f09d18b3e in 2012

git: sys/vfs/hammer2: Remove unused hammer2_worker_rmask

2021-06-11 Thread Tomohiro Kusumi
commit a67eeef494d3c3e4857e8a00879391c966f544d6 Author: Tomohiro Kusumi Date: Sat Jun 12 02:30:11 2021 +0900 sys/vfs/hammer2: Remove unused hammer2_worker_rmask No longer used since d3896cc42394a330f93ed9dfd1906a476776 in 2021. Summary of changes: sys/vfs/hammer2/hammer2.h

git: sys/vfs/hammer2: Remove unused (add used) header includes

2021-06-11 Thread Tomohiro Kusumi
commit c12cfc4ad07eb9a5d7d3b0c346f718520ed82b99 Author: Tomohiro Kusumi Date: Sat Jun 12 02:16:25 2021 +0900 sys/vfs/hammer2: Remove unused (add used) header includes Summary of changes: sys/vfs/hammer2/hammer2.h | 8 +++- sys/vfs/hammer2/hammer2_bulkfree.c | 4 sys

git: sys/vfs/hammer2: Remove duplicate M_OBJCACHE definition

2021-06-06 Thread Tomohiro Kusumi
commit d64de31c3cfcf3b1b310d6beb1379d76740fefc9 Author: Tomohiro Kusumi Date: Sun Jun 6 02:25:01 2021 +0900 sys/vfs/hammer2: Remove duplicate M_OBJCACHE definition Summary of changes: sys/vfs/hammer2/hammer2_vfsops.c | 2 -- 1 file changed, 2 deletions(-) http

git: sys/vfs/hammer2: Remove unused struct hammer2_sync_info

2021-06-06 Thread Tomohiro Kusumi
commit 0243235435d3402a4839eccfcc6980776db08beb Author: Tomohiro Kusumi Date: Sun Jun 6 02:12:10 2021 +0900 sys/vfs/hammer2: Remove unused struct hammer2_sync_info Unused since ecfe89b8868b30c9ddfa9c86cb4b0a20365a248d in 2018. Summary of changes: sys/vfs/hammer2

git: sys/vfs/ext2fs: Make inode extra time fields updating logic more closer to Linux

2021-05-16 Thread Tomohiro Kusumi
commit ff7e9f49a7a4d116a5a25f5f4302f90a6ce3f019 Author: Tomohiro Kusumi Date: Mon May 17 03:13:52 2021 +0900 sys/vfs/ext2fs: Make inode extra time fields updating logic more closer to Linux from FreeBSD c40a160fd0aa48ceb6e243c72cb8b9b59dc4e13d from FreeBSD

git: sys/vfs/hammer2: Remove unused hammer2_dev::{n,max}ipstacks

2021-05-16 Thread Tomohiro Kusumi
commit 47691c8f7745953868034265c2001283bd3911fe Author: Tomohiro Kusumi Date: Mon May 17 00:55:27 2021 +0900 sys/vfs/hammer2: Remove unused hammer2_dev::{n,max}ipstacks First appeared in 703720e4d599857d052f0a65f2840224ce36ec5a in 2012, but never used for anything. Summary

git: sys/vfs/hammer2: Remove no longer used typedef for mtx_link_t

2021-05-16 Thread Tomohiro Kusumi
commit 6458640f2a765d793068ce6cbc14ba0d1ae533b1 Author: Tomohiro Kusumi Date: Mon May 17 00:39:32 2021 +0900 sys/vfs/hammer2: Remove no longer used typedef for mtx_link_t No longer used since 01d71aa5538cba09383737ddbea2fb05e1e75e78 in 2015. Summary of changes: sys/vfs/hammer2

git: sys/vfs/hammer2: Remove unused hammer2_dev::bflast

2021-05-16 Thread Tomohiro Kusumi
commit d387cbf0b6b9db2d5e7ad337191fc403da918390 Author: Tomohiro Kusumi Date: Mon May 17 00:27:25 2021 +0900 sys/vfs/hammer2: Remove unused hammer2_dev::bflast First appeared in 9dca9515d47eeb36c9696bb04c0112bafd8efe38 in 2017, but never used for anything. Summary

git: sys/vfs/hammer2: Remove "REPORT_REFS_ERRORS /* XXX remove me */"

2021-05-16 Thread Tomohiro Kusumi
commit 3421d64a2915f83d8cd7e6620dc1591333f6e788 Author: Tomohiro Kusumi Date: Sun May 16 05:35:52 2021 +0900 sys/vfs/hammer2: Remove "REPORT_REFS_ERRORS /* XXX remove me */" Summary of changes: sys/vfs/hammer2/hammer2_vfsops.c | 12 +++- 1 file changed, 3 insert

git: sys/vfs/hammer2: Use MPTOPMP()

2021-05-15 Thread Tomohiro Kusumi
commit 8f4737e463ebcce6e7b0cbd450597ccbab904cef Author: Tomohiro Kusumi Date: Sun May 16 04:36:03 2021 +0900 sys/vfs/hammer2: Use MPTOPMP() Summary of changes: sys/vfs/hammer2/hammer2_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflybsd.org

git: sys/vfs/hammer2: Make hammer2_mtx_upgrade_try() macro around mutex(9)

2021-05-15 Thread Tomohiro Kusumi
commit d8ebfae62ec144a63351a47a40ccbee1017cd930 Author: Tomohiro Kusumi Date: Sun May 16 03:48:29 2021 +0900 sys/vfs/hammer2: Make hammer2_mtx_upgrade_try() macro around mutex(9) just like any other HAMMER2 lock primitive. This used to be more than that until

git: sys/vfs/hammer2: Remove no longer used hammer2_xid_t and macros

2021-05-15 Thread Tomohiro Kusumi
commit 2124498fef8f01d9780c0d56a4d2220d303828a5 Author: Tomohiro Kusumi Date: Sun May 16 03:14:40 2021 +0900 sys/vfs/hammer2: Remove no longer used hammer2_xid_t and macros These are no longer used since da6f36f44bb9c76612e31b56cdfe4d787e53d61f in 2014. Summary of changes

git: sys/vfs/hammer2: Remove unused HMNT2_NOAUTOSNAP

2021-05-15 Thread Tomohiro Kusumi
commit cf6e1195d37cd64147b2cc12722d7cb94f8b727c Author: Tomohiro Kusumi Date: Sun May 16 02:01:23 2021 +0900 sys/vfs/hammer2: Remove unused HMNT2_NOAUTOSNAP First appeared 9 years ago in 703720e4d599857d052f0a65f2840224ce36ec5a but never used for anything. Summary

git: usr.sbin/autofs: Best effort to maintain mounttab and mountdtab

2021-05-05 Thread Tomohiro Kusumi
commit 1dfea00f11e2d4fba2bae6d98e5df8391209d1d7 Author: Tomohiro Kusumi Date: Wed May 5 23:10:57 2021 +0900 usr.sbin/autofs: Best effort to maintain mounttab and mountdtab from FreeBSD 88e531f38c2412bf030f4e8dd563efc45b70797e Summary of changes: usr.sbin/autofs/automount.c

git: sys/vfs/hammer2: Add break; (not a bug)

2021-03-14 Thread Tomohiro Kusumi
commit 1bbee3bf1f99428bbb04b96bf084bf64a0cfde95 Author: Tomohiro Kusumi Date: Sun Mar 14 21:05:39 2021 +0900 sys/vfs/hammer2: Add break; (not a bug) Summary of changes: sys/vfs/hammer2/hammer2_io.c | 1 + 1 file changed, 1 insertion(+) http://gitweb.dragonflybsd.org/dragonfly.git

git: sbin/mount_hammer2: Minor cleanup

2021-03-07 Thread Tomohiro Kusumi
commit 0cdf3eb22908390851a73a22001f6f2f36d0bee3 Author: Tomohiro Kusumi Date: Sun Mar 7 22:13:12 2021 +0900 sbin/mount_hammer2: Minor cleanup Summary of changes: sbin/mount_hammer2/mount_hammer2.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) http

git: usr.sbin/autofs: Fix absolute path when creating a mountpoint

2021-02-17 Thread Tomohiro Kusumi
commit e0eb7cf027c1f12707e9dc65ec4c0ef6273b03e4 Author: Tomohiro Kusumi Date: Thu Feb 18 00:20:11 2021 +0900 usr.sbin/autofs: Fix absolute path when creating a mountpoint from freebsd 63640b2f552c0476f50484635eb9888eafcd22dc FreeBSD finally fixed a bug I reported

  1   2   3   4   5   6   7   8   9   10   >