git: sys/vfs/hammer: Fix wrong function name in kprintf

2015-08-22 Thread Tomohiro Kusumi
commit dbd78d6a32d4a8d6699808d735b13175d9d417b0 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Aug 19 19:05:09 2015 +0900 sys/vfs/hammer: Fix wrong function name in kprintf Use the right name. Allocating tid isn't always start of transaction. Summary of changes

git: sbin/newfs_hammer: Fix minor memory leak

2015-08-22 Thread Tomohiro Kusumi
commit 4eec2c55b32098a44caf92c7f8cb41096a15 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Aug 19 21:03:13 2015 +0900 sbin/newfs_hammer: Fix minor memory leak vol-fd is supposed to be already opened by setup_volume() by the time check_volume(vol) is called

git: sys/vfs/hammer: Minor fix on volume format on volume-add

2015-08-22 Thread Tomohiro Kusumi
commit 2150c2aabc03ab39e553690ee7780cb85de489ae Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Aug 19 23:58:05 2015 +0900 sys/vfs/hammer: Minor fix on volume format on volume-add It's better to just copy volume relative offset from the existing root volume than

git: sys/vfs/hammer: Check ronly when overwriting volume header

2015-08-22 Thread Tomohiro Kusumi
commit 0b818f293c44a0b45af4fa6aaae7a6b80baafa3d Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Aug 18 19:11:04 2015 +0900 sys/vfs/hammer: Check ronly when overwriting volume header Check readonly mount before overwriting volume header with non-NULL data on load

git: sys/vfs/hammer: Remove obsolete code and comments

2015-08-22 Thread Tomohiro Kusumi
commit 1bcc92995aeb57aa1f0de822a4d584645a2db2b5 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Aug 18 20:32:28 2015 +0900 sys/vfs/hammer: Remove obsolete code and comments from very early stage of hammer development. Summary of changes: sys/vfs/hammer/hammer.h

git: sys/vfs/hammer: Use HAMMER_OBJID_ROOT for root inode#

2015-08-22 Thread Tomohiro Kusumi
commit 783fb17086efccfde2542435b9b2162fb3a48550 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Aug 18 20:25:04 2015 +0900 sys/vfs/hammer: Use HAMMER_OBJID_ROOT for root inode# instead of hardcoded 1. Summary of changes: sys/vfs/hammer/hammer_vfsops.c | 4 ++-- 1

git: sbin/newfs_hammer: Explicitly tell which volume is root volume

2015-08-22 Thread Tomohiro Kusumi
commit dae8f18602e68e4dd2d96ff21cf7447faf0c10c7 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Aug 20 01:13:48 2015 +0900 sbin/newfs_hammer: Explicitly tell which volume is root volume hammer volume-del says Cannot remove root-volume if one tries to remove

git: sys/vfs/hammer: Adjust hammer_debug_general

2015-08-22 Thread Tomohiro Kusumi
commit 4af7f53747c5cfc504b9ec89242b7a195fbfb933 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Aug 20 23:46:56 2015 +0900 sys/vfs/hammer: Adjust hammer_debug_general Change hammer_debug_general in hammer_blockmap_getfree() to 0x4000 which is the same value

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

2015-08-22 Thread Tomohiro Kusumi
commit 26748b87a409b0fc2362f8ba12f5e78e6abe28d9 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Aug 22 16:59:11 2015 +0900 sys/vfs/hammer: Add hammer_move_node() Procedures to move internal and leaf node are basically the same. Also sync some comments between

git: sys/vfs/hammer: Don't repeat layer1 blockmap check of volume-to-remove

2015-08-22 Thread Tomohiro Kusumi
commit ff2ee76c43209cda267526f3b460f119e6d6070a Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Fri Aug 21 21:12:06 2015 +0900 sys/vfs/hammer: Don't repeat layer1 blockmap check of volume-to-remove hammer's blockmap allocator can simply skip the whole volume without

git: sys/vfs/hammer: Remove unnecessary error check

2015-08-22 Thread Tomohiro Kusumi
commit bcffb64741cf2ddc5bfe06950d5093977925cf5a Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Fri Aug 21 21:13:05 2015 +0900 sys/vfs/hammer: Remove unnecessary error check error is always ==0 at this point. Summary of changes: sys/vfs/hammer/hammer_reblock.c | 2 -- 1

git: sys/vfs/hammer: Don't try to reblock everything on volume-del

2015-08-22 Thread Tomohiro Kusumi
commit 7ef2d7b30fef99b5d4821a94f0ccc129e03af494 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Fri Aug 21 21:13:40 2015 +0900 sys/vfs/hammer: Don't try to reblock everything on volume-del Add volume# option to reblock ioctl and use that on hammer volume-del instead

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

