git: sbin/hammer: Make hammer history support per-path @offset, length

2015-09-25 Thread Tomohiro Kusumi
commit 8907a51b7b8f1eb4a5713beec0cf055e9b6ded31 Author: Tomohiro Kusumi Date: Mon Sep 14 08:00:26 2015 +0900 sbin/hammer: Make hammer history support per-path @offset,length This commit allows each arg of the hammer history to take @offset,length

git: sbin/hammer: Refactor get_elm_flags()/print_btree_elm() [1/2]

2015-09-25 Thread Tomohiro Kusumi
commit a81bcfad06141f57ba996f86c2265bffcfca440c Author: Tomohiro Kusumi Date: Tue Sep 22 17:21:10 2015 +0900 sbin/hammer: Refactor get_elm_flags()/print_btree_elm() [1/2] These two functions have way too many arguments and some of them are redundant

git: sbin/newfs_hammer: Remove a local header newfs_hammer.h

2015-09-25 Thread Tomohiro Kusumi
commit 32d6a9543651e9dbdf9ec92c0044bc5078b7ed16 Author: Tomohiro Kusumi Date: Fri Sep 18 22:55:04 2015 +0900 sbin/newfs_hammer: Remove a local header newfs_hammer.h newfs_hammer.c is the only file that needs newfs_hammer.h, and all it does is

git: sys/vfs/hammer: Remove exceptional zone selection case

