]> git.ipfire.org Git - thirdparty/util-linux.git/blame - Documentation/deprecated.txt
libfdisk: (gpt) cast number of entries [lgtm scan]
[thirdparty/util-linux.git] / Documentation / deprecated.txt
CommitLineData
b1d3faa9 1The following is a list of commands or features that are deprecated. All
ad64b1ae
JG
2deprecated utils are in maintenance mode and we keep them in source tree for
3backward compatibility only.
72a71454 4
de4568f7
WP
5what: hwclock --debug
6why: renamed to --verbose, and may be repurposed later.
7since: v2.32
8
9--------------------------
10
11what: hwclock -v for version
12why: renamed to -V
13since: v2.20 (was repurposed to verbose in v2.32)
14
15--------------------------
16
d7a3bf94
KZ
17what: column --columns
18why: renamed to --output-width
19since: v2.30
20
21--------------------------
a6c6662d 22
d420a7f9
KZ
23what: sfdisk --show-size
24why: this does not belong to fdisk, use "blockdev --getsz"
a6c6662d 25
d420a7f9 26--------------------------
35ce145f
KZ
27
28what: sfdisk --Linux
29why: unnecessary option, only Linux (non-DOS mode) is supported
30
31--------------------------
32
d420a7f9
KZ
33what: sfdisk --unit
34why: unnecessary option, only 'S'ector unit is supported
35
36--------------------------
37
ba7f6ba5
SB
38what: sfdisk --show-pt-geometry
39why: equal to --show-geometry for a long time
40
41--------------------------
42
d420a7f9
KZ
43what: "swapon --summary" output format
44why: does not provide control on output data formatting. The recommended solution
45 is to use --show=<columns> in all scripts.
46
47--------------------------
48
4459245f
KZ
49What: mkfs
50Why: use filesystem specific mkfs.<type>.
51
dba96eed
KZ
52--------------------------
53
9564e46c
KZ
54What: fdisk -s <device>
55Why: this does not belong to fdisk, use "blockdev --getsz"
56
57--------------------------
58
24d741d8
KZ
59What: 'udev' and 'list' blkid(8) output formats
60Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
61
62--------------------------
63
4c50b0b3 64What: line(1) command
1626ce11 65Why: use the read(1) command
4c50b0b3
KZ
66
67--------------------------
68
956e5828
KZ
69What: pg(1) command
70Why: use less(1) or more(1)
71
72--------------------------
73
74What: CHS stuff in fdisk (except SUN where are partitions addresses by cylinders only)
73afd3f8 75Why: use addressing by sectors, CHS does not work with modern disks,
956e5828
KZ
76 confusing for users...
77
78--------------------------
79
4ac02d4d 80What: losetup -s
4ac02d4d
KZ
81Why: the option -s is in collision with the Loop-AES losetup dialect that is used
82 in some distributions. Use the long version (--show) only.
83
84--------------------------
72a71454 85
ead259e3
KZ
86What: losetup output format without --list
87
25d9f140 88 deprecated format:
ead259e3
KZ
89
90 # losetup -a
91 /dev/loop0: []: (/home/fs-images/swap.img)
92 /dev/loop1: []: (/home/fs-images/disk.img), offset 100
93
94 new format:
95
96 # losetup
97 NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
98 /dev/loop0 0 0 0 0 /home/fs-images/swap.img
99 /dev/loop1 0 100 0 0 /home/fs-images/disk.img
100
101--------------------------
102
1342ffcb
SK
103What: tunelp
104Why: parallel port printers are probably almost extinct devices
105
777b5173
SK
106----------------------------
107
108The Single UNIX(TM) Specification, Version 2
109Copyright (C) 1997 The Open Group
110
111 Legacy utilities which are part util-linux package are:
112
113 col
114 line
115 pg
116
117 http://pubs.opengroup.org/onlinepubs/7908799/xcu/intro.html#tag_001_003_003