2015-08-22 Thread Tomohiro Kusumi
commit 8bae937e4f72c493411d3172275ab7d45f6a87da Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Aug 18 22:08:05 2015 +0900 sys/vfs/hammer: Add hammer_flush_dirty() Summary of changes: sys/vfs/hammer/hammer.h | 1 + sys/vfs/hammer/hammer_flusher.c | 28

git: sbin/hammer: Merge check_volume()

2015-08-22 Thread Tomohiro Kusumi
commit ff8644cb8ae2bc492a6846f6d3fff31f9ffedcb4 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Aug 19 21:31:40 2015 +0900 sbin/hammer: Merge check_volume() There are two check_volume() that basically do the same. The one in sbin/hammer/cmd_volume.c is copied from

git: sbin/hammer: Print total bytes of reblocked nodes

2015-08-22 Thread Tomohiro Kusumi
commit 3ced8577304fc3265633851c1a06443da67a04f6 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Aug 22 13:01:08 2015 +0900 sbin/hammer: Print total bytes of reblocked nodes just like it shows both data elements and data bytes in the next two lines. btree

git: sbin/hammer: Cleanup pwrite(2) wrapper

2015-08-22 Thread Tomohiro Kusumi
commit 4dac77b248d4c62e32c036bec94a2216ad71e9b3 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Aug 20 19:22:42 2015 +0900 sbin/hammer: Cleanup pwrite(2) wrapper Just make writehammerbuf() return 0 or -1 instead of void, just like readhammerbuf() returns 0 or -1

git: sbin/hammer: Cleanup hammer show

2015-08-22 Thread Tomohiro Kusumi
commit 6291ccf877a810d6bc24ab8da018e52075cb02f4 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Aug 20 19:22:06 2015 +0900 sbin/hammer: Cleanup hammer show Also change =%d to =B%d on error to clearly distinct from non-error case =%d%%. 'B' usually

git: sbin/hammer: Move two blockmap functions to hammer/blockmap.c

2015-08-22 Thread Tomohiro Kusumi
commit 86872a2a3e27f05d25085218854f44daa64b6171 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Aug 20 19:55:25 2015 +0900 sbin/hammer: Move two blockmap functions to hammer/blockmap.c from hammer/ondisk.c. See sys/vfs/hammer/hammer_blockmap.c for details

git: sbin/mount_hammer: Fix upper limit of volume num

2015-08-02 Thread Tomohiro Kusumi
commit 96c170df2bc8a81f46f726e2c432cb12020c8700 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Aug 2 14:32:15 2015 +0900 sbin/mount_hammer: Fix upper limit of volume num (ac - 1) is for the command arg which is in blkdevs format. info.nvolumes is the number

git: sys/vfs/hammer: Minor optimization on layer1/2 iteration

2015-08-02 Thread Tomohiro Kusumi
commit e333f527d47ee244914acd050921d17c6bd30a39 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Aug 1 06:03:27 2015 +0900 sys/vfs/hammer: Minor optimization on layer1/2 iteration Layer1 and layer2 metadata are clustered in each big-block, so use different buffers

git: sys/vfs/hammer: Fix wrong function name in kprintf

2015-08-02 Thread Tomohiro Kusumi
commit 5c82892ac2f3f18ac27927308e61d30949d2bcbc Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Jul 30 04:13:56 2015 +0900 sys/vfs/hammer: Fix wrong function name in kprintf Summary of changes: sys/vfs/hammer/hammer_volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

git: sbin/mount_hammer: Fix error messages

2015-08-02 Thread Tomohiro Kusumi
commit 331432f3a33b9b0ebca19311006c9e02615d1240 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Aug 2 14:38:37 2015 +0900 sbin/mount_hammer: Fix error messages It's possible that open(2) and signature check do not fail but mount(2) still fails possibly because

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

2015-08-02 Thread Tomohiro Kusumi
commit 896689698e9f9ee1ebb955a4dab38c5cc60b9990 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Jul 30 02:09:34 2015 +0900 sys/vfs/hammer: Add test_free_callback() Add test_free_callback() and remove dry run code from free_callback() which has been used for both

git: sys/vfs/hammer: Fix potential wrong error message

2015-08-02 Thread Tomohiro Kusumi
commit 5f1a07b6a288388a11300fc7d75b8d58096b479c Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Aug 2 15:41:27 2015 +0900 sys/vfs/hammer: Fix potential wrong error message It's not always because of volume not empty. Summary of changes: sys/vfs/hammer/hammer_volume.c

git: sys/vfs/hammer: Add cond to kprintf(\n); on volume-del

2015-08-02 Thread Tomohiro Kusumi
commit bcff22106fe938c8ecbd2191ebd1c0b5d2c37f14 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Jul 30 02:54:36 2015 +0900 sys/vfs/hammer: Add cond to kprintf(\n); on volume-del Should print \n only when count=5 otherwise it generates a blank line in dmesg

git: sys/vfs/hammer: Fix comment on localization

