]> git.ipfire.org Git - thirdparty/util-linux.git/blame_incremental - Documentation/deprecated.txt
libfdisk: (gpt) cast number of entries [lgtm scan]
[thirdparty/util-linux.git] / Documentation / deprecated.txt
... / ...
CommitLineData
1The following is a list of commands or features that are deprecated. All
2deprecated utils are in maintenance mode and we keep them in source tree for
3backward compatibility only.
4
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
17what: column --columns
18why: renamed to --output-width
19since: v2.30
20
21--------------------------
22
23what: sfdisk --show-size
24why: this does not belong to fdisk, use "blockdev --getsz"
25
26--------------------------
27
28what: sfdisk --Linux
29why: unnecessary option, only Linux (non-DOS mode) is supported
30
31--------------------------
32
33what: sfdisk --unit
34why: unnecessary option, only 'S'ector unit is supported
35
36--------------------------
37
38what: sfdisk --show-pt-geometry
39why: equal to --show-geometry for a long time
40
41--------------------------
42
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
49What: mkfs
50Why: use filesystem specific mkfs.<type>.
51
52--------------------------
53
54What: fdisk -s <device>
55Why: this does not belong to fdisk, use "blockdev --getsz"
56
57--------------------------
58
59What: 'udev' and 'list' blkid(8) output formats
60Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
61
62--------------------------
63
64What: line(1) command
65Why: use the read(1) command
66
67--------------------------
68
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)
75Why: use addressing by sectors, CHS does not work with modern disks,
76 confusing for users...
77
78--------------------------
79
80What: losetup -s
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--------------------------
85
86What: losetup output format without --list
87
88 deprecated format:
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
103What: tunelp
104Why: parallel port printers are probably almost extinct devices
105
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