1LSSU(1)                     General Commands Manual                    LSSU(1)
2
3
4

NAME

6       lssu - list usage state of NILFS2 segments
7

SYNOPSIS

9       lssu [options] [device]
10

DESCRIPTION

12       lssu  is  a  utility  for  displaying usage state of NILFS2 segments in
13       device, where a segment is contiguous lump of disk blocks and an  allo‐
14       cation unit of NILFS2 disk space.  When device is omitted, /proc/mounts
15       is examined to find a NILFS2 file system.
16
17       This command will fail if the device has no active mounts of  a  NILFS2
18       file system.
19

OPTIONS

21       -a, --all
22              Do not hide clean segments.
23
24       -h, --help
25              Display help message and exit.
26
27       -i index, --index=index
28              Skip index segments at start of input.
29
30       -l, --latest-usage
31              Print usage status of the moment.
32
33       -n lines, --lines=lines
34              List only lines input segments.
35
36       -p period, --protection-period=period
37              Specify  protection  period.   This option is used when printing
38              usage status of the moment (with -l  option)  to  test  if  each
39              block  in segments is protected and is not reclaimable.  Option‐
40              ally, the period parameter may be suffixed by one of the follow‐
41              ing  units  designators: ´s´, ´m´, ´h´, ´d´,´w´,´M´, or ´Y´, for
42              seconds, minutes, hours, days, weeks, months, or years,  respec‐
43              tively.
44
45       -V, --version
46              Display version and exit.
47

FIELD DESCRIPTION

49       Every line of the lssu output consists of the following fields:
50
51       SEGNUM Segment number.
52
53       DATE   Creation date.
54
55       TIME   Creation time.
56
57       STAT   State of the segment.  It consists of the following flags:
58
59              a      The  segment  is active, meaning that it is recently cre‐
60                     ated and cannot be reclaimed by the garbage collector.
61
62              d      The segment is dirty, meaning that it is in use.
63
64              e      The segment is erroneous, meaning that it has once caused
65                     an I/O error.  NILFS2 avoids allocating the segments with
66                     this flag.
67
68              p (optional)
69                     The segment is protected, meaning that garbage collection
70                     for  the  segment  is  prevented  for  some  reason,  for
71                     instance, the protection period is not elapsed  from  its
72                     last  modified  time,  the  segment is pinned by the file
73                     system, or it is erroneous and unreclaimable, etc.   This
74                     flag is displayed when -l option is specified.
75
76       NBLOCKS
77              Number of in-use blocks of the segment.
78
79       NLIVEBLOCKS (optional)
80              Number  and ratio of in-use blocks of the moment.  This field is
81              displayed when -l option is specified.
82

AUTHOR

84       Koji Sato
85

AVAILABILITY

87       lssu  is  part  of  the  nilfs-utils  package  and  is  available  from
88       http://nilfs.sourceforge.net.
89

SEE ALSO

91       nilfs(8), dumpseg(8).
92
93
94
95nilfs-utils version 2.2            Apr 2014                            LSSU(1)
Impressum