2015-08-02 Thread Tomohiro Kusumi
commit 813693fcff725f3b5cd53b336a14bdf6ab3d16bf Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Jul 30 20:16:12 2015 +0900 sys/vfs/hammer: Fix comment on localization Add missing tid. Summary of changes: sys/vfs/hammer/hammer_btree.h | 4 ++-- 1 file changed, 2

git: sbin/hammer: Use HAMMER_BUFSIZE

2015-07-28 Thread Tomohiro Kusumi
commit 180b1058733805886307ace79d16b8e649eb7270 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Jul 29 04:58:50 2015 +0900 sbin/hammer: Use HAMMER_BUFSIZE - Use HAMMER_BUFSIZE insteaf of 16KiB. Summary of changes: sbin/hammer/cmd_volume.c | 4 ++-- sbin

git: sys/vfs/hammer: Add missing assertion

2015-08-08 Thread Tomohiro Kusumi
commit a09c350254c21194a267c066033b923e4e897366 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Aug 5 23:48:38 2015 +0900 sys/vfs/hammer: Add missing assertion _hammer_bread() and _hammer_bnew() should be the same except for the isnew value. Summary of changes

git: sys/vfs/hammer: Cleanup volume format callback

2015-08-08 Thread Tomohiro Kusumi
commit 677e7a0554b536b63106e1bd19f1e81a70626894 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Aug 8 00:10:44 2015 +0900 sys/vfs/hammer: Cleanup volume format callback Apply the same code logic as volume free callback. No need to wait for ready-to-update

git: sys/vfs/hammer: Fix wrong big-block accounting

2015-08-08 Thread Tomohiro Kusumi
commit 991d87e426f93bf68acf8541a51f9e6fb13517fe Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Aug 6 02:46:58 2015 +0900 sys/vfs/hammer: Fix wrong big-block accounting hammer volume-add|del should not count zone4 big-blocks as a part of vol0_stat_bigblocks

git: sbin/hammer: Optimize freemap initialization

2015-08-08 Thread Tomohiro Kusumi
commit e39a061e84808edf2a4d2bd9f2cf202228ba69de Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Aug 8 01:03:37 2015 +0900 sbin/hammer: Optimize freemap initialization Bring in the way hammer_iterate_l1l2_entries() initializes layer1/2 to initialize_freemap

git: sys/vfs/hammer: Get volume lock on volume-list

2015-08-08 Thread Tomohiro Kusumi
commit ea4925421532ec6fd6b94eb6f21f5f015423ff2f Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Aug 4 19:32:41 2015 +0900 sys/vfs/hammer: Get volume lock on volume-list volume-add|del could be ongoing. Summary of changes: sys/vfs/hammer/hammer_volume.c | 9

git: sys/vfs/hammer: Don't reblock when volume to delete is empty

2015-08-08 Thread Tomohiro Kusumi
commit 1e94cea68de46fe62ada9e33cbf25441c2329200 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Aug 4 05:39:14 2015 +0900 sys/vfs/hammer: Don't reblock when volume to delete is empty hammer_ioc_volume_del() needs to reblock filesystem only when the volume hammer

git: sys/vfs/hammer: Make use of volume bitmap

2015-08-08 Thread Tomohiro Kusumi
commit 046789c4d11059356fc71836ddb86bc1821ce061 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Aug 4 19:29:14 2015 +0900 sys/vfs/hammer: Make use of volume bitmap Make use of macros for volume bitmaps that was added in the previous commit to fix mount issue

git: sbin/hammer: Fix inconsistent boot|mem area size

2015-08-08 Thread Tomohiro Kusumi
commit 6f3076aff64b3be9708413a7ac6363f653984bfc Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Fri Aug 7 04:20:36 2015 +0900 sbin/hammer: Fix inconsistent boot|mem area size Bring in the code that initializes BootAreaSize and MemAreaSize from newfs_hammer to hammer

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

2015-08-08 Thread Tomohiro Kusumi
commit 5185d7e14350cf040c5731edcbe186cf1216a7b3 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Aug 4 05:46:52 2015 +0900 sys/vfs/hammer: Add hammer_test_free_freemap() Add a wrapper for l1l2 iteration via test callback just like other l1l2 iterations do. Summary

git: sys/vfs/hammer: kprintf invalid header

2015-08-08 Thread Tomohiro Kusumi
commit 0be83d846afe96827714c1b56062f99a1d346bce Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Aug 8 03:40:16 2015 +0900 sys/vfs/hammer: kprintf invalid header volume-del'eted volume will show 8 0x00s. Summary of changes: sys/vfs/hammer/hammer_ondisk.c | 7

git: sys/vfs/hammer: Add error handling

2015-08-08 Thread Tomohiro Kusumi
commit 3d0e4c864ef2d1311ae76f046e5586c2d770bd35 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Aug 5 23:51:37 2015 +0900 sys/vfs/hammer: Add error handling Summary of changes: sys/vfs/hammer/hammer_blockmap.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

