"\n"
" -a <agno> Only iterate this AG.\n"
" -d Print debugging output.\n"
+" -q Be quiet, no output.\n"
" -e <ino> Stop after this inode.\n"
" -n <nr> Ask for this many results at once.\n"
" -s <ino> Inode to start with.\n"
uint32_t ver = 0;
bool has_agno = false;
bool debug = false;
+ bool quiet = false;
unsigned int i;
int c;
int ret;
- while ((c = getopt(argc, argv, "a:de:n:s:v:")) != -1) {
+ while ((c = getopt(argc, argv, "a:de:n:qs:v:")) != -1) {
switch (c) {
case 'a':
agno = cvt_u32(optarg, 10);
return 1;
}
break;
+ case 'q':
+ quiet = true;
+ break;
case 's':
startino = cvt_u64(optarg, 10);
if (errno) {
for (i = 0; i < breq->hdr.ocount; i++) {
if (breq->bulkstat[i].bs_ino > endino)
break;
+ if (quiet)
+ continue;
dump_bulkstat(&breq->bulkstat[i]);
}
}
.SH FILESYSTEM COMMANDS
.TP
-.BI "bulkstat [ \-a " agno " ] [ \-d ] [ \-e " endino " ] [ \-n " batchsize " ] [ \-s " startino " ] [ \-v " version" ]
+.BI "bulkstat [ \-a " agno " ] [ \-d ] [ \-e " endino " ] [ \-n " batchsize " ] [ \-q ] [ \-s " startino " ] [ \-v " version" ]
Display raw stat information about a bunch of inodes in an XFS filesystem.
Options are as follows:
.RS 1.0i
Retrieve at most this many records per call.
Defaults to 4,096.
.TP
+.BI \-q
+Run quietly.
+Does not parse or output retrieved bulkstat information.
+.TP
.BI \-s " startino"
Display inode allocation records starting with this inode.
Defaults to the first inode in the filesystem.