zone_t block; /* Current block (1K) */
unsigned offset; /* Offset within block */
- char buffer[ MAX_BLOCK_SIZE ];
+ char buffer[ _MAX_BLOCK_SIZE ];
/* Display state */
s->zone_num_size = V1_ZONE_NUM_SIZE;
s->zones = super->s_nzones;
s->ndzones = V1_NR_DZONES;
- s->block_size = STATIC_BLOCK_SIZE;
+ s->block_size = _STATIC_BLOCK_SIZE;
}
else if ( s->magic == SUPER_V2 || s->magic == SUPER_V3)
{
if(s->magic == SUPER_V3)
s->block_size = super->s_block_size;
else
- s->block_size = STATIC_BLOCK_SIZE;
+ s->block_size = _STATIC_BLOCK_SIZE;
s->is_fs = TRUE;
s->v1 = FALSE;
s->inode_size = V2_INODE_SIZE;
union
{
zone1_t ind1[ V1_INDIRECTS ];
- zone_t ind2[ V2_INDIRECTS(MAX_BLOCK_SIZE) ];
+ zone_t ind2[ V2_INDIRECTS(_MAX_BLOCK_SIZE) ];
} indirect;
int i;
zone_t zone;
if (ioctl(device, DIOCGETP, &geom0) < 0) return -1;
geom_seek.base = add64(geom0.base, off64);
geom_seek.size = cvu64(cmp64(add64u(off64, SECTOR_SIZE),
- geom0.size) <= 0 ? STATIC_BLOCK_SIZE : 0);
+ geom0.size) <= 0 ? _STATIC_BLOCK_SIZE : 0);
sync();
if (ioctl(device, DIOCSETP, &geom_seek) < 0) return -1;
if (lseek(device, (off_t) 0, SEEK_SET) == -1) return -1;
if (ioctl(device, DIOCGETP, &geom0) < 0) return -1;
geom_seek.base = add64(geom0.base, off64);
geom_seek.size = cvu64(cmp64(add64u(off64, SECTOR_SIZE),
- geom0.size) <= 0 ? STATIC_BLOCK_SIZE : 0);
+ geom0.size) <= 0 ? _STATIC_BLOCK_SIZE : 0);
sync();
if (ioctl(device, DIOCSETP, &geom_seek) < 0) return -1;
if (lseek(device, (off_t) 0, SEEK_SET) == -1) return -1;