summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-03-05 12:41:44 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-03-05 12:41:44 +0000
commit97a669a3b25da84b579f2a1e66f958f5f506eb75 (patch)
tree55cc48861903309fe856b25c403cf954f34a0724 /sys
parent4802040ebfa4dbe92715656b3b657f4e974e3e61 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/eli/g_eli_ctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/geom/eli/g_eli_ctl.c b/sys/geom/eli/g_eli_ctl.c
index e7f556bc616a..7ae56b971c92 100644
--- a/sys/geom/eli/g_eli_ctl.c
+++ b/sys/geom/eli/g_eli_ctl.c
@@ -355,6 +355,10 @@ g_eli_ctl_onetime(struct gctl_req *req, struct g_class *mp)
gctl_error(req, "Invalid sector size.");
return;
}
+ if (*sectorsize > PAGE_SIZE) {
+ gctl_error(req, "warning: Using sectorsize bigger than "
+ "the page size!");
+ }
md.md_sectorsize = *sectorsize;
}