diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2017-01-21 21:58:33 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2017-01-21 21:58:33 +0000 |
commit | ca7980b20653fe5118516d524154ed4e048c2d00 (patch) | |
tree | f9772c7690b1e15514b83be120ffab0a19fd1cd8 | |
parent | 3a40f34aa45a81b5ff08428b779ff424c8457961 (diff) |
Use MD disklabel position.
-rw-r--r-- | usr.sbin/makefs/ffs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/makefs/ffs.c b/usr.sbin/makefs/ffs.c index 87f97ee09e7..9bd90e67789 100644 --- a/usr.sbin/makefs/ffs.c +++ b/usr.sbin/makefs/ffs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs.c,v 1.30 2016/12/17 16:14:18 krw Exp $ */ +/* $OpenBSD: ffs.c,v 1.31 2017/01/21 21:58:32 natano Exp $ */ /* $NetBSD: ffs.c,v 1.66 2015/12/21 00:58:08 christos Exp $ */ /* @@ -277,7 +277,7 @@ ffs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts) lp->d_checksum = sum; n = pwrite(fsopts->fd, lp, sizeof(struct disklabel), - fsopts->offset + DOS_LABELSECTOR * DEV_BSIZE); + fsopts->offset + LABELSECTOR * DEV_BSIZE + LABELOFFSET); if (n == -1) err(1, "failed to write disklabel"); else if (n < sizeof(struct disklabel)) |