1
0
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:
Juli Mallett 2003-01-19 05:46:23 +00:00
parent aac0e9388e
commit cc3dd52898
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109518
3 changed files with 3 additions and 0 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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;