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