diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-11-10 08:26:39 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-11-10 08:26:39 +0000 |
commit | 311c0d68a4fd518ffb25de5d02f693d2f572f359 (patch) | |
tree | b04c68509c692cec4202755aa86874d91cf8d2a2 | |
parent | a2dc634bdd9b931f6de3216693c3408f279fc69d (diff) |
Remove the unused cpg field from ffs_opt_t.
-rw-r--r-- | usr.sbin/makefs/ffs.c | 6 | ||||
-rw-r--r-- | usr.sbin/makefs/ffs.h | 3 |
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) */ |