kern/145452: commit references a PR
dfilter service
dfilter at FreeBSD.ORG
Sun Apr 25 02:10:06 UTC 2010
The following reply was made to PR kern/145452; it has been noted by GNATS.
From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: kern/145452: commit references a PR
Date: Sun, 25 Apr 2010 01:57:02 +0000 (UTC)
Author: marcel
Date: Sun Apr 25 01:56:39 2010
New Revision: 207181
URL: http://svn.freebsd.org/changeset/base/207181
Log:
Re-calculate a geometry when reprobing as well.
PR: kern/145452
Reported by: "Andrey V. Elsukov" <bu7cher at yandex.ru>
Modified:
head/sys/geom/part/g_part.c
Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c Sun Apr 25 01:56:31 2010 (r207180)
+++ head/sys/geom/part/g_part.c Sun Apr 25 01:56:39 2010 (r207181)
@@ -1166,6 +1166,15 @@ g_part_ctl_undo(struct gctl_req *req, st
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);
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the freebsd-geom
mailing list