Allow for the specification of bsize, fsize, and bps (blocks per segment)
for LFS filesystems.
This commit is contained in:
parent
61acca9f2f
commit
ca4693ed4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5393
@ -679,7 +679,7 @@ display(f, lp)
|
|||||||
fprintf(f, "%d ", lp->d_drivedata[j]);
|
fprintf(f, "%d ", lp->d_drivedata[j]);
|
||||||
fprintf(f, "\n\n%d partitions:\n", lp->d_npartitions);
|
fprintf(f, "\n\n%d partitions:\n", lp->d_npartitions);
|
||||||
fprintf(f,
|
fprintf(f,
|
||||||
"# size offset fstype [fsize bsize cpg]\n");
|
"# size offset fstype [fsize bsize bps/cpg]\n");
|
||||||
pp = lp->d_partitions;
|
pp = lp->d_partitions;
|
||||||
for (i = 0; i < lp->d_npartitions; i++, pp++) {
|
for (i = 0; i < lp->d_npartitions; i++, pp++) {
|
||||||
if (pp->p_size) {
|
if (pp->p_size) {
|
||||||
@ -702,6 +702,12 @@ display(f, lp)
|
|||||||
pp->p_cpg);
|
pp->p_cpg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FS_BSDLFS:
|
||||||
|
fprintf(f, " %5d %5d %5d",
|
||||||
|
pp->p_fsize, pp->p_fsize * pp->p_frag,
|
||||||
|
pp->p_cpg);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fprintf(f, "%20.20s", "");
|
fprintf(f, "%20.20s", "");
|
||||||
break;
|
break;
|
||||||
@ -1120,6 +1126,15 @@ getasciilabel(f, lp)
|
|||||||
NXTNUM(pp->p_cpg);
|
NXTNUM(pp->p_cpg);
|
||||||
break;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -679,7 +679,7 @@ display(f, lp)
|
|||||||
fprintf(f, "%d ", lp->d_drivedata[j]);
|
fprintf(f, "%d ", lp->d_drivedata[j]);
|
||||||
fprintf(f, "\n\n%d partitions:\n", lp->d_npartitions);
|
fprintf(f, "\n\n%d partitions:\n", lp->d_npartitions);
|
||||||
fprintf(f,
|
fprintf(f,
|
||||||
"# size offset fstype [fsize bsize cpg]\n");
|
"# size offset fstype [fsize bsize bps/cpg]\n");
|
||||||
pp = lp->d_partitions;
|
pp = lp->d_partitions;
|
||||||
for (i = 0; i < lp->d_npartitions; i++, pp++) {
|
for (i = 0; i < lp->d_npartitions; i++, pp++) {
|
||||||
if (pp->p_size) {
|
if (pp->p_size) {
|
||||||
@ -702,6 +702,12 @@ display(f, lp)
|
|||||||
pp->p_cpg);
|
pp->p_cpg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FS_BSDLFS:
|
||||||
|
fprintf(f, " %5d %5d %5d",
|
||||||
|
pp->p_fsize, pp->p_fsize * pp->p_frag,
|
||||||
|
pp->p_cpg);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fprintf(f, "%20.20s", "");
|
fprintf(f, "%20.20s", "");
|
||||||
break;
|
break;
|
||||||
@ -1120,6 +1126,15 @@ getasciilabel(f, lp)
|
|||||||
NXTNUM(pp->p_cpg);
|
NXTNUM(pp->p_cpg);
|
||||||
break;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user