~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to TODO

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 Note that items with (!) have high priority.
 
3
 
 
4
dmesg
 
5
-----
 
6
 
 
7
 - add --follow option
 
8
   http://www.spinics.net/lists/util-linux-ng/msg04453.html
 
9
 
 
10
 - add --color to colorize err and panic messages
 
11
 
 
12
ldattach
 
13
--------
 
14
 
 
15
  - write usage()
 
16
 
 
17
minix (fsck, mkfs)
 
18
------------------
 
19
 
 
20
 - clean up types -- use ino_t, size_t and ssize_t
 
21
 
 
22
libmount (mount/umount)
 
23
-----------------------
 
24
 
 
25
 Note that the old mount/[u]mount.c code is in MAINTENANCE MODE only. All new
 
26
 features should be implemented to libmount or to the new mount/umount
 
27
 implementation in the libmount/samples/ directory.
 
28
 
 
29
 - (!) on systems with regular mtab file it is impossible to umount by "umount
 
30
   /dev/loop0" if the loop device has been created by "mount -o loop", because
 
31
   there is backing file in the mtab (instead of the device name). 
 
32
 
 
33
   Now we have all necessary information in /sysfs so it should be possible to
 
34
   translate the device name to backing file and then search in mtab for the 
 
35
   filename. See loopdev_get_loopfile().
 
