* Note: *len == 0 when an image is read. It is set right afterwards.
*/
{
- static char buf[MAX_BLOCK_SIZE]; /* Nonvolatile block buffer. */
+ static char buf[_MAX_BLOCK_SIZE]; /* Nonvolatile block buffer. */
FILE *f;
off_t sec;
unsigned long devsize;
* vector are added to the end of the device.
*/
{
- char buf[MAX_BLOCK_SIZE + 256], *adrp, *parmp;
+ char buf[_MAX_BLOCK_SIZE + 256], *adrp, *parmp;
struct fileaddr {
off_t address;
int count;
FILE *masf;
unsigned long size;
struct stat st;
- static char buf[MAX_BLOCK_SIZE];
+ static char buf[_MAX_BLOCK_SIZE];
/* Open device. */
if ((rawfd= open(rawdev= device, O_RDWR)) < 0) fatal(device);
#endif
static struct inode curfil; /* Inode of file under examination */
-static char indir[MAX_BLOCK_SIZE]; /* Single indirect block. */
-static char dindir[MAX_BLOCK_SIZE]; /* Double indirect block. */
-static char dirbuf[MAX_BLOCK_SIZE]; /* Scratch/Directory block. */
+static char indir[_MAX_BLOCK_SIZE]; /* Single indirect block. */
+static char dindir[_MAX_BLOCK_SIZE]; /* Double indirect block. */
+static char dirbuf[_MAX_BLOCK_SIZE]; /* Scratch/Directory block. */
#define scratch dirbuf
static block_t a_indir, a_dindir; /* Addresses of the indirects. */
if(super.s_magic == SUPER_V2)
super.s_block_size = 1024;
*bs = block_size = super.s_block_size;
- if(block_size < MIN_BLOCK_SIZE ||
- block_size > MAX_BLOCK_SIZE) {
+ if(block_size < _MIN_BLOCK_SIZE ||
+ block_size > _MAX_BLOCK_SIZE) {
return 0;
}
nr_dzones= V2_NR_DZONES;