summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-11-14mount: correct mount man page default iso9660 permissionPhillip Susi1-1/+1
The mount man page said the default permissions are read for everyone, but it is in fact, read and execute. Signed-off-by: Phillip Susi <psusi@ubuntu.com>
2013-11-12libmount: cleanup fix_optstr() regards to selinux and smackKarel Zak1-19/+47
It's better (more robust) to make the code based on datetypes rather than on if(strcmp(...)). Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-12build-sys: add --with-smack to config-gen.dKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-12libmount: fix typo in smack pathKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-12libmount: remove smackfs* option when SMACK not enabledKarel Zak2-0/+31
If there is no /sys/fs/smackfs then libmount removes smackfs*= mount options when compiled --with-smack. Note that we do the same for SELinux. References: http://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg13740.html Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-12sulogin: use dirent->d_type when scans /devKarel Zak1-0/+5
... it's more effective than call fstatat() for all device. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-12docs: update links to http://git.kernel.org/ web repository viewsSami Kerola3-3/+3
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-11-12docs: add patching process to howto-contribute.txtSami Kerola1-0/+23
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-11-11chsh, chfn: add info about non-local support to the man pagesKarel Zak2-4/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08tests: update blkid swap testsKarel Zak2-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08hexdump: catch memory leaksOndrej Oprala3-4/+32
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: make addfile() variable names more hinting of their purposeOndrej Oprala1-6/+6
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: use skip_space() in add()Ondrej Oprala1-9/+4
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08strutils: add skip_space() functionOndrej Oprala2-13/+22
[kzak@redhat.com: - add also skip_blank(), - remove duplicate implementation from libmount] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08hexdump: rename in() to first_letter()Ondrej Oprala1-8/+8
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08hexdump: get rid of redundant typecastsOndrej Oprala2-10/+10
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: minor formatting improvements in display()Ondrej Oprala1-13/+22
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08hexdump: rewrite cluttered case statementsOndrej Oprala1-133/+104
[kzak@redhat.com: - use strchr() for in() macro] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08hexdump: use xasprintf in conv_c()Ondrej Oprala1-2/+4
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: delete redundant typecastsOndrej Oprala1-10/+10
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: use GNU case ranges where possibleOndrej Oprala1-4/+4
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: use xstrncpy in add()Ondrej Oprala1-2/+2
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: simplify newsyntax argumentsOndrej Oprala3-7/+5
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: minor formatting improvementsOndrej Oprala1-18/+18
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: rename next{fs,fu,pr} to {fs,fu,pr}listOndrej Oprala4-33/+33
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: rewrite addfile() to use getline()Ondrej Oprala1-9/+8
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: formatting and variable name cleanupOndrej Oprala5-27/+33
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: rewrite() formatting improvementsOndrej Oprala1-29/+28
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: rewrite escape()Ondrej Oprala1-1/+3
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: rewrite rewrite()Ondrej Oprala1-105/+122
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump:rewrite add()Ondrej Oprala1-5/+3
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: rewrite next()Ondrej Oprala1-1/+1
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: rewrite get()Ondrej Oprala1-1/+2
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: rewrite addfile()Ondrej Oprala1-6/+8
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: cleanup of redundant symbols/repeating literalsOndrej Oprala3-26/+27
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: use list.h queues and rewrite redundant for cyclesOndrej Oprala5-104/+141
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08hexdump: add basic testsOndrej Oprala10-26/+306
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08blkid: simple typoPhillip Susi1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08docs: add note about make distcheckKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-07blkid: escape quotes in the outputKarel Zak1-4/+8
# e2label /dev/loop0 'La"bel' # blkid -p /dev/loop0 /dev/loop0: LABEL="La"bel" .... new version: /dev/loop0: LABEL="La\"bel" .... Reported-by: Phillip Susi <psusi@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-05tests: add sparc64 lscpu testKarel Zak2-0/+17
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-05lscpu: support non sequentially numbering of CPUsAlexander Troosh2-49/+87
lscpu don't work correctly on my system with: $ cat /sys/devices/system/cpu/possible 0-1,4-5,8-9,12-13 [kzak@redhat.com: - coding style, - add commit message - add real_cpu_num() macro, - fix functions where we need idx as well as CPU number] Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-04blockdev: don't use HDIO_GETGEOPhillip Susi1-5/+15
blockdev was still using this depreciated ioctl and that was causing blockdev --report to fail on loop and nbd devices. Switch to reading the partition start from sysfs instead. This also allows it to correctly report > 2^32 sector counts. [kzak@redhat.com: - check sysfs_init() return, - use uint64_t rather than unsigned long long] Signed-off-by: Phillip Susi <psusi@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-04blkdiscard: BLKSSZGET fills in an int, not a uint64Theodore Ts'o1-2/+2
Reported-by: Jason Cipriani <jason.cipriani@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2013-11-04libmount: update utab after successful extern helper mountKarel Zak3-10/+84
This patch allows to maintain private utab libmount file also for external mount/umount helpers that are not linked with libmount. The libmount check if utab has been updated after successful extern helper execution (status=0). If not then the file is updated. This patch affects only 'user' fstab mount option. So, for example with suid mount.cifs you can use: //server/foo /mnt cifs username=foo,noauto,user Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-04libmount: allow to use -s (sloppy) for all external helpersKarel Zak1-6/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-04libblkid: fix swap-area versionKarel Zak1-3/+3
* v1: hdr->version = 1, magic string = SWAPSPACE2 * v0: no versio in header, magic string = SWAP-SPACE The mistake has been introduced in the old udev volume_id binary where the version was set according to magic string. Reported-by: Phillip Susi <psusi@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-01libfdisk: (sun) fix end sectors with +1 errorKarel Zak1-1/+1
partx (or parted, etc.): NR START END SECTORS SIZE NAME UUID 1 0 410047 410048 200.2M 2 410048 82329055 81919008 39.1G 4 82329056 102807615 20478560 9.8G 5 102807616 110999039 8191424 3.9G 6 110999040 312580543 201581504 96.1G and the same with fdisk: Device Flag Start End Blocks Id System /dev/loop0p1 0 410048 205024 1 Boot /dev/loop0p2 410048 82329056 40959504 83 Linux native /dev/loop0p3 0 312580544 156290272 5 Whole disk /dev/loop0p4 82329056 102807616 10239280 83 Linux native /dev/loop0p5 102807616 110999040 4095712 83 Linux native /dev/loop0p6 110999040 312580544 100790752 8e Linux LVM Reported-by: Phillip Susi <psusi@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-31mount: improve -s man mage infoKarel Zak1-4/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-31libfdisk: (gpt) add /home GUIDKarel Zak1-0/+1
Reported-by: andreas.hanke@gmx-topmail.de References: http://cgit.freedesktop.org/systemd/systemd/commit/?id=1a14a53cfded6e78c6e8dfb73fdff0039971d642 Signed-off-by: Karel Zak <kzak@redhat.com>