Commit Graph

1743 Commits

Author SHA1 Message Date
Karel Zak 387ade2a24 umount: add --no-canonicalize
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-17 12:33:21 +01:00
Karel Zak be9adec40f mount: disable --no-canonicalize for non-root users
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-17 12:30:46 +01:00
Karel Zak 7e6bd2c5c1 tests: add silicon RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:08:14 +01:00
Karel Zak 75ee7085b3 tests: add promise RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:07:53 +01:00
Karel Zak 148a015df7 tests: add nvidia RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:07:10 +01:00
Karel Zak a1d39e5b1a tests: add lsi RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:06:18 +01:00
Karel Zak 19295f3880 tests: add jmicron RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:05:54 +01:00
Karel Zak 44b4ef8f68 tests: add isw RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:04:44 +01:00
Karel Zak ced072017e tests: add hpt45x RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:04:02 +01:00
Karel Zak 0c28347a2a tests: add hpt37x RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:01:40 +01:00
Karel Zak d35c40e237 tests: add adaptec RAID test
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 14:01:03 +01:00
Karel Zak 9c100401c8 libblkid: rename highpoint RAIDs to hpt{37,45}x_raid_member
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 12:30:02 +01:00
Karel Zak 2f0eb081ff libblkid: fix highpoint37x detection
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 11:55:27 +01:00
Karel Zak 8b9e7578a7 libblkid: fix Adaptec RAID detection
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-15 02:17:28 +01:00
Karel Zak b6ac30e130 docs: add LGPLv2+ to list of licenses
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-14 12:47:56 +01:00
Karel Zak e05dc07770 build-sys: release++ (v2.17-rc3)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-10 22:05:07 +01:00
Karel Zak 6ed33b39c1 docs: update v2.17 ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-10 22:01:13 +01:00
Karel Zak 08c224b4a9 po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-10 21:55:38 +01:00
Mikel Olasagasti Uranga be15a7fe27 po: update eu.po (from translationproject.org) 2009-12-10 21:50:46 +01:00
Petr Pisar b6de83b5a8 po: update cs.po (from translationproject.org) 2009-12-10 21:50:46 +01:00
Karel Zak e1f2853af7 docs: add ngettext() into TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-10 13:14:55 +01:00
Karel Zak 04c944419d po: fix msgid bugs
Reported-by: Petr Pisar <petr.pisar@atlas.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-10 13:04:41 +01:00
Karel Zak 6596057175 lib: bug (typo) in function MD5Final()
On Wed, Dec 09, 2009 at 10:08:38PM +0000, Jochen Voss wrote:
> while experimenting with coccinelle, I accidentally found what I
> believe is a bug in util-linux-ng release 2.17-rc2 (downloaded
> today). The problem is the following code in lib/md5.c (around line
> 153):
>
>     void MD5Final(unsigned char digest[16], struct MD5Context *ctx)
>     {
>   [...]
>   memset(ctx, 0, sizeof(ctx));        /* In case it's sensitive */
>     }
>
> The third argument of memset should probably be the size of 'struct
> MD5Context' instead of the size of the pointer.  So my guess is
> that the memset line should be
>
>   memset(ctx, 0, sizeof(*ctx));       /* In case it's sensitive */
>
> instead.  I don't know whether this actually causes a problem,
> but the comment makes it seem possible that it does.

Note, this typo does not have any impact on the utils in the
util-linux-ng project, because we don't use MD5 for any security
sensitive data or cryptographic stuff. The typo also does not have any
impact to the final MD5 hashes.