git: sbin/hammer: Make hammer blockmap print all blockmap offsets on -v

2015-08-08 Thread Tomohiro Kusumi
commit 2660aa2199258d0e51207f4b66fefd54afb4c1c9 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Mon Aug 3 20:00:59 2015 +0900 sbin/hammer: Make hammer blockmap print all blockmap offsets on -v Summary of changes: sbin/hammer/cmd_blockmap.c | 21 +++-- 1 file

git: sys/vfs/hammer: Don't repeat layer1 blockmap check for no reason

2015-08-08 Thread Tomohiro Kusumi
commit 0871ec5cd713b161a324e9a8e5f22cabe24ffaf7 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Aug 5 05:55:12 2015 +0900 sys/vfs/hammer: Don't repeat layer1 blockmap check for no reason When blockmap allocation/reservation finds no more space in the current layer1

git: sbin/hammer: Make hammer blockmap print crc on -v

2015-08-08 Thread Tomohiro Kusumi
commit 504ef4459bebce549155195508e2548b631b327e Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Aug 9 05:17:02 2015 +0900 sbin/hammer: Make hammer blockmap print crc on -v Summary of changes: sbin/hammer/cmd_blockmap.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion

git: sys/vfs/hammer: Fix mount issue after volume-del

2015-08-08 Thread Tomohiro Kusumi
commit 78249d7f7c218296742a9f9c46fa094704306a4d Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Mon Aug 3 20:01:48 2015 +0900 sys/vfs/hammer: Fix mount issue after volume-del When a volume other than the one with the max volume number is removed from filesystem

git: sbin/hammer: Cleanup zone statistics

2015-07-27 Thread Tomohiro Kusumi
commit ab34bb843beff761e7ca1daea5504c90100be9b3 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Jul 26 14:59:55 2015 +0900 sbin/hammer: Cleanup zone statistics - No functional changes, things should have been named this way. Summary of changes: sbin/hammer/misc.c

git: sys/vfs/hammer: Keep root node signature on root split

2015-07-27 Thread Tomohiro Kusumi
commit c461935cc9a3d110ed43ebd769c91338a06f04f9 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Mon Jul 27 03:43:10 2015 +0900 sys/vfs/hammer: Keep root node signature on root split - newfs_hammer sets a signature value for the root btree node so keep that signature

git: sbin/hammer: Cleanup headers

2015-07-27 Thread Tomohiro Kusumi
commit 92d85f08f37a624fbbbd647f1ec6d5daf5c09c36 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Jul 26 17:16:05 2015 +0900 sbin/hammer: Cleanup headers - Define struct softprune in hammer_util.h just like other hammer userspace structures are defined here

git: sbin/hammer: Fix hammer show output format

2015-07-27 Thread Tomohiro Kusumi
commit 08d797e2bae09396499d01babc8c2ae5e60457ee Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Mon Jul 27 01:19:45 2015 +0900 sbin/hammer: Fix hammer show output format - Sync with other formats. Summary of changes: sbin/hammer/cmd_show.c | 2 +- 1 file changed, 1

git: sys/vfs/hammer: Remove unused typedef

2015-07-21 Thread Tomohiro Kusumi
commit f03e909b8bcf64bc9f51330ab3b29fd577c24eb4 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Jul 21 19:34:00 2015 +0900 sys/vfs/hammer: Remove unused typedef - hammer_seq_t was only used in the early days of hammer. Summary of changes: sys/vfs/hammer/hammer_disk.h

git: sys/vfs/hammer: Fix comments

2015-07-21 Thread Tomohiro Kusumi
commit bf5394bef9710bb02dd4884a90cfca08408511f1 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Jul 21 19:34:28 2015 +0900 sys/vfs/hammer: Fix comments - Fix comments left unchanged in 1afb73cf. It seems the same comments are still effective with rbtree. Summary

git: sbin/hammer: Minor cleanups

2015-07-21 Thread Tomohiro Kusumi
commit 0decb3df295b1029e0625383a54a2b2dcf2ab015 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Jul 19 05:12:54 2015 +0900 sbin/hammer: Minor cleanups - Some minor cleanups. Summary of changes: sbin/hammer/ondisk.c | 20 +--- 1 file changed, 9

git: sbin/hammer: Fix hammer checkmap big-block offset

2015-07-21 Thread Tomohiro Kusumi
commit 5aa4f01c806dcff16568413cab9705ca6ae27d01 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Jul 21 03:45:36 2015 +0900 sbin/hammer: Fix hammer checkmap big-block offset - hammer checkmap wasn't showing the offset of big-block for each layer2 within a layer1

git: sbin/hammer: Fix fill info of hammer show

2015-07-21 Thread Tomohiro Kusumi
commit 6ee3d8b143dbc6bf3d517e4289b14f27222e8081 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Jul 19 06:44:02 2015 +0900 sbin/hammer: Fix fill info of hammer show - Printing big-block index within lower 60 bits (layer1/2 combined) is not that useful. It should

