corecode's projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
114d483
)
hammer expand: Use default values for boot/mem area
author
Michael Neumann <mneumann@ntecs.de>
Thu, 16 Jul 2009 12:26:00 +0000 (14:26 +0200)
committer
Michael Neumann <mneumann@ntecs.de>
Thu, 16 Jul 2009 12:26:00 +0000 (14:26 +0200)
sbin/hammer/cmd_expand.c
patch
|
blob
|
blame
|
history
diff --git
a/sbin/hammer/cmd_expand.c
b/sbin/hammer/cmd_expand.c
index
4da637e
..
dba9d23
100644
(file)
--- a/
sbin/hammer/cmd_expand.c
+++ b/
sbin/hammer/cmd_expand.c
@@
-64,8
+64,8
@@
hammer_cmd_expand(char **av, int ac)
bzero(&expand, sizeof(expand));
strncpy(expand.device_name, av[1], MAXPATHLEN);
expand.vol_size = check_volume(av[1]);
- expand.boot_area_size = 0; // XXX
- expand.mem_area_size = 0; // XXX
+ expand.boot_area_size = HAMMER_BOOT_NOMBYTES;
+ expand.mem_area_size = HAMMER_MEM_NOMBYTES;
if (ioctl(fd, HAMMERIOC_EXPAND, &expand) < 0) {
fprintf(stderr, "hammer expand ioctl: %s\n", strerror(errno));