summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/change.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-24 08:59:40 +0000
committerjkh <jkh@FreeBSD.org>1995-05-24 08:59:40 +0000
commit33ee1a22eddb8029d1051a4c04f35b72dcc1e6da (patch)
tree540c17fff92c76ed5ebab2195bb3b459f0f7950f /lib/libdisk/change.c
parent206d10d33f0d45afde92ec0556a726d8e36b10c7 (diff)
downloadFreeBSD-src-33ee1a22eddb8029d1051a4c04f35b72dcc1e6da.zip
FreeBSD-src-33ee1a22eddb8029d1051a4c04f35b72dcc1e6da.tar.gz
Align slices to cylinder boundries.
Submitted By: phk
Diffstat (limited to 'lib/libdisk/change.c')
-rw-r--r--lib/libdisk/change.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libdisk/change.c b/lib/libdisk/change.c
index cd78f45..80ce1f2 100644
--- a/lib/libdisk/change.c
+++ b/lib/libdisk/change.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: change.c,v 1.3 1995/04/29 04:00:53 phk Exp $
+ * $Id: change.c,v 1.5 1995/05/01 04:05:23 phk Exp $
*
*/
@@ -55,5 +55,10 @@ All_FreeBSD(struct disk *d)
goto again;
}
c=d->chunks;
+ if (d->flags & DISK_ON_TRACK) {
+ c->offset += 63;
+ c->part->offset += 63;
+ d->flags &= ~DISK_ON_TRACK;
+ }
Create_Chunk(d,c->offset,c->size,freebsd,0xa5,0);
}
OpenPOWER on IntegriCloud