1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
.\" Copyright (C) 2007-2012 Nippon Telegraph and Telephone Corporation.
.\" Written by Ryusuke Konishi <konishi.ryusuke@gmail.com>
.\"
.TH DUMPSEG 8 "Apr 2014" "nilfs-utils version 2.2"
.SH NAME
dumpseg \- print segment information of NILFS2
.SH SYNOPSIS
.B dumpseg
[\fB\-hV\fP]
.sp
.B dumpseg
[\fIdevice\fP] \fIsegment-number\fP ...
.SH DESCRIPTION
The
.B dumpseg
program is an analysis tool for on-disk logs of a NILFS2 file system
found in \fIdevice\fP. It displays the configuration of every log
stored in the segments specified by one or more \fIsegment-numbers\fP.
The term segment here means a contiguous lump of disk blocks giving an
allocation unit of NILFS2 disk space. When \fIdevice\fP is omitted,
it tries to find an active NILFS2 file system from \fI/proc/mounts\fP.
.PP
.B dumpseg
is a tool for debugging rather than administration. To list a summary
of segments, \fBlssu\fP(1) is available instead.
.SH OPTIONS
.TP
\fB\-h\fR, \fB\-\-help\fR
Display help message and exit.
.TP
\fB\-V\fR, \fB\-\-version\fR
Display version and exit.
.SH "FIELD DESCRIPTION"
.B dumpseg
shows the configuration of each log with the following fields, where
each field is printed in the style of ``\fIfield-name\fP \fB=\fP
\fIvalue\fP''.
.TP
.B creation time
Creation date and time of the log.
.TP
.B nfinfo
Number of file information summaries.
.TP
.B finfo
File information summary. This information starts with the following fields:
.RS
.TP
.B ino
Inode number of the file.
.TP
.B cno
Number of the checkpoint that the blocks included in the file belong
to. For normal writings, this is equal to the latest checkpoint
number. For the writings involved in garbage collection, this
indicates a past checkpoint number.
.TP
.B nblocks
Number of blocks of the file written in the log. This number is a sum
of the number of data blocks and B-tree node blocks. The contents of
these blocks are written serially in the payload part of the log.
Only modified or newly created blocks are written to each log.
.TP
.B ndatblk
Number of data blocks of the file written in the log.
.RE
.TP
.B ""
Then, for each update block in the file, the following information
will follow these headings.
.RS
.TP
.B vblocknr
Virtual block number. Not printed for data blocks of the Disk Address
Translation file (DAT file).
.TP
.B blkoff
Block offset number. Not printed for B-tree node blocks except for
the DAT file.
.TP
.B level
Level of B-tree node block. Printed only for the DAT file.
.TP
.B blocknr
Block address on the \fIdevice\fP. This is not an actual field in the
summary but is calculated from the disk address of each log.
.RE
.RE
.SH AUTHOR
Koji Sato
.SH AVAILABILITY
.B dumpseg
is part of the nilfs-utils package and is available from
https://nilfs.sourceforge.io.
.SH SEE ALSO
.BR nilfs (8),
.BR lssu (1).
|