commit 0a6fabdb4a391f3075a7076c85d40112db0604a1
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Feb 29 00:25:03 2016 +0900
sys/vfs/hammer: Add hammer_btree_extract_data() [1/2]
hammer_btree_extract() reads data from block devices if flag
commit 1f17336486c7bdf510d834b479640a37242159e9
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Mar 3 00:53:12 2016 +0900
sbin/hammer: Make hammer show print record type in text
hammer show prints "dir-entry" for each directory entry record.
commit 86a7247ba0da43e4f5e5d834d26bf804e8c5dac0
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Mar 5 17:27:05 2016 +0900
sbin/hammer: Cleanup long lines with >80 chars
Summary of changes:
sbin/hammer/cmd_show.c | 16 +---
1 file changed, 9 inserti
commit 196153860dcc905a1f800813359c86d79029b4e7
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Mar 2 22:56:28 2016 +0900
sbin/hammer: Use sizeof(*elm)
Summary of changes:
sbin/hammer/cmd_show.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit b7f4adf6910df2f663f537ea771f61a0756ca423
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Mar 5 19:57:34 2016 +0900
sys/kern: Change "bufcache" to "buffer cache" in warning message
It's better with "buffer cache&q
commit d63d12543c2da2d61754a643d9d9975d7a2c330f
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Mar 2 01:38:21 2016 +0900
sbin/hammer: Cleanup and squash elm format of hammer show
Fix possible trailing whitespace after object type field.
Record infor
commit 78ad341162aa487df356bd68d010acafab975e70
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Mar 5 17:50:44 2016 +0900
sbin/hammer: Cleanup beginning part of hammer show
to make the format a bit more understandable compared
to the original format, since
commit d604bad632f50ffa1ffd0a470b01825b4b162ab7
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Mar 3 01:32:15 2016 +0900
sbin/hammer: Don't modify buffer_info for config data for no reason
print_config() introduced by bc5af92e modifies the dat
commit 310c241ef93878a3499ae940e43d83efd89a64b1
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Mar 4 05:21:51 2016 +0900
sbin/hammer: Fix indentation of config data output
Align config data with " before and after the data.
Otherwise hammer show gener
commit 2d600cc715dffbf81f91c2446da1c32370c52c74
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Mar 4 02:49:50 2016 +0900
sbin/hammer: Add num_bad_rec counter to hammer show
Add a counter for CRC error and blockmap offset error for records
in addition to co
commit 1c1d5eecc6d98017bb2f9abee7815c717205dd3e
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Mar 4 01:51:03 2016 +0900
sbin/hammer: Cleanup error string formats for records' crc error
Also make it grep friendly with "error=%s" format.
Summary o
commit 963a61c53638c2a0f89062fe3bd075ad047c44fe
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Mar 3 02:40:01 2016 +0900
sbin/hammer: Cleanup and squash inode record format of hammer show
Inode information was taking too many lines for no reason.
Squash
commit efc166b1f2d2982633c55d8628afe6fa3e772ca2
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Mar 4 22:58:30 2016 +0900
sbin/hammer: Minor fix for hammer(8) manpage
Summary of changes:
sbin/hammer/hammer.8 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
commit e24b3fc79361699006082e107a3a260cbd8e7775
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Mar 4 03:19:07 2016 +0900
sbin/hammer: Fix wrong config data field name
bc5af92e changed the name of char[] field from "text" to "stext",
commit 16d077a6c5630bf0065d2a41f9d575b377b9e126
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Tue Mar 1 22:28:45 2016 +0900
sbin/hammer: Use HAMMER_OFF_BAD
Summary of changes:
sbin/hammer/cmd_show.c | 2 +-
sbin/hammer/hammer.c | 2 +-
2 files changed, 2 insertions
commit c11c58774d9abe6d70c7278bf4c013adee93e9b3
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Feb 29 00:05:10 2016 +0900
sys/vfs/hammer: Add hammer_btree_extract_leaf()
hammer_btree_extract() doesn't read data from block devices
unless fl
commit ea32fae4e76648969a69cc4eb674d70f9240998a
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Apr 3 04:05:44 2016 +0900
sys/vfs/hammer: Add vol_no field to struct hammer_ioc_volume
The problem with interface/commands HAMMER provides is that there
is
commit 56c2f4d6da955cde55e4173bc954e7fe7244013e
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Apr 3 08:34:44 2016 +0900
sbin/hammer: Make hammer commands print root volume path
Base on the change made by the previous commit, this commit adds
the root
commit 1af45407b462a1dc3797e2cc3bae979ac1692102
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Mar 30 20:41:03 2016 +0900
sys/vfs/hammer: Change ondisk vol_locked to reserved
This was added in the first commit of HAMMER 8750964d in 2007,
but was neve
commit a4a0bbd6975992efa1b171e9f0860b51c255ec04
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Mar 30 20:47:27 2016 +0900
sys/vfs/hammer: Change ondisk vol0_stat_bytes to reserved
This was added in fbc6e32a in 2007, but never used.
The filesystem design
commit 52b123668d5073998cf2422316527421e6de4f71
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Mar 30 21:07:46 2016 +0900
sys/vfs/hammer: Fix/add comments on volume header
Summary of changes:
sbin/hammer/ondisk.c | 2 +-
sys/vfs/hammer/hammer_disk
commit 8260ce22ad9c50711878c233095f7f3fb4a82ac2
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Tue Mar 29 03:43:29 2016 +0900
sbin/hammer: Don't always print BC error on nodes with 0 count
B-Tree nodes having 0 count ("BC") isn't necessarily an error.
commit 191b971e11d2c38cd8c4fa0c9987e102b8215f89
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Tue Mar 29 01:01:28 2016 +0900
sbin/newfs_hammer: Add missing buffer refcount--
All remaining buffers (buffers didn't get kicked out by cache
mechanism) when the p
commit cf38c6bf5fb52ba49edd511120ad884a33dc76ec
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Mar 28 23:52:43 2016 +0900
sbin/hammer: Remove unused buffer flag
Add assertion isnew!=-1 since the flag was originally used
to indicate the buffer was all
commit 778c2d2c0cce2142a5d08710aab562f7bebca848
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Apr 4 05:45:46 2016 +0900
sbin/hammer: Make getyn() non static
This can be used by other commands (needed in the next commit).
Also rename static function
commit dba3a6ee2896942488866c923e190d92d579d97a
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Apr 4 05:06:43 2016 +0900
sys/vfs/hammer: Remove extra filesystem syncing on volume-del
This isn't necessary after 2f1df9ce.
Having this before hammer_free_f
commit b2299751726fb0f5b012207a9f8a726f33bba3f0
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Apr 4 10:33:28 2016 +0900
sbin/hammer: Print volume list after volume-add|del
Print volume info equivalent of hammer volume-list.
Using -v on hammer volume-a
commit 1d1199eb3292602cdbf3f5dee333eba434fd67d0
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Apr 4 05:48:44 2016 +0900
sys/vfs/hammer: Ask before reblocking on volume-del
hammer volume-del finishes instantly if the volume doesn't need
reblocking, but it
commit c7fc3243262be620521d3c0d0c40c8385ad5c226
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Mar 21 01:31:48 2016 +0900
sys/vfs/hammer: Erase layer2 entries on removing volume
Since hammer volume-del puts layer1 entries back to UNAVAIL,
it should zero
commit 320e300762007b5ce193a2bc349f149baffc1751
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Mar 21 19:12:08 2016 +0900
sbin/hammer: Make hammer blockmap ignore zone=15 unless -vv
hammer blockmap ignoring UNAVAIL blockmaps for layer1 entries
is d
commit eb03572d47537aee3c9975915c8714e17636b98e
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Apr 25 04:39:56 2016 +0900
sys/vfs/tmpfs: Remove unused mount variables
Summary of changes:
sys/vfs/tmpfs/tmpfs_vnops.c | 23 ---
1 file changed, 23 del
commit ad26d76e453466f8986265a4d8385ebcb50400ad
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Apr 28 13:34:00 2016 +0900
sys/kern: Add comment on unmounting
Summary of changes:
sys/kern/vfs_syscalls.c | 5 +
1 file changed, 5 insertions(+)
commit 1d45133429e746705d83113b9cd398ee754f1cc6
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri May 6 23:11:47 2016 +0900
sys/vfs/hammer: Add missing \n in debug kprintf
Summary of changes:
sys/vfs/hammer/hammer_inode.c | 2 +-
1 file changed, 1 insertion(+), 1 de
commit 0ba55d9a9d744d706f60b721a0cbc5562dd3fe04
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Apr 18 19:01:29 2016 +0900
sbin/hammer: Use printf() instead of fprintf(stdout)
Follow sbin/hammer's coding style (as well as C in general).
# grep &q
commit c1ac632a14ed003b307ac140d2ec0c0a761091e4
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Apr 18 18:57:10 2016 +0900
sbin/hammer: Add no hammer found message if not mounted
The local variable 'first' being non-zero after the loop means
none of the
commit fe3b711b69bbb30cf43ffba984bdfd5df567beca
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Apr 18 03:09:08 2016 +0900
sbin/mount_hammer: Remove duplicated MOPT_UPDATE macro definition
include/mntopts.h has this for getmntopts(3).
mount_dirfs(
commit b285f70d3986db50ac1245358bd632f91633a6e1
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Tue Apr 19 04:15:26 2016 +0900
sys/kern: Fix mountctl options list
Add some minor mount flags that are missing in vfs_flagstostr().
MNT_IGNORE should be ignored
commit 0f243a86f17b19ea70f07a99bb2ab2e408c7da81
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed May 25 12:28:42 2016 +0900
sys/vfs/hammer: Add warning messages on ENOSPC
Add warning messages if the blockmap allocator finds ENOSPC.
B-Tree functions ma
commit 0b62a005b3a1724f605ace3044cbf8ac57549eca
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed May 25 19:05:32 2016 +0900
sys/vfs/hammer: Remove unnecessary =NULL;
resx is only used (or should be declared) in else{} scope.
Summary of changes:
sys/vfs/
commit 7b46f61d0bdc30b2931738f7b298d85413ef
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed May 25 12:15:32 2016 +0900
sys/vfs/hammer: Remove vfs.hammer.count_extra_space_used
This was added in a7e9bef1 in 2008 for debugging.
Exposing this to userspace
commit 40100248f3d3d2ec2c7fe0d5c4fe6cfb94cd832e
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed May 25 15:11:13 2016 +0900
sys/vfs/hammer: Don't store negative free/avail for statfs/statvfs
f_bfree and f_bavail (these two equal on HAMMER) are
commit 044711a6179c7282e7f409220c1c310c5eb9d775
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Aug 11 19:55:46 2016 +0900
sbin/hammer: Cleanup sbin/hammer/hammer_util.h
Move externs for global variables from hammer_util.h to hammer.h.
These are eithe
commit 8679ed648f6da820877a735b4b6e6d0676ddc324
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Aug 11 16:37:46 2016 +0900
sbin/hammer: Move score_printf()/hammer_check_restrict() to cmd_mirror.c
Make sbin/hammer/misc.c independent of /sbin/hammer's global var
commit f3f3fa72bcff0ab7e8aa978aedb7674c5d3060be
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Aug 11 16:44:39 2016 +0900
sbin/newfs_hammer: Link against sbin/hammer/misc.o
Make /sbin/newfs_hammer link to sbin/hammer/misc.o, and use
sizetostr() via sbin/
commit b2290779f82556d039af760ae58288904b2ba967
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Aug 11 19:55:07 2016 +0900
sbin/newfs_hammer: Add -d option from hammer(8)
Let /sbin/newfs_hammer access debug tunable which is accessible
via the same -d
commit 7dc46daa12ba48e3e09644e20992d645ed4b1822
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Aug 13 16:03:39 2016 +0900
sys/vfs/hammer: Rename HAMMERIOC_PFS_ITERATE to HAMMERIOC_SCAN_PSEUDOFS
The name of this ioctl is misleading.
It has nothing
commit e0f42079306350f7daca49530c8efcbfbe5febf2
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Aug 13 14:52:29 2016 +0900
sys/vfs/hammer: Change/Fix ioctl API for HAMMERIOC_PFS_ITERATE
Rewrite hammer_ioc_iterate_pseudofs() as a proper hammer ioctl.
This
commit 0942f1c42f96f235650c2243a5f9e0cc34d66fcb
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Aug 14 15:37:03 2016 +0900
sys/vfs/hammer: Drop redundant error initialization
error is always 0 when it hits here.
(It would have already returned non-zero
commit 420829c2f1adedad6a71c9519c61a172bc189a89
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Aug 13 13:29:17 2016 +0900
sbin/hammer: Cleanups
Summary of changes:
sbin/hammer/cmd_snapshot.c | 3 ---
1 file changed, 3 deletions(-)
http://gitweb.dragonflyb
commit 9ca5256811d59b81cf43ef4ca3fbf4fe2de81490
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Aug 10 02:24:32 2016 +0900
sbin/hammer: Use HAMMER_BTREE_TYPE_RECORD
Summary of changes:
sbin/hammer/cmd_recover.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit a19bad8990fe1a766f630d970e25cf258d6cbf08
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Aug 11 14:53:37 2016 +0900
sbin/hammer: Increment recovery scan offset regardless of get_buffer()
result
otherwise the loop may become an infinite loop though
commit c4f94769b04363639f1b13d7e3140a8ed5dba9cf
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Aug 10 02:21:11 2016 +0900
sbin/hammer: Add debug prints while scanning node during recovery
Prints "zone2offset nodetype elmnum elmtypes" with -d.
Pri
commit ea458aa6c20f3b35224bc18120b29d208a89b5ef
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Aug 12 22:29:10 2016 +0900
sbin/hammer: Don't include libhammer.h unconditionally
Though /sbin/hammer links to libhammer, only two commands use it.
commit d846dce0396aaf8521b35651857538a5a1e4795d
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Aug 12 21:44:38 2016 +0900
sbin/hammer: Rewrite hammer bstats/iostats
- Detach from libhammer.
- Add sysctls that were missing in libhammer.
- It's simply
commit ee85f114e672e06e8a81cfdfe32ea58ea656b981
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Jul 17 22:19:11 2016 +0900
sys/kern: Mention pid 0 in usched_set(2) BUGS section
usched_set(2) only works for the current thread,
so it doesn't really
commit 6e279e27dfa05662c35f719a51b9c78656f9eaed
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Jul 16 08:57:06 2016 +0900
sys/cpu/x86_64: Expose CPUMASK macros to userspace without
_KERNEL_STRUCTURES
Userspace programs other than /sbin/usched may use cpu af
commit a3894d77992aebef1caea78feca25f9c68052149
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Jul 16 10:49:15 2016 +0900
sys/kern: Add USCHED_GET_CPUMASK for usched_set(2)
Add a new usched_set(2) command USCHED_GET_CPUMASK which simply
copies the cpumask
commit 532c8d861e52d36fbe54c06f08501942b1f0b851
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Jul 15 23:18:06 2016 +0900
sbin/newfs_hammer: Don't exit if -f when a blkdev doesn't support TRIM
With force option, exit(1) only when ioctl(IOCTLTRIM) failed.
S
commit 0d271772237c82a1f78d9cd6c5dcd98b3499c7a3
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Jul 17 01:07:55 2016 +0900
sbin/usched: Add cpumask limitation to usched(8) BUGS section
Summary of changes:
sbin/usched/usched.8 | 3 +++
1 file changed, 3 insertions(+)
commit c6c4cbd9be7d7d4666836015c8e590b6fde1033f
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Aug 6 17:54:29 2016 +0900
sbin/hammer: Remove rel_volume()
It does nothing after da519351 which got rid of unnecessary
volume-modified flag.
volume_inf
commit 871ff6cbfafa87f4b91f97e323feb6b5b67febb2
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Aug 6 21:08:15 2016 +0900
sbin/hammer: Directly access volume in volume list
This is what ondisk code does.
No reference/etc to acquire via get_volume().
S
commit 0dd9c29834ac0e9b965cf243552f98929f3caa6b
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Aug 6 18:58:58 2016 +0900
sys/vfs/hammer: Add HAMMER_VOL_BUF_SIZE()
Summary of changes:
sbin/hammer/cmd_recover.c| 2 +-
sbin/hammer/ondisk.c | 2 +-
commit 5fee6e9ab2e10233d0a200d4a4b3227ebc7ea3c4
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Aug 7 20:28:44 2016 +0900
sbin/hammer: Abort if failed to creat recover target dir
Summary of changes:
sbin/hammer/cmd_recover.c | 8 +++-
1 file changed, 7 insertions
commit c12351c55782f5b92249cb6a0e1d58b35e07c72d
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Aug 7 17:59:07 2016 +0900
sbin/hammer: Add verbose volume message while recovering
sizetostr() is brought from newfs_hammer code.
newfs_hammer shou
commit 66d704afac703954e37e0af483591bc19224fb3c
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Jun 26 01:35:00 2016 +0900
sys/vfs/hammer: Remove validate_zone()
Code becomes less clear with this function and usage of sum of results.
Just check if the
commit 07df7c619efb734817c5625ac1178ef90751
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Jun 26 18:39:42 2016 +0900
sbin/hammer: Make global PFS/accounting variables static
Summary of changes:
sbin/hammer/cmd_dedup.c | 20 ++--
1 file chang
commit 25ee129e19d202a0ca0e1ea9855c933a7d545cb6
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Aug 15 00:54:05 2016 +0900
sbin/newfs_hammer: Add -C option from hammer(8)
Just to support the same options given that these are both based
on the same volume/
commit 591440d1dddcb6bee54d9d01faaa966c0cbbfd65
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Aug 15 21:11:31 2016 +0900
sbin/newfs_hammer: Add -h option
Summary of changes:
sbin/newfs_hammer/newfs_hammer.8 | 4 +++-
sbin/newfs_hammer/newfs_hammer.c | 7 +--
2
commit 5bbf2e86ebb05ecff3a372ce9177685fa9f5bcac
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Aug 15 20:48:37 2016 +0900
sbin/hammer: Cleanups
Summary of changes:
sbin/hammer/hammer.h | 1 -
sbin/hammer/hammer_util.h | 1 +
sbin/hammer/ondisk.c | 9 --
commit c5792f02d6d708d7bb4f545c374a9e1ba3273666
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Aug 15 21:06:14 2016 +0900
sbin/newfs_hammer: Add exit_code arg to usage()
Summary of changes:
sbin/newfs_hammer/newfs_hammer.c | 12 ++--
1 file changed, 6 inse
commit 93056456a8d6c17cae1d6098da85608caac029bb
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Tue Aug 16 20:11:46 2016 +0900
sbin/hammer: Refactoring
Summary of changes:
sbin/hammer/ondisk.c | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
commit 16712f18f748c9c82535b14934e368ad9fb33c7a
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Tue Aug 16 20:45:44 2016 +0900
sbin/hammer: Fix memory leak
strsep moves * by taking **, so the caller need to keep a pointer to
strdup'd address.
Summary of changes:
commit b077a45cfef52183808ce73c3f13795fb6b779db
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Aug 17 20:08:01 2016 +0900
sys/vfs/hammer: Fix wrong comment and unnecessary argument
B-Tree code isn't aware of PFS (or other HAMMER record types built
on to
commit af80276762ada3b1276a56f7b42307ebfaec5b6b
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Aug 18 23:25:11 2016 +0900
sys/vfs/hammer: Remove unused HAMMER_IOC_PFS_XXX macros
These were added in 5fa5c92f in 2008, but never used.
Summary of changes:
s
commit 3a47b32224d0d1d9491f023413b794b4c7620013
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Aug 21 11:02:57 2016 +0900
sbin/hammer: Drop bug fix by 750beaef after 9376f71b
Since ondisk PFS data is no longer degraded or updated,
a bug fix made by 75
commit 72e23ddf80e56ca3257f04d6caf7021ae64f9416
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Aug 21 15:07:30 2016 +0900
sbin/hammer: Remove AssertOnFailure assertion in blockmap lookup
This isn't necessary as blockmap_lookup() callers are going to
commit dce7ae2c730e5e9d4b2438f6dffd053eef34c056
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Aug 21 21:16:19 2016 +0900
sbin/hammer: Add print_blockmap() for common blockmap output format
This is for hammer blockmap,checkmap,show,show-undo co
commit 3f55980b1eebeac6906ca471818c5e0544982f80
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Aug 22 21:23:32 2016 +0900
sbin/hammer: Make sizetostr() print B if <1KB
Summary of changes:
sbin/hammer/misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
commit 4f82a29aabd65cb99b954188c910fb13fd5c42c4
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Tue Aug 23 23:48:35 2016 +0900
lib/libhammer: Fix segmentation fault by null dereference
If libhammer cares about mountpoints of hammer and null,
it needs to care
commit 8a05145d7e3d50e409cfa0d41d0d3b2c29ecef2a
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Wed Aug 24 19:54:31 2016 +0900
sbin/hammer: Sync dce7ae2c format with zone statistics
Add "zone #" and change "next_tid" to "vol0_next_tid"
commit 6c7ae023122453a991a69a6ffa9c457d02a8552e
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Sep 2 21:15:09 2016 +0900
sbin/hammer: Remove hammer_cache_set()
Summary of changes:
sbin/hammer/cache.c | 9 ++---
sbin/hammer/hammer_util.h | 1 -
2 files chan
commit 4c18cb161b29d3f9e9aecdc19b86dde4fd997703
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Sep 2 21:37:25 2016 +0900
sbin/hammer: Make blockmap.c/misc.c include hammer_util.h (not hammer.h)
If a file is to be linked from non /sbin/hammer (i.e. /sbin/newfs_
commit 6d52f9f2b73b3feb44d1e47915cbdd9ee0e345c9
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Sep 2 21:48:15 2016 +0900
sbin/hammer: Move pidfile_loc[] to hammer.h
It's more appropriate to define this in hammer.h than hammer_util.h,
as this string is onl
commit 0e777cf7d155dda39e738bb50e58d8dc61507ad4
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Sep 2 22:10:33 2016 +0900
sbin/hammer: Always call check_volume()
Calling ioctl(DIOCGPART) isn't any overhead compared to i/o workload,
so always just retrie
commit 684002f258d19ff41c5e29f6ebc20560340ab598
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Fri Sep 2 23:08:45 2016 +0900
sbin/hammer: Cleanup struct volume_info
Mention vol_free_off,beg are initialized only by /sbin/newfs_hammer.
(i.e. these two are
commit 9221b5983f165c1cf10be28424138e02a1788207
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Sep 3 12:19:32 2016 +0900
sbin/hammer: Add assert_volume_offset()
It's invalid to call functions that are based on vol_free_off/end
values unless these are pr
commit 138468249e4de02a78089ba5cad461b940b16028
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Sep 3 11:58:45 2016 +0900
sbin/hammer: Use int64_t for zone stats blocks/items/used
Summary of changes:
sbin/hammer/hammer_util.h | 8
sbin/hammer/misc.c
commit 27242c33963bfcfd2b1ffb731fe2a89684a98537
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Sep 3 12:07:14 2016 +0900
sbin/hammer: Don't use hard-coded 1024 for # of layer1 per volume
Summary of changes:
sbin/hammer/misc.c | 2 +-
1 file changed, 1 insertion
commit 77f7bc0a0ce69f98f64c7b94e13e0b0d87ba4069
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Sep 3 19:53:02 2016 +0900
sys/vfs/hammer: Integrate ondisk reserved fields and unused fields
In addition to the previous commit, we could reassign the whole
num
commit 4d8a23489695ade9247e1595bf006757f6a9ea7d
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Sep 4 00:11:44 2016 +0900
sbin/newfs_hammer: Cleanup
Summary of changes:
sbin/newfs_hammer/newfs_hammer.c | 8 +---
sys/vfs/hammer/hammer_btree.h| 2 +-
2 files c
commit 31222e7c2720297fef432918f853b83ea91287db
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Sep 3 21:38:47 2016 +0900
sbin/hammer: Remove unused zone field in struct zone_stat
Zone statistics' init api returns a pointer to calloc'd array
where an
commit c3cfd6ce08cb747fafb51f0719dce5883456e62d
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sat Sep 3 21:59:53 2016 +0900
sbin/newfs_hammer: Don't bother initializing reserved ondisk field
pfsd is bzero'd, so no need to explicitly zero clear a reserved
commit d8fe5ece28a3e0a81946b00e32c958101b2a1233
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Sep 5 22:40:18 2016 +0900
sys/vfs/hammer: Add inline CRC functions for mrec head
Summary of changes:
sys/vfs/hammer/hammer.h| 18 ++
sys/vfs/
commit 4564396607ddbe09b2e35670c46054c9222300d4
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Sep 5 23:45:34 2016 +0900
sbin/hammer: Use inline CRC functions in userspace
Remove crc32 prototypes in sbin/hammer/hammer_util.h.
Remove hammer_crc_test_leaf()
commit 8856c8bd6cbcd6c533c080374ed9303015471d17
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Mon Sep 5 23:34:53 2016 +0900
sys/vfs/hammer: Add sys/vfs/hammer/hammer_crc.h
HAMMER's CRC functions currently defined in sys/vfs/hammer/hammer.h
could be e
commit 75e4d787861504e083f572d48305f9f2b450d270
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Tue Sep 6 19:56:44 2016 +0900
sys/vfs/hammer: Change HAMMER_VOLUME_NUMBER_XXX macros to inline functions
I've added these macros in 78249d7f in 2015 for a b
commit 21000e424c0824b5ee3445a3eea54959ee3c3b39
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Sep 1 20:27:45 2016 +0900
sbin/hammer: Make struct volume_info::name const
Summary of changes:
sbin/hammer/hammer_util.h | 4 ++--
1 file changed, 2 insertions(+), 2 del
commit 7603683a7d0f9b3ed823c273b74d9279904f82e2
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Thu Sep 1 20:38:36 2016 +0900
sbin/hammer: Make use of struct buffer_info::cache at offset 0
No need to hold a pointer to each other.
Summary of changes:
sbin/hammer/c
commit 961b3eecbd8f482aa0ee049c5086153190dfe532
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Sep 4 20:45:20 2016 +0900
sys/vfs/hammer: Add inline CRC functions for layer1/2
Summary of changes:
sys/vfs/hammer/hammer.h | 36 ++
sys/vfs/
commit 2252fcf8fc2686e284149aca36affe101d29dfc7
Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com>
Date: Sun Sep 4 13:24:16 2016 +0900
sbin/hammer: Use HAMMER_ENTRY_NAME_OFF
Summary of changes:
sbin/hammer/cmd_recover.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
601 - 700 of 1622 matches
Mail list logo