mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
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
aac0e9388e
commit
cc3dd52898
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109518
@ -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…
Reference in New Issue
Block a user