git: sbin/hammer: Make hammer blockmap print all blockmap offsets

2015-07-21 Thread Tomohiro Kusumi
commit e700eccf02586b3193a3352f4bb5e51a2c9e4a2b Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Mon Jul 20 05:30:07 2015 +0900 sbin/hammer: Make hammer blockmap print all blockmap offsets - Add phys_offset and first_offset, where phys_offset points to zone2 address

git: sbin/hammer: Cleanup AssertOnFailure assertions on blockmap lookup

2015-07-21 Thread Tomohiro Kusumi
commit 96755dea4347651ee885d03a6b141f3fcbb57558 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Jul 19 19:40:16 2015 +0900 sbin/hammer: Cleanup AssertOnFailure assertions on blockmap lookup - Since now that blockmap_lookup() has an unique 'error' value for each

git: sbin/hammer: Make hammer_parsedevs() initialize NumVolumes

2015-07-21 Thread Tomohiro Kusumi
commit 9c56653b43654fe05028e2411f6616b1b7d2d01f Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Mon Jul 20 00:33:36 2015 +0900 sbin/hammer: Make hammer_parsedevs() initialize NumVolumes - hammer_parsedevs() should initialize NumVolumes as well as initializing volumes

git: sbin/hammer: Make hammer show support zone statistics

2015-07-24 Thread Tomohiro Kusumi
commit e9976f43cdc0359bfbbecf8170aeaf345fe76235 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Fri Jul 24 05:35:50 2015 +0900 sbin/hammer: Make hammer show support zone statistics - Update zone statistics while iterating btree and print them after btree-walk is done

git: sbin/hammer: Make hammer checkmap support zone4

2015-07-24 Thread Tomohiro Kusumi
commit f858925654d59f990baf3c6d92d793ecb95bfb96 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Jul 25 02:23:30 2015 +0900 sbin/hammer: Make hammer checkmap support zone4 - It's kind of obvious that zone4 never fails on checkmap tests, but it was a missing zone

git: sbin/hammer: Enable AssertOnFailure on -d for hammer show/checkmap

2015-07-24 Thread Tomohiro Kusumi
commit db8d09c1b60b2dfdac4c22840cddfb7b131c9688 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Jul 25 04:37:04 2015 +0900 sbin/hammer: Enable AssertOnFailure on -d for hammer show/checkmap Summary of changes: sbin/hammer/cache.c| 2 +- sbin/hammer/cmd_blockmap.c | 2

git: sbin/hammer: Make hammer blockmap support zone statistics

2015-07-24 Thread Tomohiro Kusumi
commit 284b6ac2233b48babbf2e87b06195473e0681e93 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Jul 23 04:14:52 2015 +0900 sbin/hammer: Make hammer blockmap support zone statistics - Update zone statistics while iterating layer1/layer2 and print them after layer

git: sbin/hammer: Add functions for zone statistics

2015-07-24 Thread Tomohiro Kusumi
commit 020339d5a1bcb0721d0f4bffd6bd4042617f7af4 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Jul 22 04:15:06 2015 +0900 sbin/hammer: Add functions for zone statistics - Add functions to init/cleanup/add/print zone statistics and make hammer checkmap's existing

git: sbin/hammer: Use bitmaps for zone statistics

2015-07-24 Thread Tomohiro Kusumi
commit 2550036fa4587a786e90ca4b6737c78481fa4ffa Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Fri Jul 24 05:41:51 2015 +0900 sbin/hammer: Use bitmaps for zone statistics - Didn't squash this with the previous commit in order to be able to go back to the previous

git: sbin/hammer: Add struct zone_stat for generic zone statistics

2015-07-24 Thread Tomohiro Kusumi
commit 723806f41dc0a188617ceccddc3173f925762bf8 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Jul 22 02:57:05 2015 +0900 sbin/hammer: Add struct zone_stat for generic zone statistics - Nothing changes, but just replaces the existing hammer checkmap's zone

git: sbin/hammer: Fix memory allocation for zone statistics

2015-07-25 Thread Tomohiro Kusumi
commit fff0110a0b936812fc3f14008be83aa396551ce3 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Jul 26 01:01:33 2015 +0900 sbin/hammer: Fix memory allocation for zone statistics - 2550036 allocates unnecessary amount of memory when the filesystem consists of 1

git: sbin/hammer: Remove unnecessary zone encoding

2015-07-17 Thread Tomohiro Kusumi
commit 0ad9354038be3d9c338ed2117144934e633a7312 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Tue Jul 14 20:48:25 2015 +0900 sbin/hammer: Remove unnecessary zone encoding - This zone encoding isn't necessary since *result_offp is already 'zone' offset

git: sys/vfs/hammer: Make HAMMER_ENCODE() take zone index instead of base

