sys/vfs/hammer: fix off-by-one error in hammer volume-add ioctl
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 18 Jan 2015 18:26:47 +0000 (03:26 +0900)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 20 Jan 2015 12:46:42 +0000 (13:46 +0100)
commitf1d8913755e416824a51d1851052e9ae399cb69e
tree9086423f4d8286db3654226a63115961757a9808
parent9bb76b9e60f5843c44aeb3da826207de40328371
sys/vfs/hammer: fix off-by-one error in hammer volume-add ioctl

- This patch should fix off-by-one error regarding maximum volume number.
- Correct how hammer_ioc_volume_add() tests current # of volumes before
  it adds a new volume.

Closes: #2773
sys/vfs/hammer/hammer_volume.c