mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
only define some variables if legacy EXT2FS_ENABLE_SWAPFS is enabled
This commit is contained in:
parent
1f96c97984
commit
0301ffab3d
@ -205,15 +205,18 @@ static errcode_t write_backup_super(ext2_filsys fs, dgrp_t group,
|
||||
|
||||
errcode_t ext2fs_flush(ext2_filsys fs)
|
||||
{
|
||||
dgrp_t i,j;
|
||||
dgrp_t i;
|
||||
blk_t group_block;
|
||||
errcode_t retval;
|
||||
unsigned long fs_state;
|
||||
struct ext2_super_block *super_shadow = 0;
|
||||
struct ext2_group_desc *group_shadow = 0;
|
||||
struct ext2_group_desc *s, *t;
|
||||
char *group_ptr;
|
||||
int old_desc_blocks;
|
||||
#ifdef EXT2FS_ENABLE_SWAPFS
|
||||
dgrp_t j;
|
||||
struct ext2_group_desc *s, *t;
|
||||
#endif
|
||||
|
||||
EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
|
||||
|
||||
|
@ -22,9 +22,11 @@
|
||||
errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf)
|
||||
{
|
||||
errcode_t retval;
|
||||
#ifdef EXT2FS_ENABLE_SWAPFS
|
||||
blk_t *block_nr;
|
||||
int i;
|
||||
int limit = fs->blocksize >> 2;
|
||||
#endif
|
||||
|
||||
if ((fs->flags & EXT2_FLAG_IMAGE_FILE) &&
|
||||
(fs->io != fs->image_io))
|
||||
@ -46,9 +48,11 @@ errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf)
|
||||
|
||||
errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf)
|
||||
{
|
||||
#ifdef EXT2FS_ENABLE_SWAPFS
|
||||
blk_t *block_nr;
|
||||
int i;
|
||||
int limit = fs->blocksize >> 2;
|
||||
#endif
|
||||
|
||||
if (fs->flags & EXT2_FLAG_IMAGE_FILE)
|
||||
return 0;
|
||||
|
@ -86,10 +86,13 @@ errcode_t ext2fs_open2(const char *name, const char *io_options,
|
||||
ext2_filsys fs;
|
||||
errcode_t retval;
|
||||
unsigned long i;
|
||||
int j, groups_per_block, blocks_per_group;
|
||||
int groups_per_block, blocks_per_group;
|
||||
blk_t group_block, blk;
|
||||
char *dest, *cp;
|
||||
#ifdef EXT2FS_ENABLE_SWAPFS
|
||||
int j;
|
||||
struct ext2_group_desc *gdp;
|
||||
#endif
|
||||
|
||||
EXT2_CHECK_MAGIC(manager, EXT2_ET_MAGIC_IO_MANAGER);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user