diff options
author | Karel Zak <kzak@redhat.com> | 2009-09-25 14:40:23 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-09-25 14:57:17 +0200 |
commit | f38fd19d2b0367f5f4517ba30a8964802c7ce1ab (patch) | |
tree | a0c3e7083307ef5ef708d6e1f234e4691058ca4b /TODO | |
parent | 0d17b1cf91f5c1a41660e8f240f9ff11259fcf1a (diff) | |
download | util-linux-old-f38fd19d2b0367f5f4517ba30a8964802c7ce1ab.tar.gz |
libblkid: use fstatat(), improve readdir() usage
* fix possible memory leak in ubi_probe_all()
* use dirent->d_type if available (this is tricky, because d_type
is not supported on all systems and some filesystems returns
DT_UNKNOWN). The dirent->d_type allows to avoid unnecessary stat()
calls.
* use fstatat() if available -- allows to avoid malloc() and
sprintf("%s/%s", dirname, dirent->d_name)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -26,8 +26,6 @@ libblkid [ -- Christoph Hellwig, 16 Feb 2009 ] (1) http://git.kernel.org/?p=fs/xfs/xfsprogs-dev.git;a=tree;f=libdisk; - - use fstatat() in blkid__scan_dir() - - add values: FSSIZE -- filesystem size (klibc requirement) |