36
 
 
37
 - (!!!) add libmount based umount(8) (see libmount/samples/ where is new mount(8) 
 
38
   implementation.
 
39
 
 
40
 - (!) add --source and --target options to specify device and mountpoint
 
41
 
 
42
     fstab:
 
43
        /dev/sda1 /foo  auto    defaults 0 0
 
44
        /foo      /mnt  auto    bind     0 0
 
45
     command line:
 
46
        mount -o remount,ro /foo
 
47
 
 
48
    ... this command is ambiguous. It would be better to have a way how specify
 
49
    target or source:
 
50
 
 
51
        mount --target /foo -o remount,ro
 
52
 
 
53
    Note that findmnt(8) already supports --target and --source.
 
54
 
 
55
 - add ---target-prefix option to specify prefix for mountpoints
 
56
   so then you can
 
57
 
 
58
        LIBMOUNT_FSTAB=/etc/fstab.foo mount -a --target-prefix=$FOO_ROOT
 
59
 
 
60
   to create a new hierarchy of filesystems at $FOO_ROOT.
 
61
 
 
62
 - umount by label:
 
63
        # mount LABEL=mylabel
 
64
        # umount LABEL=mylabel
 
65
 
 
66
losetup
 
67
-------
 
68
 
 
69
 - (!!!) use new lib/sysfs.c code for losetup(8), the new implementation should
 
70
   be moved to sys-utils/losetup.c.
 
71
 
 
72
 - (!!!) add support for LOOP_CTL_ ioctls (probably will be in kernel 3.1 or 3.2)
 
73
 
 
74
libblkd and libmountL
 
75
----------------------------
 
76
 
 
77
 - use __attribute__((notnull)) and __attribute__((warn_unused_result))
 
78
   Note that the code has to be usefull for non-gcc compilers too.
 
79
 
 
80
partx
 
81
-----
 
82
 
 
83
 - (!) add support loop devices:
 
84
 
 
85
        partx -a /path/file.img
 
86
 
 
87
        * associate the file with loop device (use lib/loopdev.c)
 
88
        * map partitions by BLKPG_ADD_PARTITION
 
89
 
 
90
 - support mapping by device-mapper if argv[0] is "kpartx" or --dm option is used.
 
91
     
 
92
 - (!) add regression tests for partx, addpart and delpart
 
93
 
 
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
 - add Documentation/ directory with:
 
103
           - man page template 
 
104
           - usage() HOW-TO
 
105
           - move README.devel to the Documentation/
 
106
 
1
107
build-sys
2
108
--------
3
109
 
 
110
 - use non-recursive build-sys, see
 
111
   http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/3297
 
112
 
4
113
 - we use something like
5
114
 
6
115
        AC_ARG_ENABLE(...., enable_foo=check)
10
119
                        build_foo=no
11
120
                fi
12
121
        fi
13
 
        AM_CONDITIONAL(BUILD_LIBMOUNT, test "x$build_foo" = xyes)
 
122
        AM_CONDITIONAL(BUILD_FOO, test "x$build_foo" = xyes)
14
123
 
15
124
   for Linux-only utils in configure.ac. It would be nice to set all defaults
16
 
   for all $enable_ variables at begin of the configure script according to
 
125
   for all "$enable_" variables at the begin of the configure script according to
17
126
   $linux_os. Something like:
18
127
 
19
128
        if test "x$linux_os" = xno
31
140
   The configure.ac has to care about dependence between utils and librares and
32
141
   enable BUILD_<utilname>.
33
142
 
34
 
fsprobe
35
 
-------
 
143
lib/tt.c
 
144
--------
36
145
 
37
 
 - remove the lib/fsprobe.c wrapper for libblkid used in mount and fsck. Use
38
 
   everywhere libblkid from util-linux only.
39
 
 - update ./configure script
 
146
 - allows to sort columns, for example sort lsblk(8) output by SIZE
40
147
 
41
148
login-utils:
42
149
-----------
43
150
 
44
151
 - use err() and warn() macros rather than fprintf(stderr, ...)
45
152
 
46
 
losetup
47
 
-------
48
 
 
49
 
 - don't use ioclts if sysfs supports loop attributes (since 2.6.37,
50
 
   block/loopN/loop/* files)
51
 
 
52
 
    - don't open loopdev in looplist_next(), check if /sys/block/loopN/loop
53
 
      exists and returns ll.name rather than file descriptor
54
 
 
55
 
    - add sysfs based version of show_loop() and use it for non-root users
56
 
 
57
 
sysfs
58
 
-----
59
 
 
60
 
 - add lib/sysfs.c with functions that read block device attributes from /sys.
61
 
   For more details see devno.c from libblkid, lsblk.c and lomount.c.
62
 
 
63
 
lib/tt.c
64
 
--------
65
 
 
66
 
 - allows to sort columns, for example sort lsblk(8) output by SIZE
67
 
 
68
153
libblkid
69
154
--------
70
155
 
71
156
 - remove strerrr() from debug messages (use %m) to make BLKID_DEBUG= output
72
157
   thread-safe
73
158
 
 
159
 - (!) don't use internally blkid_loff_t, rather use off_t, size_t, ssize_t,
 
160
       stdint.h types and so on...
 
161
 
74
162
 - add -<BE|LE> suffix to test images for native-endian filesystems (e.g. swap)
75
163
   and add support for such functionality to tests/ts/blkid/low-probe
76
164
 
77
165
 - add FSSIZE value  -- filesystem size (klibc requirement)
78
166
 
79
 
 - add support for dasd PT (used for example on s390)
80
 
 
81
 
 
82
 
blkid(8)
83
 
-------
84
 
 
85
 
  - add something like "blkid --list-known" to list all supported filesystems/raids
86
 
 
87
 
  - add a new option (-r) that allows to print removable block devices that
88
 
    are missing in /proc/partitions, see blkid_probe_all_removable().
89
 
 
90
 
agetty:
91
 
------
92
 
 
93
 
  - review code and make it more simple for normal console (see mingetty)
94
 
  - merge functionality from unmaintained mingetty package to agetty
 
167
 - (!) add support for dasd PT (used for example on s390)
 
168
 
 
169
 - (!!!) support PARTUUID= tag
 
170
 
 
171
   * the partitions probing is already supported by low-level part of the
 
172
     library, but it's necessary add support for this tag also to high-level
 
173
     blkid_cache and blkid_evaluate_* APIs
 
174
 
 
175
   * add blkid -P <PARTUUID>
 
176
 
 
177
   * add PARTUUID to wipefs output
95
178
 
96
179
wipefs
97
180
------
100
183
   one magic string the FS is still detectable by libblkid. We have to inform
101
184
   users that there is more valid magic string for the same FS.
102
185
 
 
186
 - (!!!) allow to wipe partition tables
 
187
 
103
188
fdisk(s)
104
189
--------
105
190
 
106
 
 * sfdisk has to use rpmatch() for answers to y/n questions
 
191
 - add "move end" command to move end of the last primary/extended partition.
 
192
   This feature seems very attractive to users who resizing their disks 
 
193
   (for example in virtual machines).
 
194
 
 
195
 - sfdisk has to use rpmatch() for answers to y/n questions
107
196
   (e.g. "Are you satisfied with this? [ynq]")
108
197
 
109
 
 * sfdisk rounds to cylinders is -uM (megabyte units) is specified, this is
 
198
 - sfdisk rounds to cylinders is -uM (megabyte units) is specified, this is
110
199
   pretty stupid feature. It has to round to sectors if -uS or -uM is specified.
111
200
 
112
 
 * Sun label support is completely useless for large disks, it uses number of
 
201
 - Sun label support is completely useless for large disks, it uses number of
113
202
   cylinders from on-disk-label where the geometry is stored by int16 values.
114
203
   It seems better to completely ignore this stuff from the label and always
115
204
   use geometry + BLKGETSIZE64 from kernel.
116
205
 
117
 
 * use off_t instead "long long"
 
206
 - use off_t instead "long long"
118
207
 
119
 
 * catch SIGINT (Ctrl-C) and return to main menu.
 
208
 - catch SIGINT (Ctrl-C) and return to main menu.
120
209
   From Red Hat bugzilla #545488:
121
210
 
122
211
   While using fdisk normally, if you accidentally pressed the wrong button (to
125
214
   can't provide a blank or invalid input to get it to break out of the current
126
215
   dialog sequence and get back to the main menu.
127
216
 
128
 
 * fdisk/* refactoring
 
217
 - fdisk/* refactoring (probably implement libfdisk ???)
129
218
 
130
 
 * add GPT support (probably implement libfdisk)
 
219
 - add GPT support (probably implement libfdisk ???)
131
220
 
132
221
misc
133
222
----
134
223
 
135
 
 * switch_root:
 
224
 - switch_root:
136
225
     - move all mountpoints to the newroot (there are hardcoded /proc /sys and /dev paths now)
137
226
     - add --dont-move[=<list of dirs>] options
138
227
 
139
 
 * use ngettext() for strings with plurals, for example
140
 
 
141
 
    /* include/nls.h */
142
 
    #define P_(id, id_plural, n)        ngettext(id, id_plural, n)
143
 
 
144
 
    printf(P_("%d used sector",
145
 
              "%d used sectors", sectors),
146
 
              sectors);
147
 
 
148
 
 * use something better than gtk-doc (doxyden?)
149
 
 
150
 
 * use TZ=UTC and LANG=en_US.UTF-8 for tests
151
 
 
152
 
 * add NLS and err.h stuff to schedutils (chrt.c, taskset.c)
153
 
 
154
 
 * add mllockall() and SCHED_FIFO to hwclock,
 
228
 - use TZ=UTC and LANG=en_US.UTF-8 for tests
 
229
 
 
230
 - add mllockall() and SCHED_FIFO to hwclock,
155
231
   see http://lkml.org/lkml/2008/10/12/132
156
232
 
157
 
 * use rpmatch() for all Y/N questions
158
 
 
159
 
 * make chrt, taskset, ... threads aware. Currently these utils work with
160
 
   group leader (master thread) and don't propagate requested changes to 
161
 
   the whole group of threads.  It meas add a new option (e.g. -t):
162
 
 
163
 
        chrt <prio> <pid>     # master thread only
164
 
        chrt -t <prio> <pid>  # whole group of threads
165
 
 
166
 
  Note that we need to scan /proc and call ched_set{scheduler,affinity}
167
 
  syscalls for all individual threads.
168
 
 
169
 
 * umount by label:
170
 
        # mount LABEL=mylabel
171
 
        # umount LABEL=mylabel
172
 
 
173
 
 * mount -a -- reorder fstab entries by paths before mount (just idea only)
174
 
 
175
 
 * mount -a  (just idea only)
 
233
 - use rpmatch() for all Y/N questions
 
234
 
 
235
 
 
236
---------------
 
237
exotic requests
 
238
---------------
 
239
 
 
240
 - mount -a -- reorder fstab entries by paths before mount (just idea only)
 
241
 
 
242
 - mount -a  (just idea only)
176
243
 
177
244
        Date:   Sun, 3 Jun 2007 18:04:24 +0300 (MET DST)
178
245
        From: Szabolcs Szakacsits <szaka@sienet.hu>
207
274
                try to mount all unmounted entries
208
275
          } while (not all mounted && at least one new was successfully mounted)
209
276
 
210
 
 * rewrite ipcs to use /proc/sys/kernel rather than unreliable syscalls
 
277
 - rewrite ipcs to use /proc/sys/kernel rather than unreliable syscalls
211
278
   (there are problems with 32bit userspace on 64bit kernel)
212
279
 
213
 
 * minix v3
214
 
 
215
 
        From: Matthias Koenig <mkoenig@suse.de>
216
 
        Date:   Tue, 25 Sep 2007 12:00:01 +0200
217
 
 
218
 
        It seems that the kernel has support for minix fs v3
219
 
        (though I have not tried it, just inspected some code when
220
 
        trying to find a mkfs.minix issue).
221
 
        It might be worth a thought implementing v3 support
222
 
        (though I am not really sure how much people us minix fs ;-)
223
 
        This might require some major code cleanup in mkfs.minix.
224
 
 
225
 
 * add SELinux security contexts support to the 'ipcs' utility
 
280
 
 
281
 - add SELinux security contexts support to the 'ipcs' utility
226
282
   http://bugzilla.redhat.com/show_bug.cgi?id=225342
227
283
 
228
284
   Would be great to list the current system IPC Objects with their respective