Debian Codegraph @

upstream/debian-unstable/man8/xfs_estimate.8

raw
1 .TH xfs_estimate 8
2 .SH NAME
3 xfs_estimate \- estimate the space that an XFS filesystem will take
4 .SH SYNOPSIS
5 .nf
6 \f3xfs_estimate\f1 [ \f3\-h\f1 ] [ \f3\-b\f1 blocksize ] [ \f3\-i\f1 logsize ]
7 [ \f3\-e\f1 logsize ] [ \f3\-v\f1 ] directory ...
8 .br
9 .B xfs_estimate \-V
10 .fi
11 .SH DESCRIPTION
12 For each \f2directory\f1 argument,
13 .I xfs_estimate
14 estimates the space that directory would take if it were copied to an XFS
15 filesystem.
16 .I xfs_estimate
17 does not cross mount points.
18 The following definitions
19 are used:
20 .PD 0
21 .IP
22 KB = *1024
23 .IP
24 MB = *1024*1024
25 .IP
26 GB = *1024*1024*1024
27 .PD
28 .PP
29 The
30 .I xfs_estimate
31 options are:
32 .TP
33 \f3\-b\f1 \f2blocksize\f1
34 Use
35 .I blocksize
36 instead of the default blocksize of 4096 bytes.
37 The modifier
38 .B k
39 can be used
40 after the number to indicate multiplication by 1024.
41 For example,
42 .sp .8v
43 .RS
44 \f4xfs_estimate \-b 64k /\f1
45 .RE
46 .IP
47 requests an estimate of the space required by the directory / on an
48 XFS filesystem using a blocksize of 64K (65536) bytes.
49 .TP
50 .B \-v
51 Display more information, formatted.
52 .TP
53 .B \-h
54 Display usage message.
55 .TP
56 \f3\-i, \-e\f1 \f2logsize\f1
57 Use
58 .I logsize
59 instead of the default log size of 1000 blocks.
60 .B \-i
61 refers to an internal log, while
62 .B \-e
63 refers to an external log.
64 The modifiers
65 .B k
66 or
67 .B m
68 can be used
69 after the number to indicate multiplication by 1024 or 1048576, respectively.
70 .IP
71 For example,
72 .sp .8v
73 .RS
74 \f4xfs_estimate \-i 1m /\f1
75 .RE
76 .IP
77 requests an estimate of the space required by the directory / on an
78 XFS filesystem using an internal log of 1 megabyte.
79 .TP
80 .B \-V
81 Print the version number and exits.
82 .SH EXAMPLES
83 .nf
84 .sp 8v
85 % \f4xfs_estimate \-e 10m /var/tmp\f1\f7
86 /var/tmp will take about 4.2 megabytes
87 with the external log using 2560 blocks or about 10.0 megabytes
88 .fi
89 .nf
90 .sp .8v
91 % \f4xfs_estimate \-v \-e 10m /var/tmp\f1\f7
92 directory bsize blocks megabytes logsize
93 /var/tmp 4096 792 4.0MB 10485760
94 .fi
95 .nf
96 .sp .8v
97 % \f4xfs_estimate \-v /var/tmp\f1\f7
98 directory bsize blocks megabytes logsize
99 /var/tmp 4096 3352 14.0MB 10485760
100 .fi
101 .nf
102 .sp .8v
103 % \f4xfs_estimate /var/tmp\f1\f7
104 /var/tmp will take about 14.0 megabytes
105 .fi