2015-09-25 Thread Tomohiro Kusumi
commit 97358992e1db75a4e2989baafd87c0fb76ad2a31 Author: Tomohiro Kusumi Date: Sun Sep 6 22:00:07 2015 +0900 sys/vfs/hammer: Remove exceptional zone selection case hammer_alloc_data() has an unusual and exceptional way to determine data zone (i.e.

git: sbin/hammer: Fix minor memory leak

2015-09-25 Thread Tomohiro Kusumi
commit 10de502682d08b4da1a92aa2113b58ee4f0cfad3 Author: Tomohiro Kusumi Date: Sun Sep 20 16:33:03 2015 +0900 sbin/hammer: Fix minor memory leak Summary of changes: sbin/hammer/cmd_blockmap.c | 1 + sbin/hammer/cmd_show.c | 1 + 2 files changed, 2

git: sbin/hammer: Change hammer show's printf format for elm base

2015-09-25 Thread Tomohiro Kusumi
commit d9930283d4e41c9e04dd9389cf84eb0c4d9cbe47 Author: Tomohiro Kusumi Date: Wed Sep 23 00:52:56 2015 +0900 sbin/hammer: Change hammer show's printf format for elm base This commit changes printf format for struct hammer_base_elm fields. It doesn't

git: sys/vfs/hammer: Remove obsolete macro HAMMER_HEAD|TAIL_ONDISK_SIZE

2015-09-25 Thread Tomohiro Kusumi
commit d4576900f7e6a44c8839bac8b4d6233f889c055a Author: Tomohiro Kusumi Date: Sat Sep 12 23:17:07 2015 +0900 sys/vfs/hammer: Remove obsolete macro HAMMER_HEAD|TAIL_ONDISK_SIZE These macros are no longer used and not necessary. These are only

git: sys/vfs/hammer: Fix wrong comment on ambiguous variable name

2015-09-25 Thread Tomohiro Kusumi
commit 5b5dd5b40a6d2dda14e252ea4f67c5fa86cb95c7 Author: Tomohiro Kusumi Date: Sat Sep 19 15:28:34 2015 +0900 sys/vfs/hammer: Fix wrong comment on ambiguous variable name hammer_volume_ondisk::vol_name[] is a filesystem label string specified by

git: sbin/hammer: Sync hammer usage() with hammer(8) manpage

2015-09-25 Thread Tomohiro Kusumi
commit dda14c079a81b731d4d1997ebcce9874aadb7c07 Author: Tomohiro Kusumi Date: Tue Sep 15 05:20:03 2015 +0900 sbin/hammer: Sync hammer usage() with hammer(8) manpage A function usage() in sbin/hammer/hammer.c is missing several options that exist in

git: sbin/hammer: Refactor get_elm_flags()/print_btree_elm() [2/2]

2015-09-25 Thread Tomohiro Kusumi
commit 400b9ca8e387da27536d11124df3bd011aac75ca Author: Tomohiro Kusumi Date: Tue Sep 22 17:38:50 2015 +0900 sbin/hammer: Refactor get_elm_flags()/print_btree_elm() [2/2] Call get_elm_flags() from print_btree_elm(). The elm flag is used and only

git: sys/vfs/hammer: Rename HMNT_EXPORTREQ to HMNT_RESERVED

2015-09-25 Thread Tomohiro Kusumi
commit e2a9b402fba6588052ea681c52888d7ba253c97a Author: Tomohiro Kusumi Date: Thu Sep 17 07:04:05 2015 +0900 sys/vfs/hammer: Rename HMNT_EXPORTREQ to HMNT_RESERVED This was added in 513ca7d7 for NFS support but never used. Change it (0x0004) to

git: sys/vfs/hammer: Remove unnecessary header includes

2015-09-25 Thread Tomohiro Kusumi
commit 8fc055b2e80aa7c8dd4806b712fcb44e7e445984 Author: Tomohiro Kusumi Date: Mon Sep 7 04:12:53 2015 +0900 sys/vfs/hammer: Remove unnecessary header includes Summary of changes: sys/vfs/hammer/hammer_io.c | 1 - sys/vfs/hammer/hammer_vfsops.c | 1 -

git: sbin/hammer: Add ifndef/define/endif for headers

2015-09-25 Thread Tomohiro Kusumi
commit a74dc2505e953f1ecc2785705ab82cdd8045b81b Author: Tomohiro Kusumi Date: Sun Sep 6 03:50:39 2015 +0900 sbin/hammer: Add ifndef/define/endif for headers Some headers are missing this, so add it to those. Summary of changes: sbin/hammer/hammer.h

git: sys/vfs/hammer: Remove prototype of not existing function

2015-09-25 Thread Tomohiro Kusumi
commit 7ff55be9fc5f3aeb0c701de252efa020f3af854e Author: Tomohiro Kusumi Date: Mon Sep 7 22:21:03 2015 +0900 sys/vfs/hammer: Remove prototype of not existing function Summary of changes: sys/vfs/hammer/hammer.h | 1 - 1 file changed, 1 deletion(-)

git: sys/vfs/hammer: Fix possible race on volume-del

2015-09-25 Thread Tomohiro Kusumi
commit b6abf391331196a9bc858db937aa8a839ea0fedb Author: Tomohiro Kusumi Date: Mon Sep 7 23:11:29 2015 +0900 sys/vfs/hammer: Fix possible race on volume-del hmp->volume_to_remove should get reset to -1 only after the volume is successfully removed.

git: sbin/hammer: Update hammer usage()

2015-09-25 Thread Tomohiro Kusumi
commit 7b431e68ada91d94bb1ad297ddf6405feda27b9e Author: Tomohiro Kusumi Date: Tue Sep 15 00:48:44 2015 +0900 sbin/hammer: Update hammer usage() Add one line that was missing in 3f760d89. Summary of changes: sbin/hammer/hammer.c | 1 + 1 file changed,

git: sys/vfs/hammer: Change hkprintf() to macro and add variants [2/2]

2015-09-25 Thread Tomohiro Kusumi
commit 11605a5c206b366f3cadbb9cfb43beb1f764b008 Author: Tomohiro Kusumi Date: Wed Sep 16 07:11:42 2015 +0900 sys/vfs/hammer: Change hkprintf() to macro and add variants [2/2] This commit does the following. 1. Add macros hdkprintf() and

git: sbin/hammer: Make a global variable static

2015-09-25 Thread Tomohiro Kusumi
commit c6a47f25e0a1d9df93787e808c77dfc6cd24e84c Author: Tomohiro Kusumi Date: Mon Sep 14 01:04:08 2015 +0900 sbin/hammer: Make a global variable static Summary of changes: sbin/hammer/cmd_config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

git: sbin/newfs_hammer: Remove global variable Eflag

2015-09-25 Thread Tomohiro Kusumi
commit 1a4aebcce9ba17f45b579e0f7aa46415357831b3 Author: Tomohiro Kusumi Date: Sun Sep 20 13:57:19 2015 +0900 sbin/newfs_hammer: Remove global variable Eflag Eflag could be a local variable after ff8644cb merged two check_volume() into one. Summary

git: sys/vfs/hammer: Adjust raw kprintfs using hkprintf variants

2015-09-25 Thread Tomohiro Kusumi
commit 33234d1463ac31b11dd8753fedbc82520b905a07 Author: Tomohiro Kusumi Date: Sun Sep 13 08:35:27 2015 +0900 sys/vfs/hammer: Adjust raw kprintfs using hkprintf variants This is part3 of hkprintf related after the following two. sys/vfs/hammer:

git: sbin/hammer: Cleanup header includes regarding hammer_util.h

2015-09-25 Thread Tomohiro Kusumi
commit 9c8b568e30b6c7192b23864e77db8d3c2a084a58 Author: Tomohiro Kusumi Date: Tue Sep 8 00:43:34 2015 +0900 sbin/hammer: Cleanup header includes regarding hammer_util.h Summary of changes: sbin/hammer/cache.c | 9 -

git: sys/vfs/hammer: Remove HAMMER_BUFFER_BITS

2015-09-25 Thread Tomohiro Kusumi
commit 90d23351f480e74e9fc01ee123fd318b45768d31 Author: Tomohiro Kusumi Date: Sun Sep 6 20:17:33 2015 +0900 sys/vfs/hammer: Remove HAMMER_BUFFER_BITS This macro is only used by compile time sanity check, and the check is way too obvious that it can

git: sbin/hammer: Cleanup search directive structure

2015-09-25 Thread Tomohiro Kusumi
commit 47fc33819c3bf4fc72d6d50cdaff5801cdf8735f Author: Tomohiro Kusumi Date: Mon Sep 21 19:26:43 2015 +0900 sbin/hammer: Cleanup search directive structure Remove btree elm fields from hammer show's search directive struct btree_search, and embed

git: sbin/hammer: Add B-Tree helper functions and cleanups

2015-09-25 Thread Tomohiro Kusumi
commit f29b8e39039188cff2bd4e78ac1969c1e33f8d35 Author: Tomohiro Kusumi Date: Mon Sep 21 14:28:07 2015 +0900 sbin/hammer: Add B-Tree helper functions and cleanups and some cleanups that make no functional changes. This makes B-Tree

git: sys/vfs/hammer: Remove #if 1 that no longer has any meaning

2015-09-25 Thread Tomohiro Kusumi
commit af508d629df88807ac98683dfbbf934c08eeb80a Author: Tomohiro Kusumi Date: Sun Sep 13 08:48:53 2015 +0900 sys/vfs/hammer: Remove #if 1 that no longer has any meaning Summary of changes: sys/vfs/hammer/hammer_inode.c | 2 -- 1 file changed, 2 deletions(-)

git: sbin/hammer: Fix comment on how to compile sbin/hammer/test_dupkey.c

2015-09-25 Thread Tomohiro Kusumi
commit f970d47b54fcbac0b9cbc7b3d212f5c727dc43e2 Author: Tomohiro Kusumi Date: Tue Sep 8 01:18:28 2015 +0900 sbin/hammer: Fix comment on how to compile sbin/hammer/test_dupkey.c This comment was never updated after icrc32.c was added. Summary of

git: sys/vfs/hammer: Add HAMMER_DIR_INODE_LOCALIZATION()

2015-09-25 Thread Tomohiro Kusumi
commit ed959c01b7b0103165800149372d074b7a38e9c5 Author: Tomohiro Kusumi Date: Sun Sep 13 00:08:15 2015 +0900 sys/vfs/hammer: Add HAMMER_DIR_INODE_LOCALIZATION() Move ondisk definition part of hammer_dir_localization() to

git: sys/vfs/hammer: Change hkprintf() to macro and add variants [1/2]

2015-09-25 Thread Tomohiro Kusumi
commit d053aa8aea2cf66699944def54faed89c76881b3 Author: Tomohiro Kusumi Date: Sat Sep 12 03:06:24 2015 +0900 sys/vfs/hammer: Change hkprintf() to macro and add variants [1/2] This commit does the following. 1. Remove an inline function

git: sys/vfs/hammer: Remove header includes from hammer.h

2015-09-25 Thread Tomohiro Kusumi
commit 97fb61c0f96a20c9cf79f0e5d9b40c181b99e88a Author: Tomohiro Kusumi Date: Mon Sep 7 02:48:34 2015 +0900 sys/vfs/hammer: Remove header includes from hammer.h Remove #include #include #include #include from

git: sbin/hammer: Remove prototype of not existing function

2015-09-25 Thread Tomohiro Kusumi
commit 0e5cdae2b2672c1967ad4b48c1696d73ef904083 Author: Tomohiro Kusumi Date: Tue Sep 15 00:49:31 2015 +0900 sbin/hammer: Remove prototype of not existing function Summary of changes: sbin/hammer/hammer.h | 1 - 1 file changed, 1 deletion(-)

git: sbin/hammer: Fix and adjust hammer show's matched character '*'

2015-09-25 Thread Tomohiro Kusumi
commit dc75e798e8d40c31fb4085cd5a63cb9cf3d42b4d Author: Tomohiro Kusumi Date: Tue Sep 22 00:00:30 2015 +0900 sbin/hammer: Fix and adjust hammer show's matched character '*' Remove unnecessary space before '*'. Adjust position of '*' for matched

git: sys/vfs/hammer: Fix incomplete mountctl(2) vop behavior

2015-09-25 Thread Tomohiro Kusumi
commit 87b8f936e9f58031ae638e720361f548bcb9e121 Author: Tomohiro Kusumi Date: Thu Sep 17 19:31:56 2015 +0900 sys/vfs/hammer: Fix incomplete mountctl(2) vop behavior mount(8) is unable to print nomirror mount option while other two (nohistory,

git: hammer: Update hammer(5) manpage

2015-09-25 Thread Tomohiro Kusumi
commit 242bc30537713596d9b695845057211b66b183ea Author: Tomohiro Kusumi Date: Sat Sep 19 08:41:41 2015 +0900 hammer: Update hammer(5) manpage Update links to publication by dillon@ in 2008 mneumann@ in 2010 Summary of changes:

git: getconf(1): Add _POSIX2_PBS*.

2015-09-25 Thread Sascha Wildner
commit 8b400d087bb2a62d892b93802bae1119af304bb2 Author: Sascha Wildner Date: Thu Sep 24 14:50:08 2015 +0200 getconf(1): Add _POSIX2_PBS*. Summary of changes: usr.bin/getconf/sysconf.gperf | 6 ++ 1 file changed, 6 insertions(+)

git: sys/vfs/hammer: Add hpanic() [1/2]

2015-09-25 Thread Tomohiro Kusumi
commit 903fdd054164f0bbbaa7585799cb5a2fd380159b Author: Tomohiro Kusumi Date: Sat Sep 12 07:14:03 2015 +0900 sys/vfs/hammer: Add hpanic() [1/2] This commit does the following. 1. Add a macro hpanic() which is a wrapper for panic() that

git: sbin/mount_hammer: Add CFLAGS+= -I${.CURDIR}/../../sys

2015-09-25 Thread Tomohiro Kusumi
commit c96fef7005d4b8f620b747592ab7c26e7125b8c6 Author: Tomohiro Kusumi Date: Fri Sep 18 07:18:14 2015 +0900 sbin/mount_hammer: Add CFLAGS+= -I${.CURDIR}/../../sys just like sbin/hammer and sbin/newfs_hammer. Summary of changes:

git: hammer: Cleanup hammer(8) manpage

2015-09-25 Thread Tomohiro Kusumi
commit 8add79747efc09a52a8ce112af942deb7b79d05f Author: Tomohiro Kusumi Date: Mon Sep 21 20:59:29 2015 +0900 hammer: Cleanup hammer(8) manpage hammer(8) uses "PFS" but not "pfs" unless "pfs" appears in a path. Summary of changes: sbin/hammer/hammer.8

git: sbin/hammer: Cleanups

2015-09-25 Thread Tomohiro Kusumi
commit 6aa149035039753b56e6e1af66a3b26f7d5e3833 Author: Tomohiro Kusumi Date: Tue Sep 22 23:04:46 2015 +0900 sbin/hammer: Cleanups data->inode.obj_type (ot=%02x) should equal that of elm base. Summary of changes: sbin/hammer/cmd_show.c | 13

git: sys/vfs/hammer: Remove ambiguous comment

2015-09-25 Thread Tomohiro Kusumi
commit 93775b63de3727ae32740549916dd319f8375942 Author: Tomohiro Kusumi Date: Sat Sep 19 15:47:03 2015 +0900 sys/vfs/hammer: Remove ambiguous comment Upper 16 bits of val[1] is always 0 (which equals pfs id of pfs0) regardless of how many pfs there

git: sbin/hammer: Remove -DALIST_NO_DEBUG

2015-09-25 Thread Tomohiro Kusumi
commit 45032ebd0f566b7c8e28402c3d25e3fd42c48c63 Author: Tomohiro Kusumi Date: Fri Sep 18 06:44:53 2015 +0900 sbin/hammer: Remove -DALIST_NO_DEBUG -DALIST_NO_DEBUG is no longer necessary. sys/kern/subr_alist.c was only used in the early stage

git: sbin/hammer: Cleanup header includes regarding hammer.h

2015-09-25 Thread Tomohiro Kusumi
commit e52ee71ecf0ebb43c1b7e7eb5e6aca81297f957a Author: Tomohiro Kusumi Date: Mon Sep 7 23:29:25 2015 +0900 sbin/hammer: Cleanup header includes regarding hammer.h Summary of changes: sbin/hammer/cmd_config.c | 2 -- sbin/hammer/cmd_history.c | 2 --

git: sbin/hammer: Separate read/write inode ops on hammer *stats

2015-09-25 Thread Tomohiro Kusumi
commit 8101aaccc74cb8ef6411c8d102db3f07a79789be Author: Tomohiro Kusumi Date: Mon Sep 14 02:06:37 2015 +0900 sbin/hammer: Separate read/write inode ops on hammer *stats It should show read and write inode ops separately since the original hammer

git: sbin/hammer: Remove obsolete option -s

2015-09-25 Thread Tomohiro Kusumi
commit fa581c8a84acefe523851b28fa06b7ae72c8f485 Author: Tomohiro Kusumi Date: Tue Sep 15 00:52:16 2015 +0900 sbin/hammer: Remove obsolete option -s -s was added in da804f11 in the early stage of hammer devel but no longer used. Using -s does nothing

git: sys/vfs/hammer: Fix error message when volumes are already mounted

2015-09-25 Thread Tomohiro Kusumi
commit 9d756529af421a4da46c2bc1340bde2c1d535602 Author: Tomohiro Kusumi Date: Wed Sep 16 07:10:16 2015 +0900 sys/vfs/hammer: Fix error message when volumes are already mounted It should show volumes are mounted instead of "No root volume" when the

git: sys/vfs/hammer: Conform to style(9)

2015-09-25 Thread Tomohiro Kusumi
commit c9ee2a06c472e7559aa4280647d975f472f61272 Author: Tomohiro Kusumi Date: Thu Sep 17 07:53:46 2015 +0900 sys/vfs/hammer: Conform to style(9) Remove unnecessary {} for a switch case element. Summary of changes: sys/vfs/hammer/hammer_vnops.c | 2 --

git: sbin/hammer: Fix and change hammer show behavior when only lo is used

2015-09-25 Thread Tomohiro Kusumi
commit 34909d8efe3ec8b36ce26db951ee1812b346476b Author: Tomohiro Kusumi Date: Mon Sep 21 19:34:10 2015 +0900 sbin/hammer: Fix and change hammer show behavior when only lo is used 913b6663 has expanded hammer show's B-Tree directive from lo:objid

git: sbin/hammer: Make B-Tree walk a bit more effective

2015-09-25 Thread Tomohiro Kusumi
commit f1cf4f649f3abb55d93c4badf724ac78b272a3e1 Author: Tomohiro Kusumi Date: Sun Sep 20 16:53:25 2015 +0900 sbin/hammer: Make B-Tree walk a bit more effective hammer show recursively calls print_btree_node() when node type is internal. If the node

git: hammer: Print "B-Tree" (conform to hammer specification)

2015-09-25 Thread Tomohiro Kusumi
commit 78c4be8325e7e06b512f32fb51bcd9339533fcf5 Author: Tomohiro Kusumi Date: Sat Sep 19 13:35:39 2015 +0900 hammer: Print "B-Tree" (conform to hammer specification) Hammer specification, manpage, comments, etc mostly use "B-Tree" instead of "btree"

git: sys/vfs/hammer: Fix cppcheck warning

2015-09-25 Thread Tomohiro Kusumi
commit 84365e818711acf89946aa23e2a308548b89da76 Author: Tomohiro Kusumi Date: Wed Sep 23 01:25:14 2015 +0900 sys/vfs/hammer: Fix cppcheck warning Spotted-by: swildner Summary of changes: sys/vfs/hammer/hammer_inode.c | 1 - 1 file changed, 1

git: sys/vfs/hammer: Adjust and cleanup _KERNEL

2015-09-25 Thread Tomohiro Kusumi
commit cbf26eb24be3dfb91f64ba606722b48db875baf7 Author: Tomohiro Kusumi Date: Sun Sep 6 04:47:16 2015 +0900 sys/vfs/hammer: Adjust and cleanup _KERNEL Remove no longer necessary _KERNEL that was originally added for usr.bin/fstat/hammer.c to include

git: sys/vfs/hammer: Erase btype of a new boundary on internal split

2015-09-25 Thread Tomohiro Kusumi
commit b6361ed8756a5631fde2f9e5e719b69343f57759 Author: Tomohiro Kusumi Date: Sat Sep 5 23:12:18 2015 +0900 sys/vfs/hammer: Erase btype of a new boundary on internal split It's more sane to erase btype of RBN of the original node on internal split

git: sbin/mount_hammer: Minor fixes and cleanups

2015-09-25 Thread Tomohiro Kusumi
commit b519f4e8d802da6eaba0723af1d11720fa0ca698 Author: Tomohiro Kusumi Date: Thu Sep 24 21:18:29 2015 +0900 sbin/mount_hammer: Minor fixes and cleanups Summary of changes: sbin/mount_hammer/mount_hammer.c | 41 1 file