diff options
Diffstat (limited to 'isofs')
-rw-r--r-- | isofs/isofs.h | 12 | ||||
-rw-r--r-- | isofs/main.c | 4 |
2 files changed, 10 insertions, 6 deletions
diff --git a/isofs/isofs.h b/isofs/isofs.h index 2ba013c2..a19106fa 100644 --- a/isofs/isofs.h +++ b/isofs/isofs.h @@ -68,19 +68,19 @@ struct lookup_context /* The physical media */ extern struct store *store; -char *host_name; +extern char *host_name; /* Name we are mounted on, with trailing slash */ -char *mounted_on; +extern char *mounted_on; /* Mapped image of disk */ -void *disk_image; -size_t disk_image_len; +extern void *disk_image; +extern size_t disk_image_len; /* Processed sblock info */ /* Block size of pointers etc. on disk (6.2.2). */ -size_t logical_block_size; +extern size_t logical_block_size; /* Size of "logical sectors" (6.1.2). These are 2048 or the largest power of two that will fit in a physical sector, whichever is @@ -89,7 +89,7 @@ size_t logical_block_size; #define logical_sector_size 2048 /* Unprocessed superblock */ -struct sblock *sblock; +extern struct sblock *sblock; diff --git a/isofs/main.c b/isofs/main.c index db16e2a1..d16e7286 100644 --- a/isofs/main.c +++ b/isofs/main.c @@ -39,6 +39,10 @@ int diskfs_link_max = INT_MAX; int diskfs_name_max = 255; /* see iso9660.h: struct dirrect::namelen */ int diskfs_maxsymlinks = 8; +char *host_name; +char *mounted_on; +size_t logical_block_size; +struct sblock *sblock; /* Fetch the root node */ static void |