Reported-by: Jochen Voss <voss@seehuhn.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-10 11:59:46 +01:00
Karel Zak 9a39edc1ab build-sys: release++ (v2.17-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-09 12:02:58 +01:00
Karel Zak eb7c8ae88c docs: update v2.17 ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-09 11:44:38 +01:00
Karel Zak ccf2f2b84b docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-09 11:39:33 +01:00
Karel Zak 11f69289bb po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-09 11:37:57 +01:00
Jakub Bogusz 4de7d35649 po: update pl.po (from translationproject.org) 2009-12-09 11:31:37 +01:00
Karel Zak ef5d1feb93 docs: update TODO list
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-08 20:39:52 +01:00
Mike Frysinger 60cd48bd14 flock: fix hang when parent ignores SIGCHLD
If flock is executed from a process which has set SIGCHLD to SIG_IGN, then
flock will eat cpu and hang indefinitely if given a command to execute.
So before we fork(), make sure to set SIGCHLD handling back to the default
so that the later waitpid() doesn't freak out on us.

[kzak@redhat.com: - add a check for waitpid() return value]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-07 15:23:40 +01:00
Karel Zak 8179a658a4 docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-04 20:58:19 +01:00
Karel Zak 283a8c1598 tests: remove vol_id from tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-04 20:30:16 +01:00
Karel Zak 22aa51661b build-sys: check for pkg-config before gtk-doc
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-04 20:01:37 +01:00
Karel Zak fc31c7e5b2 libblkid: fix blkid_fstatat() code
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-04 18:44:57 +01:00
Karel Zak d7a0158242 build-sys: rewrite TLS detection
* use more robust tls.m4 from gcc project

   The old version (from util-linux-ng) used AC_TRY_COMPILE. That's
   wrong. We need to use AC_RUN_IFELSE to check that the result is
   link-able and executable.

   The new version also test it TLS really works in multi-thread
   applications.

 * we need to detect TLS usability for cross-compiling

 * this new version supports __thread keyword only, it seems that we
   needn't to care about anything other

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-04 15:45:19 +01:00
Karel Zak eb351926e2 mount: add squashfs to mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-03 15:49:15 +01:00
Karel Zak 45fc569a75 mount: add --no-canonicalize option
For example the /sbin/mount.fuse command calls

	mount -i -f /dev/foo /absolut/path

and it does not make sense to canonicalize already absolute paths. The
new --no-canonicalize option allows to avoid unwanted readlink()
calls.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-03 15:30:53 +01:00
Karel Zak be779d181d mount: move info about devices to the top of mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-02 13:35:18 +01:00
Karel Zak 8f43c4cce8 mount: add a note about /dev/disk/by-* to mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-02 13:30:03 +01:00
Karel Zak 25f4fd6060 tests: add UFS test image for libblkid
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-02 12:24:23 +01:00
Karel Zak 7af0caa726 tests: add VIA RAID test image for libblkid
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-02 12:03:18 +01:00
Américo Wang 2c9f0e8e7f hexdump: bug in hexdump when offset == file length
On Thu, Nov 26, 2009 at 03:42:21AM -0500, Mike Smith wrote:
>[mike@laptop ~]$ dd if=/dev/urandom of=testfile bs=1 count=42
>42+0 records in
>42+0 records out
>42 bytes (42 B) copied, 0.000216179 s, 194 kB/s
>[mike@laptop ~]$ hexdump -Cv testfile -s 42
>0000002a  bb b0 ba 50 fe 70 f8 d9  f7 96 36 49 e9 74 c7 bd  |...P.p....6I.t..|
>0000003a  82 cb 19 64 a6 30 53 29  d2 fa 08 e3 f4 26 7f de  |...d.0S).....&..|
>0000004a  bb 2c f2 df 7c a7 8c 6e  66 01                    |.,..|..nf.|
>00000054
>[mike@laptop ~]$ hexdump -Cv testfile -s 43
>0000002a

I think I got where the bug is, it's an off-by-one problem...

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
2009-12-01 13:23:05 +01:00
Ludwig Nussel 0779255c13 fsck: document fsck behavior wrt nofail option and fstype 'auto' 2009-12-01 12:21:10 +01:00
Sebastian Andrzej Siewior be5c9e1ed2 mount: add ubifs to the mount.8 man page
ubifs got merged into the linux kernel in v2.6.27. This patch adds its mount
options.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
2009-12-01 12:20:51 +01:00
Ludwig Nussel 1bb516c34b fsck: honor nofail option in fsck
analog to mount gracefully ignoring non existing devices if the "nofail"
option is specified in fstab, also have fsck -A skip them. This way it's
possible to have devices optionally not available during boot but still
have them fsck'd if they are there.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
2009-12-01 12:15:10 +01:00
Karel Zak c2deb20f74 mount: better --move description
Reported-by: Paul Johnson <pauljohn@ku.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-01 10:33:33 +01:00
Karel Zak e7fee55205 libblkid: fix UFS detection
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-26 23:59:47 +01:00
Mike Frysinger c457971213 tailf: fix printf format
ssize_t types are shown with %zd, not %ld.

Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-11-23 10:14:56 +01:00
Karel Zak 3cb5555181 build-sys: release++ (v2.17-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-20 16:54:22 +01:00
Karel Zak 1a7a5af574 docs: add v2.17 ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-20 16:49:03 +01:00