Store not only the current cylinder group in the series (i.e. next that needs
to be read in) but also the last cylinder group in the series (i.e. what is stored in the structure).
This commit is contained in:
parent
61187c9172
commit
ade073ea23
@ -68,5 +68,6 @@ cgread1(struct uufsd *disk, int c)
|
||||
ERROR(disk, "unable to read cylinder group");
|
||||
return -1;
|
||||
}
|
||||
disk->d_lcg = c;
|
||||
return 1;
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ struct uufsd {
|
||||
/* cylinder group storage */
|
||||
} d_cgunion;
|
||||
int d_ccg; /* current cylinder group */
|
||||
int d_lcg; /* last cylinder group (in d_cg) */
|
||||
const char *d_error; /* human readable disk error */
|
||||
int d_mine; /* internal flags */
|
||||
#define d_fs d_sbunion.d_fs
|
||||
|
@ -146,6 +146,7 @@ again: if (stat(name, &st) < 0) {
|
||||
disk->d_inoblock = NULL;
|
||||
disk->d_inomin = 0;
|
||||
disk->d_inomax = 0;
|
||||
disk->d_lcg = 0;
|
||||
disk->d_mine = 0;
|
||||
disk->d_ufs = 0;
|
||||
disk->d_error = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user