Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177605978
D6207.1794828136.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D6207.1794828136.diff
View Options
Index: sys/geom/uzip/g_uzip.c
===================================================================
--- sys/geom/uzip/g_uzip.c
+++ sys/geom/uzip/g_uzip.c
@@ -29,6 +29,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_geom.h"
+
#include <sys/param.h>
#include <sys/bio.h>
#include <sys/endian.h>
@@ -576,8 +578,8 @@
struct g_provider *pp2;
struct g_uzip_softc *sc;
enum {
- GEOM_UZIP = 1,
- GEOM_ULZMA
+ G_UZIP = 1,
+ G_ULZMA
} type;
g_trace(G_T_TOPOLOGY, "%s(%s,%s)", __func__, mp->name, pp->name);
@@ -621,7 +623,7 @@
switch (header->magic[CLOOP_OFS_COMPR]) {
case CLOOP_COMP_LZMA:
case CLOOP_COMP_LZMA_DDP:
- type = GEOM_ULZMA;
+ type = G_ULZMA;
if (header->magic[CLOOP_OFS_VERSN] < CLOOP_MINVER_LZMA) {
DPRINTF(GUZ_DBG_ERR, ("%s: image version too old\n",
gp->name));
@@ -632,7 +634,7 @@
break;
case CLOOP_COMP_LIBZ:
case CLOOP_COMP_LIBZ_DDP:
- type = GEOM_UZIP;
+ type = G_UZIP;
if (header->magic[CLOOP_OFS_VERSN] < CLOOP_MINVER_ZLIB) {
DPRINTF(GUZ_DBG_ERR, ("%s: image version too old\n",
gp->name));
@@ -728,7 +730,7 @@
sc->req_total = 0;
sc->req_cached = 0;
- if (type == GEOM_UZIP) {
+ if (type == G_UZIP) {
sc->dcp = g_uzip_zlib_ctor(sc->blksz);
} else {
sc->dcp = g_uzip_lzma_ctor(sc->blksz);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 11:22 AM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41775303
Default Alt Text
D6207.1794828136.diff (1 KB)
Attached To
Mode
D6207: [geom_uzip] Correct usage of GEOM_UZIP_DEBUG
Attached
Detach File
Event Timeline