diff options
author | pjd <pjd@FreeBSD.org> | 2011-04-24 10:41:13 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-04-24 10:41:13 +0000 |
commit | 96e417f7418b0ca583aab76927500e0e94afb15b (patch) | |
tree | 60bb424704f1ab03097306c401f9512f7a06b545 | |
parent | a7765e469e498669535c563966d98494a10b7403 (diff) | |
download | FreeBSD-src-96e417f7418b0ca583aab76927500e0e94afb15b.zip FreeBSD-src-96e417f7418b0ca583aab76927500e0e94afb15b.tar.gz |
One key is expected from providers smaller than or equal to (2^20)*sectorsize
bytes. Remove bogus assertion and while here remove another too obvious
assertion.
Reported by: Fabian Keil <freebsd-listen@fabiankeil.de>
MFC after: 2 weeks
-rw-r--r-- | sys/geom/eli/g_eli_key_cache.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/geom/eli/g_eli_key_cache.c b/sys/geom/eli/g_eli_key_cache.c index 8c2c400..9dc65a2 100644 --- a/sys/geom/eli/g_eli_key_cache.c +++ b/sys/geom/eli/g_eli_key_cache.c @@ -263,12 +263,6 @@ g_eli_key_hold(struct g_eli_softc *sc, off_t offset, size_t blocksize) if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) return (sc->sc_ekey); - KASSERT(sc->sc_ekeys_total > 1, ("%s: sc_ekeys_total=%ju", __func__, - (uintmax_t)sc->sc_ekeys_total)); - KASSERT((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) == 0, - ("%s: SINGLE_KEY flag set, but sc_ekeys_total=%ju", __func__, - (uintmax_t)sc->sc_ekeys_total)); - /* We switch key every 2^G_ELI_KEY_SHIFT blocks. */ keyno = (offset >> G_ELI_KEY_SHIFT) / blocksize; |