fix a bug of a only partitally initialization which could result
in an unclean filesystem after growing by a large amount of cylinder groups Reviewed by: chm
This commit is contained in:
parent
1fa0e3cde3
commit
25e3465064
@ -1244,7 +1244,8 @@ updcsloc(time_t utime, int fsi, int fso, int Nflag)
|
|||||||
if(bp == NULL) {
|
if(bp == NULL) {
|
||||||
errx(1, "malloc failed");
|
errx(1, "malloc failed");
|
||||||
}
|
}
|
||||||
memset((char *)bp, 0, sizeof(struct gfs_bpp));
|
memset((char *)bp, 0, ((dupper-odupper)/sblock.fs_frag+2)*
|
||||||
|
sizeof(struct gfs_bpp));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lock all new frags needed for the cylinder group summary. This is
|
* Lock all new frags needed for the cylinder group summary. This is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user