diff options
author | gibbs <gibbs@FreeBSD.org> | 1995-01-04 23:49:51 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1995-01-04 23:49:51 +0000 |
commit | 0df1a28aca294be711d5a5643c0d9a0e2a34aa65 (patch) | |
tree | 4b794d27fa2f43043b5208ac949f22e506d627a1 /sbin/bsdlabel/bsdlabel.c | |
parent | 216ac2cace628305efdaf9b23a119bf11d307b87 (diff) | |
download | FreeBSD-src-0df1a28aca294be711d5a5643c0d9a0e2a34aa65.zip FreeBSD-src-0df1a28aca294be711d5a5643c0d9a0e2a34aa65.tar.gz |
Allow for the specification of bsize, fsize, and bps (blocks per segment)
for LFS filesystems.
Diffstat (limited to 'sbin/bsdlabel/bsdlabel.c')
-rw-r--r-- | sbin/bsdlabel/bsdlabel.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c index 0914af2..efcbbf2 100644 --- a/sbin/bsdlabel/bsdlabel.c +++ b/sbin/bsdlabel/bsdlabel.c @@ -679,7 +679,7 @@ display(f, lp) fprintf(f, "%d ", lp->d_drivedata[j]); fprintf(f, "\n\n%d partitions:\n", lp->d_npartitions); fprintf(f, - "# size offset fstype [fsize bsize cpg]\n"); + "# size offset fstype [fsize bsize bps/cpg]\n"); pp = lp->d_partitions; for (i = 0; i < lp->d_npartitions; i++, pp++) { if (pp->p_size) { @@ -702,6 +702,12 @@ display(f, lp) pp->p_cpg); break; + case FS_BSDLFS: + fprintf(f, " %5d %5d %5d", + pp->p_fsize, pp->p_fsize * pp->p_frag, + pp->p_cpg); + break; + default: fprintf(f, "%20.20s", ""); break; @@ -1120,6 +1126,15 @@ getasciilabel(f, lp) NXTNUM(pp->p_cpg); break; + case FS_BSDLFS: + NXTNUM(pp->p_fsize); + if (pp->p_fsize == 0) + break; + NXTNUM(v); + pp->p_frag = v / pp->p_fsize; + NXTNUM(pp->p_cpg); + break; + default: break; } |