]> git.ipfire.org Git - thirdparty/util-linux.git/blob - Documentation/TODO
Merge branch 'getopt-musl' of https://github.com/sgn/util-linux
[thirdparty/util-linux.git] / Documentation / TODO
1
2 Note that items with (!) have high priority.
3
4 script (lib/pty-session.c)
5 --------------------------
6 - (!) add #ifdefs and optional code for non-signalfd() systems
7
8
9 docs
10 ----
11 - use terminal hyperlinks (for example for --help)
12 try on terminal: printf 'For more details see \e]8;;man:fdisk(8)\e\\fdisk(8)\e]8;;\e\\.\n'
13 https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
14
15 rev
16 ---
17 - support huge input lines (for example read input by small fixed buffer
18 rather than try allocate all buffer for a whole line)
19 see: https://github.com/karelzak/util-linux/issues/972
20
21 col
22 ---
23 - use unsigned sizes for columns and lines
24 - check for limits to avoid segfaults
25 - make it more robust
26 https://github.com/karelzak/util-linux/issues/749
27
28 cal
29 ---
30 - support another --reforms, see for example freebsd version
31 https://github.com/freebsd/freebsd/blob/master/usr.bin/ncal/ncal.c#L72
32
33 lscpu
34 -----
35 - read cpuid and uname information from file if --sysroot is specified, then
36 we can prepare regression tests completely independent on hw and architecture.
37
38 lsblk
39 -----
40 - currently it does not show mountpoint for all devices in btrfs RAID. It's because
41 /proc/#/mountinfo contains reference to the one device only. Maybe we can add some
42 btrfs specific code to provide a better output for FS based stacks. Not sure.
43 https://bugzilla.redhat.com/show_bug.cgi?id=1084453
44
45 nsenter(1)
46 ----------
47 - read the default UID and GID from the target process.
48 http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/9553/focus=9585
49
50 hwclock
51 ------
52 - use /var/lib/hwclock/drift to store hw-clock drift numbers.
53 - use /etc/adjtime as read-only for UTC/LOCAL information only
54 - the /var/lib/hwclock/drift should be implemented backwardly compatible,
55 it means use the file only if exists, otherwise follow /etc/adjtime
56
57 bash completion
58 ---------------
59 - Optional argument handling requires user to press backspace to get
60 argument completion.
61 - Comma separated value, e.g., --output 'value1,value2', are not
62 completed for users.
63
64 libmount (mount/umount)
65 -----------------------
66
67 - mnt_context_get_excode() does not return error messages from /sbin/[u]mount.<type>
68 external helpers. It is disadvantages in same cases (non-terminal progarms).
69 The solution is to use pipe(), keep output from helper in memory and return it later
70 by mnt_context_get_excode() (or mnt_context_get_helper_output(), etc.). This feature
71 should be optional and disabled by default.
72 see: https://github.com/karelzak/util-linux/issues/1208
73
74 - add --onlyonce to force mount(8) to check if mountpoint is already used. Now
75 "already mounted" detection is used for --all only. The problem is if you
76 call "mount <mountpoint>" more than once for in fstab defined tmpfs (or network
77 filesystem etc.). In this case kernel does not return EBUSY, but a new instance
78 of the FS is created. https://github.com/karelzak/util-linux/issues/448
79 (... just idea, maybe wrong idea)
80
81 partx
82 -----
83
84 - support mapping by device-mapper if argv[0] is "kpartx" or --dm option is used.
85
86
87 getopt
88 ------
89 It would be great if getopt could optionally ignore unknown options.
90 Currently, it outputs -- for every option it doesn't recognize but leaving the
91 option as it is could beneficial wrapper scripts which could then pass the
92 options they don't recognize as they are to the command they are wrapping.
93 https://github.com/karelzak/util-linux/issues/701
94
95 docs
96 ----
97
98 - (!) use something better than gtk-doc for libmount and libblkid (doxyden?)
99
100 - (!) add API documentation to libuuid
101
102 - (!) rewrite man pages to AsciiDoc and generate final man pages by Asciidoctor & Docbook
103
104 login-utils:
105 -----------
106
107 - consolidate newgrp(1)
108 * we have "su --group/--supp-group" to switch between groups, newgrp(1) in
109 util-linux and shadow-utils (and sg(1) alias in shadow-utils)
110 * the unique functionality provided by newgpr(1) is support for group
111 passwords [/etc/gshadow] -- do we really need this functionality?
112 * maybe we can mark group-passwords as deprecated, and replace sg(1) and
113 newgpr(1) with su(1) code. The another way is to ask for group password in
114 su --group too.
115 * note that shadow-utils newgpr(1) provides support for syslog and audit log.
116
117
118 libblkid
119 --------
120
121 - extend ZFS proper to scan for more uberblocks if BLKID_SUBLKS_MAGIC flag is set.
122 This solution will make wipefs(8) more usable as ZFS is extremely variable with
123 additional root blocks locations. See https://github.com/karelzak/util-linux/issues/1228
124
125 - (!) add support for BitLocker Drive Encryption
126 https://github.com/karelzak/util-linux/issues/617
127 https://github.com/libyal/libbde/blob/master/documentation/BitLocker%20Drive%20Encryption%20(BDE)%20format.asciidoc
128
129 - (!) add support for dasd PT (used for example on s390)
130
131 libfdisk
132 --------
133
134 - add support for Apple Partition Map (see libblkid/src/partitions/mac.c)
135 http://en.wikipedia.org/wiki/Apple_Partition_Map
136
137 - add support for nested PT (e.g. hybrid MBR) to scripts
138 * add "nested-label:" block to sfdisk --dump
139 * add "nested-partitiontable" to sfdisk --JSON
140 * support nested labels parsing from dump
141 see https://github.com/karelzak/util-linux/issues/850
142
143 sfdisk
144 ------
145
146 - don't backup PT in interactive mode before write to the devices is requested,
147 see https://github.com/karelzak/util-linux/issues/852
148
149 misc
150 ----
151
152 - add mllockall() and SCHED_FIFO to hwclock,
153 see http://lkml.org/lkml/2008/10/12/132
154
155
156 ---------------
157 exotic requests
158 ---------------
159
160 - add SELinux security contexts support to the 'ipcs' utility
161 http://bugzilla.redhat.com/show_bug.cgi?id=225342
162
163 Would be great to list the current system IPC Objects with their respective
164 security labels (where allowed) with something like 'ipcs -Z' - following the
165 way other tools reports those.
166
167