mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Re-calculate a geometry when reprobing as well.
PR: kern/145452 Reported by: "Andrey V. Elsukov" <bu7cher@yandex.ru>
This commit is contained in:
parent
6f702278e6
commit
c74f160cb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207181
@ -1166,6 +1166,15 @@ g_part_ctl_undo(struct gctl_req *req, struct g_part_parms *gpp)
|
||||
return (0);
|
||||
}
|
||||
table = gp->softc;
|
||||
|
||||
/*
|
||||
* Synthesize a disk geometry. Some partitioning schemes
|
||||
* depend on it and since some file systems need it even
|
||||
* when the partitition scheme doesn't, we do it here in
|
||||
* scheme-independent code.
|
||||
*/
|
||||
pp = cp->provider;
|
||||
g_part_geometry(table, cp, pp->mediasize / pp->sectorsize);
|
||||
}
|
||||
|
||||
error = G_PART_READ(table, cp);
|
||||
|
Loading…
Reference in New Issue
Block a user