diff --git a/src/storage_backend_fs.c b/src/storage_backend_fs.c index b41b95230969c7ffb33ddc59b4b1a04ee82cacaf..36f1fb8d830bfaeb09f5516fb59e2e4e2d93feb6 100644 --- a/src/storage_backend_fs.c +++ b/src/storage_backend_fs.c @@ -79,7 +79,7 @@ enum { }; /* Either 'magic' or 'extension' *must* be provided */ -static const struct { +struct FileTypeInfo { int type; /* One of the constants above */ const char *magic; /* Optional string of file magic * to check at head of file */ @@ -94,7 +94,8 @@ static const struct { * -1 to use st_size as capacity */ int sizeBytes; /* Number of bytes for size field */ int sizeMultiplier; /* A scaling factor if size is not in bytes */ -} fileTypeInfo[] = { +}; +const struct FileTypeInfo const fileTypeInfo[] = { /* Bochs */ /* XXX Untested { VIR_STORAGE_VOL_BOCHS, "Bochs Virtual HD Image", NULL,