lscp1
List nilfs2 checkpoints
Usage
lscp [options]
[{device | node}]
Overview
lscp is a utility for displaying checkpoints or snapshots of the NILFS2 file system found in device. device may be a block device or a filesystem node (file or directory) on the filesystem. When device is omitted, /proc/mounts is examined to find a NILFS2 file system.
This command will fail if the device has no active mounts of a NILFS2 file system.
Options
-
-a, --all -
Do not hide minor checkpoints.
-
-b, --show-block-count -
Show number of used blocks instead of appended blocks. This is the default mode.
-
-g, --show-increment -
Show number of appended blocks instead of used blocks.
-
-r, --reverse -
Reverse order.
-
-s, --snapshot -
List only snapshots.
-
-i index, --index=index -
Skip index checkpoints (or snapshots) at start of input.
-
-n lines, --lines=lines -
List only lines input checkpoints (or snapshots).
-
-h, --help -
Display help message and exit.
-
-V, --version -
Display version and exit.
Field description
Every line of the lscp output consists of the following seven fields:
- CNO
-
Checkpoint number.
- DATE
-
Creation date.
- TIME
-
Creation time.
- MODE
-
Mode of the checkpoint;
cpfor a plain checkpoint, andssfor a snapshot.
- FLG
-
Flags on the checkpoint. At present, character ``i'' is printed in the field if the checkpoint was created only by garbage collection, checkpoint mode change, or other change of internal state. Otherwise ``-'' is printed.
- NBLKINC (optional)
-
Number of blocks appended by the checkpoint. This field is displayed instead of BLKCNT field when
-goption is specified.
- BLKCNT
-
Number of blocks used by the checkpoint.
- ICNT
-
Number of inodes included in the entire file system at the time specified by the checkpoint.
Releases
10 releases since Debian 5.0 (Lenny); the text changed 5 times.
--all since Debian 7 (Wheezy);
--help since Debian 7 (Wheezy);
--index since Debian 7 (Wheezy);
--lines since Debian 7 (Wheezy);
--reverse since Debian 7 (Wheezy);
--show-block-count since Debian 7 (Wheezy);
--show-increment since Debian 7 (Wheezy);
--snapshot since Debian 7 (Wheezy);
--version since Debian 7 (Wheezy);
-V since Debian 7 (Wheezy);
-a since Debian 7 (Wheezy);
-b since Debian 7 (Wheezy);
-g since Debian 7 (Wheezy);
-i since Debian 6.0 (Squeeze);
-n since Debian 6.0 (Squeeze).