summaryrefslogtreecommitdiffstats
path: root/usr.sbin/makefs
diff options
context:
space:
mode:
authornatano <natano@openbsd.org>2016-11-10 08:26:38 +0000
committernatano <natano@openbsd.org>2016-11-10 08:26:38 +0000
commitf68f7967f518af0f624563255f2d9cd174f46e5b (patch)
tree82a34faad07005b62358198b320332d1c64ae6a6 /usr.sbin/makefs
parentImprove source IP address handling. (diff)
downloadwireguard-openbsd-f68f7967f518af0f624563255f2d9cd174f46e5b.tar.xz
wireguard-openbsd-f68f7967f518af0f624563255f2d9cd174f46e5b.zip
Remove the unused cpg field from ffs_opt_t.
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r--usr.sbin/makefs/ffs.c6
-rw-r--r--usr.sbin/makefs/ffs.h3
2 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/makefs/ffs.c b/usr.sbin/makefs/ffs.c
index fdba04ff06a..9e301a36bd3 100644
--- a/usr.sbin/makefs/ffs.c
+++ b/usr.sbin/makefs/ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs.c,v 1.22 2016/11/08 19:38:57 natano Exp $ */
+/* $OpenBSD: ffs.c,v 1.23 2016/11/10 08:26:38 natano Exp $ */
/* $NetBSD: ffs.c,v 1.66 2015/12/21 00:58:08 christos Exp $ */
/*
@@ -101,7 +101,6 @@
#define DFL_FRAGSIZE 1024 /* fragment size */
#define DFL_BLKSIZE 8192 /* block size */
#define DFL_SECSIZE 512 /* sector size */
-#define DFL_CYLSPERGROUP 65536 /* cylinders per group */
typedef struct {
@@ -150,7 +149,6 @@ ffs_prep_opts(fsinfo_t *fsopts)
ffs_opts->bsize= -1;
ffs_opts->fsize= -1;
- ffs_opts->cpg= -1;
ffs_opts->density= -1;
ffs_opts->minfree= -1;
ffs_opts->optimization= -1;
@@ -327,8 +325,6 @@ ffs_validate(const char *dir, fsnode *root, fsinfo_t *fsopts)
ffs_opts->fsize = MAX(DFL_FRAGSIZE, fsopts->sectorsize);
if (ffs_opts->bsize == -1)
ffs_opts->bsize = MIN(DFL_BLKSIZE, 8 * ffs_opts->fsize);
- if (ffs_opts->cpg == -1)
- ffs_opts->cpg = DFL_CYLSPERGROUP;
/* fsopts->density is set below */
if (ffs_opts->minfree == -1)
ffs_opts->minfree = MINFREE;
diff --git a/usr.sbin/makefs/ffs.h b/usr.sbin/makefs/ffs.h
index 1dec5b13438..ea73f3f5d01 100644
--- a/usr.sbin/makefs/ffs.h
+++ b/usr.sbin/makefs/ffs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs.h,v 1.6 2016/11/08 19:22:29 natano Exp $ */
+/* $OpenBSD: ffs.h,v 1.7 2016/11/10 08:26:38 natano Exp $ */
/* $NetBSD: ffs.h,v 1.2 2011/10/09 21:33:43 christos Exp $ */
/*
@@ -43,7 +43,6 @@ typedef struct {
char label[MAXVOLLEN]; /* volume name/label */
int bsize; /* block size */
int fsize; /* fragment size */
- int cpg; /* cylinders per group */
int density; /* bytes per inode */
int minfree; /* free space threshold */
int optimization; /* optimization (space or time) */