diff options
Diffstat (limited to 'sys/geom/eli/g_eli_ctl.c')
| -rw-r--r-- | sys/geom/eli/g_eli_ctl.c | 4 |
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; } |
