summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-31 07:55:38 +0000
committerphk <phk@FreeBSD.org>2002-10-31 07:55:38 +0000
commita1b493e26515595b736dd5ffa8eed2cf8655123d (patch)
tree1feb40b6bce54d9270232eb6369200031e9cd4c3 /lib
parent674ee796106bc578b59d4a3393360011bd29341a (diff)
downloadFreeBSD-src-a1b493e26515595b736dd5ffa8eed2cf8655123d.zip
FreeBSD-src-a1b493e26515595b736dd5ffa8eed2cf8655123d.tar.gz
Set the sector size for the disk.
Diffstat (limited to 'lib')
-rw-r--r--lib/libdisk/disk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index c69f253..9673169 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -129,6 +129,8 @@ Int_Open_Disk(const char *name)
s = strtoul(a, &r, 0);
if (*r) { printf("BARF %d <%d>\n", __LINE__, *r); exit (0); }
+ d->sector_size = s;
+
if (Add_Chunk(d, 0, o / s, name, whole, 0, 0, "-"))
DPRINT(("Failed to add 'whole' chunk"));
OpenPOWER on IntegriCloud