2015-07-17 Thread Tomohiro Kusumi
commit 6fdd989a6f172aa48cb67f9ea3621cc2923de159 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Jul 15 08:18:38 2015 +0900 sys/vfs/hammer: Make HAMMER_ENCODE() take zone index instead of base - HAMMER_ENCODE() macro added in cbf2551 should have taken zone index

git: sbin/hammer: Properly set modified flag for blockmap

2015-07-17 Thread Tomohiro Kusumi
commit 8b8907c8234345a56030ea567f7dbf81398a1eca Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Jul 16 23:50:33 2015 +0900 sbin/hammer: Properly set modified flag for blockmap - When a blockmap finds the current layer2 (that corresponds to blockmap-next_offset

git: sbin/hammer: Assert simplified blockmap allocator

2015-07-17 Thread Tomohiro Kusumi
commit 0d1f608583649369f4bdd520c29f342b2d3806d8 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Fri Jul 17 20:36:07 2015 +0900 sbin/hammer: Assert simplified blockmap allocator - alloc_blockmap() is a simplified blockmap allocator of kernel function

git: sys/vfs/hammer: Add zoneX version of hammer_xlate_to_zone2()

2015-07-17 Thread Tomohiro Kusumi
commit d0ea2047454e0d94be28450a43750b21a1515b5b Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Wed Jul 15 07:22:33 2015 +0900 sys/vfs/hammer: Add zoneX version of hammer_xlate_to_zone2() - Add hammer_xlate_to_zoneX() macro as a generic version

git: sbin/hammer: Fix boundary check

2015-07-17 Thread Tomohiro Kusumi
commit 1bda0b52a2188ce1adefe6530241de89ebb48fc4 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Thu Jul 16 02:45:41 2015 +0900 sbin/hammer: Fix boundary check - It should be (next_offset + bytes - 1). - alloc_blockmap() has only been used by newfs_hammer for root

git: sbin/hammer: Fix wrong free big-blocks counter

2015-07-17 Thread Tomohiro Kusumi
commit 042505d78e02ba5179ed11b7b1ae4de14cc0a2f6 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Fri Jul 17 00:50:05 2015 +0900 sbin/hammer: Fix wrong free big-blocks counter - newfs_hammer needs to decrement extra 2 big-blocks from vol0_stat_freebigblocks for zone 8

git: sbin/hammer: Align zone# in hammer blockmap output

2015-07-18 Thread Tomohiro Kusumi
commit 850f27ee4767052bf91c4b78ab65df5d796db94e Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Jul 18 18:49:34 2015 +0900 sbin/hammer: Align zone# in hammer blockmap output - Use printf(%-2d) for zone. Summary of changes: sbin/hammer/cmd_blockmap.c | 8 1

git: sys/vfs/hammer: Add HAMMER_BLOCKMAP_LAYER[12]_INDEX()

2015-07-18 Thread Tomohiro Kusumi
commit f5b0d00fddff8f4f0181ecffecb49b725da0d656 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Jul 19 00:38:43 2015 +0900 sys/vfs/hammer: Add HAMMER_BLOCKMAP_LAYER[12]_INDEX() - This commit adds HAMMER_BLOCKMAP_LAYER[12]_INDEX() which is /=sizeof(layer[12

git: sbin/newfs_hammer: Minor fixes

2015-07-18 Thread Tomohiro Kusumi
commit fac8cad69021402ba80df45825e7b057f6304833 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Jul 18 16:32:04 2015 +0900 sbin/newfs_hammer: Minor fixes - It's better to call rel_volume() for the root volume here without waiting for potential non-root ones to do

git: sbin/hammer: Remove modified1 flag

2015-07-18 Thread Tomohiro Kusumi
commit 963edea72368c08668ba9c074a0309c2b06274fb Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sat Jul 18 15:57:31 2015 +0900 sbin/hammer: Remove modified1 flag - modified1 isn't necessary and also the code is clearer without this flag. - Once layer1 big

git: sbin/hammer: Make hammer blockmap show verbose info on -v

2015-07-18 Thread Tomohiro Kusumi
commit 2ea1c995574ed795f4d06cf14670571078f90931 Author: Tomohiro Kusumi kusumi.tomoh...@gmail.com Date: Sun Jul 19 00:41:22 2015 +0900 sbin/hammer: Make hammer blockmap show verbose info on -v - Shows volume# and layer1/layer2 index or offset when -v(v) is used. Summary

git: sys/dev/disk/dm: Fix comments and doc/proposal-dm.txt

2015-10-25 Thread Tomohiro Kusumi
commit c2d2d77882fadcf3bf19f915d4a87c24f2a62a50 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 24 23:04:59 2015 +0900 sys/dev/disk/dm: Fix comments and doc/proposal-dm.txt These have been wrong prior to the last two commits. Summary of changes: sys/dev/d

git: sys/dev/disk/dm: Rename variable

2015-10-25 Thread Tomohiro Kusumi
commit 2d59555fe73022cdef5562ac2ea746158ca0f15c Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 24 17:59:57 2015 +0900 sys/dev/disk/dm: Rename variable struct dm_dev *dm_dev; is just confusing. From the way other struct dm_dev type var

git: sys/dev/disk/dm: Remove unnecessary ()

2015-10-25 Thread Tomohiro Kusumi
commit 0338193ed2c358f0bf0d93e2af43b50751da6e64 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 24 17:57:09 2015 +0900 sys/dev/disk/dm: Remove unnecessary () Summary of changes: sys/dev/disk/dm/device-mapper.c | 4 ++-- sys/dev/disk/dm/dm_ioctl.c | 2 +- 2

git: sys/dev/disk/dm: Don't let targets implement deps [1/2]

2015-10-25 Thread Tomohiro Kusumi
commit 49784e7dc51eeb3484ff250260a9a924e15ca965 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 24 18:35:47 2015 +0900 sys/dev/disk/dm: Don't let targets implement deps [1/2] As mentioned in 66fee7cc, each dm target implementing its deps ioctl h

git: sys/dev/disk/dm: Always initialize target's status string

2015-10-25 Thread Tomohiro Kusumi
commit a6cf54187fd7c3e994c573215806ec03572c038e Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sun Oct 25 21:33:42 2015 +0900 sys/dev/disk/dm: Always initialize target's status string Ioctl by dmsetup(8)'s "status" subcommand doesn't necessary

git: sys/dev/disk/dm: Change pdev SLIST to TAILQ

2015-10-25 Thread Tomohiro Kusumi
commit b2ecd1aaa69a17870a5040f2acfefa2afa3ab6f4 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 24 22:59:46 2015 +0900 sys/dev/disk/dm: Change pdev SLIST to TAILQ TAILQ is more flexible and better for what it's trying to do. Summary of changes: sys/dev/d

git: contrib/lvm2: Add missing \n

2015-10-25 Thread Tomohiro Kusumi
commit d38cb10e387181997baac510409dbfb95af059f7 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sun Oct 25 02:44:38 2015 +0900 contrib/lvm2: Add missing \n Summary of changes: contrib/lvm2/dist/libdm/ioctl/libdm-dragonfly-iface.c | 2 +- contrib/lvm2/dist/libdm/ioctl/libd

git: sys/dev/disk/dm: Change table SLIST to TAILQ

2015-10-25 Thread Tomohiro Kusumi
commit 3cd1dc083360f43b98ba475b5578e5fde0af8c92 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 24 22:38:30 2015 +0900 sys/dev/disk/dm: Change table SLIST to TAILQ TAILQ is more flexible and better for what it's trying to do. Summary of changes: sys/dev/d

git: sys/dev/disk/dm: Don't let targets implement deps [2/2]

2015-10-25 Thread Tomohiro Kusumi
commit d471f1f91f48d72fc2e9bbb8d461753054d745d6 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 24 19:38:56 2015 +0900 sys/dev/disk/dm: Don't let targets implement deps [2/2] This commit gets rid of target's deps handler by introducing a new structure

git: sys/dev/disk/dm: Fix/refactor alloc/free functions [1/6]

2015-11-12 Thread Tomohiro Kusumi
commit 733c17c34fde7821192509db93132eda7e6a714a Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Tue Nov 10 20:02:49 2015 +0900 sys/dev/disk/dm: Fix/refactor alloc/free functions [1/6] There are way too many functions with similar names that do something r

git: sys/dev/disk/dm: Fix/refactor alloc/free functions [5/6]

2015-11-12 Thread Tomohiro Kusumi
commit d880b9df083786ca2259cc231eebe083d45ca0da Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Wed Nov 11 20:25:52 2015 +0900 sys/dev/disk/dm: Fix/refactor alloc/free functions [5/6] Add dm_target_free(). Summary of changes: sys/dev/disk/dm/dm.h| 1 + s

git: sys/dev/disk/dm: Fix device counter handling

2015-11-12 Thread Tomohiro Kusumi
commit 3472ce2b8a1bca797802d433bbd411a9aa5f7ac2 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Tue Nov 10 21:57:14 2015 +0900 sys/dev/disk/dm: Fix device counter handling dm_dev_list and its element counter dm_dev_counter should be protected by the sam

git: sys/dev/disk/dm: Add a comment on race on unload

2015-11-12 Thread Tomohiro Kusumi
commit 53a07f3ae7313aa58948a60f46428bfc2254dc3c Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Wed Nov 11 20:46:25 2015 +0900 sys/dev/disk/dm: Add a comment on race on unload There is a minor race window in dm_modcmd() after the below conditional on unloading

git: sys/dev/disk/dm: Don't expect destroy() to set config to NULL

2015-11-12 Thread Tomohiro Kusumi
commit be52293a8c9089b5524d68c870e446c94abe5b4c Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Thu Nov 12 20:04:43 2015 +0900 sys/dev/disk/dm: Don't expect destroy() to set config to NULL Having a comment like below in dm core that expects programmers t

git: sys/dev/disk/dm: Fix/refactor alloc/free functions [3/6]

2015-11-12 Thread Tomohiro Kusumi
commit 41d37b860809ad5d2784ab444c4d392c9dd88b0b Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Wed Nov 11 19:02:10 2015 +0900 sys/dev/disk/dm: Fix/refactor alloc/free functions [3/6] dm_dev_alloc()/free() * Make them static. * Make alloc() take name an

git: sys/dev/disk/dm: Fix/refactor alloc/free functions [6/6]

2015-11-12 Thread Tomohiro Kusumi
commit a6b470c8dd8f2636821a0158478eb060535770f1 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Wed Nov 11 20:37:36 2015 +0900 sys/dev/disk/dm: Fix/refactor alloc/free functions [6/6] Rename dm_target_rem() to dm_target_remove() for consistency. Summary of changes

git: sys/dev/disk/dm: Cleanups

2015-11-17 Thread Tomohiro Kusumi
commit b7c11cdad5c40c8f5c14c46e6bc7f8a72aa34a44 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Fri Nov 13 20:39:43 2015 +0900 sys/dev/disk/dm: Cleanups * Fix comments. * Add a blank line between functions. * Some minor fixes on dm core. Summary of changes

git: sys/dev/disk/dm: Don't force targets to implement table handler

2015-11-07 Thread Tomohiro Kusumi
commit eca20b991b43999389bbc881760d9e5aa9ed5d9d Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sun Nov 8 02:37:59 2015 +0900 sys/dev/disk/dm: Don't force targets to implement table handler All targets implementing table handler is redundant as some of them

git: sys/vfs/hammer: Add HAMMER_ITOB() macro

2015-11-06 Thread Tomohiro Kusumi
commit 195f60760775c2a80599ff3320391adcd9442a31 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Tue Nov 3 23:25:40 2015 +0900 sys/vfs/hammer: Add HAMMER_ITOB() macro to hide explicit cast from C code so the impact will be small on possible data structure

git: sys/dev/disk/dm: Use correct module name for dm_target_striped

2015-10-31 Thread Tomohiro Kusumi
commit 19ff0bdd0dd06a4d28626f0030846354bad0ad18 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Wed Oct 28 22:14:14 2015 +0900 sys/dev/disk/dm: Use correct module name for dm_target_striped The name of this target is striped, but not stripe. This

git: sys/dev/disk/dm: Make dm-stripe table show major:minor for compatibility

2015-10-31 Thread Tomohiro Kusumi
commit 65b2aaa71b25f39161917ed35aba4e2100821d56 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Tue Oct 27 01:27:13 2015 +0900 sys/dev/disk/dm: Make dm-stripe table show major:minor for compatibility It should be "major:minor" rather than "/dev/xxx&q

git: sys/dev/disk/dm: Fix sanity checks for striped target [2/4]

2015-10-31 Thread Tomohiro Kusumi
commit b98113ec73748007b944a9b5ea5226d4c6d7224a Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 31 19:57:29 2015 +0900 sys/dev/disk/dm: Fix sanity checks for striped target [2/4] Target specific args for striped is redundant in the sense that it has

git: sys/dev/disk/dm: Refactor dm_target_stripe_table()

2015-10-31 Thread Tomohiro Kusumi
commit 0dde59f97dfd22a5bdc778c0458592f3f99b8094 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Wed Oct 28 21:43:40 2015 +0900 sys/dev/disk/dm: Refactor dm_target_stripe_table() Use return value of ksnprintf() instead of strlen(). Summary of changes: .../d

git: sys/dev/disk/dm: Make target's init() take argc and argv

2015-10-31 Thread Tomohiro Kusumi
commit f28e17b7b695c2cf0f1f315ca413ad708c607657 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Thu Oct 29 02:57:10 2015 +0900 sys/dev/disk/dm: Make target's init() take argc and argv dm core shouldn't be passing char *params to targets' init() because all t

git: sys/dev/disk/dm: Fix indentation

2015-10-31 Thread Tomohiro Kusumi
commit 0c9841396a0230a3bd6905a273929e36947eafe0 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Wed Oct 28 00:33:09 2015 +0900 sys/dev/disk/dm: Fix indentation Summary of changes: .../disk/dm/targets/striped/dm_target_striped.c| 54 +++--- 1 file chang

git: sys/dev/disk/dm: Fix sanity checks for striped target [4/4]

2015-10-31 Thread Tomohiro Kusumi
commit 097afaf3a6c4a9db8f3f5332bb718b25bc9aaad0 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Oct 31 18:07:54 2015 +0900 sys/dev/disk/dm: Fix sanity checks for striped target [4/4] Add sanity checks on relation among number of stripes, device size, and

<    1   2   3   4   5   6   7   8   9   10   >