Upload Tizen:Base source
[framework/base/util-linux-ng.git] / TODO
1 libblkid
2 --------
3
4  - add command line interface for blkid_probe_filter_types():
5
6        # blkid -p -o udev --filter-type nofat
7
8  - (?) we need to ignore cache and config files when the files are writable
9    for non-root users and the library is linked with suid programs
10
11  - add -<BE|LE> suffix to test images for native-endian filesystems (e.g. swap)
12    and add support for such functionality to tests/ts/blkid/low-probe
13
14  - do we really need to depend on libuuid? Maybe the default should be
15    use in-tree code rather and link against libuuid -- especially when we
16    need it for uuid_unparse() only.
17
18  - consolidate "getsize" stuff (see getsize.c and lib/blkdev.c)
19
20  - cleanup __attribute__ usage
21
22  - add stripe size / alignment retrival support to libbkid for use
23    with mkfs.  This would allow to deprecate libdisk from xfsprogs (1)
24    in favour of a common libblkid.
25
26    [ -- Christoph Hellwig, 16 Feb 2009 ]
27    (1) http://git.kernel.org/?p=fs/xfs/xfsprogs-dev.git;a=tree;f=libdisk;
28
29  - use fstatat() in blkid__scan_dir()
30
31  - add values:
32
33         FSSIZE   -- filesystem size (klibc requirement)
34
35         SBOFFSET -- superblock offset; offset where SB was detected 
36                     (swapon requirement to check details from swap header)
37
38         MAGIC    -- magic string
39         MAGICLEN -- length of magic string
40
41 fdisk(s)
42 --------
43
44  * use off_t instead "long long"
45
46  * fdisk/* refactoring
47
48  * add GPT support
49
50 misc
51 ----
52
53  * add a new command (unshare, clone, or so...) with all kinds of
54    clone(2) options.
55    http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2178
56
57  * add to lib/blkdev.c code for /proc/partitions parsing -- unfortunate we
58    duplicate this code in many places. The parser has to support unlimited
59    size (or 4096 bytes) of partition name.
60
61  * partx: copy sun.c, mac.c and dash.c from kpartx
62    git://git.kernel.org/pub/scm/linux/storage/multipath-tools/.git
63
64  * mkswap: use /proc/sys/kernel/random/uuid as a fallback solution for builds 
65    without libuuid
66
67  * swapon -s  -- LABELs support
68
69    Although mkswap has recently been -L option to create a label nothing appears to
70    have been change to swapon to display said labels. (rh#430386)
71
72  * use TZ=UTC for tests
73
74  * add NLS and err.h stuff to schedutils (chrt.c, taskset.c)
75
76  * add mllockall() and SCHED_FIFO to hwclock,
77    see http://lkml.org/lkml/2008/10/12/132
78  
79  * use rpmatch() for all Y/N questions
80
81  * mount -a -- reorder fstab entries by paths before mount (just idea only)
82
83  * mount -a  (just idea only)
84
85         Date:   Sun, 3 Jun 2007 18:04:24 +0300 (MET DST)
86         From: Szabolcs Szakacsits <szaka@sienet.hu>
87
88         In the past the right record order could be figured out easily by just
89         checking out fstab (if one knew what to look for) but considering the
90         fastly increasing number of user space file systems and their usage, with
91         their path, library, etc dependencies, it's getting trickier and is a black
92         magic for most users because they simply expect drives to be mounted
93         independently of their order in fstab.
94
95         One typical, wrongly edited fstab example is:
96
97           /dev/hda2 /             ext3      defaults  1 1
98           /dev/hda1 /mnt/windows  ntfs-3g   defaults  0 0
99           /dev/hda3 /usr          ext3      defaults  0 0
100
101         The events:
102
103           mount  ->  /sbin/mount.ntfs-3g  ->
104                  ->  resolves to <path1>/ntfs-3g via a symlink ->
105                  ->  ntfs-3g requires at least <path2>/libfuse*
106
107         There are many potential solutions. For example installing everything on
108         the root file system which may be needed for successful mount. But this
109         is not always feasible or practical since we could end up putting almost
110         everything on the root file system in the end.
111
112         Another idea is an improved mount strategy:
113
114           do {
115                 try to mount all unmounted entries
116           } while (not all mounted && at least one new was successfully mounted)
117
118  * agetty: use nl_langinfo() for days and months rather than hardcoded
119    English names.
120
121  * rewrite ipcs to use /proc/sys/kernel rather than unreliable syscalls
122    (there are problems with 32bit userspace on 64bit kernel)
123
124  * minix v3
125
126         From: Matthias Koenig <mkoenig@suse.de>
127         Date:   Tue, 25 Sep 2007 12:00:01 +0200
128
129         It seems that the kernel has support for minix fs v3
130         (though I have not tried it, just inspected some code when
131         trying to find a mkfs.minix issue).
132         It might be worth a thought implementing v3 support
133         (though I am not really sure how much people us minix fs ;-)
134         This might require some major code cleanup in mkfs.minix.
135
136  * rtcwake does not support wake from S5/off
137    http://bugzilla.redhat.com/show_bug.cgi?id=449115
138
139  * add SELinux security contexts support to the 'ipcs' utility
140    http://bugzilla.redhat.com/show_bug.cgi?id=225342
141
142    Would be great to list the current system IPC Objects with their respective
143    security labels (where allowed) with something like 'ipcs -Z' - following the
144    way other tools reports those.
145
146