summaryrefslogtreecommitdiffstats
path: root/sys-utils
Commit message (Collapse)AuthorAgeFilesLines
* tunelp.8: formattingPeter Breitenlohner2009-08-171-16/+43
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* switch_root.8: formattingPeter Breitenlohner2009-08-171-3/+2Star
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* setsid.1: formattingPeter Breitenlohner2009-08-171-1/+3
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* setarch.8: formattingPeter Breitenlohner2009-08-171-4/+10
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* rtcwake.8: formattingPeter Breitenlohner2009-08-171-4/+12
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* renice.1: formattingPeter Breitenlohner2009-08-171-4/+4
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* readprofile.1: formattingPeter Breitenlohner2009-08-171-20/+18Star
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* rdev.8: formattingPeter Breitenlohner2009-08-171-11/+39
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* pivot_root.8: formattingPeter Breitenlohner2009-08-171-7/+6Star
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* lscpu.1: formattingPeter Breitenlohner2009-08-171-3/+6
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* ldattach.8: formattingPeter Breitenlohner2009-08-171-5/+7
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* ipcs.1: formattingPeter Breitenlohner2009-08-171-4/+12
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* ipcrm.1: formattingPeter Breitenlohner2009-08-171-8/+2Star
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* ipcmk.1: formattingPeter Breitenlohner2009-08-171-6/+18
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* dmesg.1: formattingPeter Breitenlohner2009-08-171-3/+9
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* ctrlaltdel.8: formattingPeter Breitenlohner2009-08-171-4/+4
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* cytune.8: missing description of `-S', formattingPeter Breitenlohner2009-08-171-24/+40
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* dmesg: add -r to help outputKarel Zak2009-08-171-2/+2
| | | | | | | | | On Tue, Aug 04, 2009 at 05:52:38PM +0200, Dalibor Straka wrote: > while I was reading the source, I've noticed missing option in the > help message for "-r". So I'm sending one-line patch for dmesg. Reported-by: Dalibor Straka <dast@panelnet.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* switch_root: add subroot supportDaniel Drake2009-07-141-5/+76
| | | | | | | | | | | | | | | | | | | | | | The current switch_root can only switch to a new root that is the root of a mount point. This patch adds support for "subroots", where the new root is somewhere below a mount point. It does this by adding in a few extra steps to chroot into the subroot after the enclosing partition has been moved and entered. This will be used by OLPC, who sort-of have 2 copies of Fedora stored on a single partition under different directory trees, where the initramfs decides which one to boot into [kzak@redhat.com: - port to the current u-l-ng switch_root code - don't use static buffer for "dir" in get_parent_mount()] CC: Peter Jones <pjones@redhat.com> Signed-off-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: rename to _execdirKarel Zak2009-07-041-9/+9
| | | | | | | | | | | | The variable name "usrlibexecdir" is very confusing (because we have /usr/libexec). The "exec" prefix is required for user-defined directories, see http://www.gnu.org/software/hello/manual/automake/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install This patch renames all usr*execdir variables to usr*_execdir. Signed-off-by: Karel Zak <kzak@redhat.com>
* ldattach: add N_PPS supportTilman Schmidt2009-06-292-2/+10
| | | | | | | | | Add support for a line discipline name "PPS" selecting the Pulse Per Second line discipline N_PPS (18). The number has been reserved since kernel release 2.6.28, and the implementation is finally going to be submitted for kernel release 2.6.31. Signed-off-by: Tilman Schmidt <tilman@imap.cc>
* switch_root: do recursiveRemove after our root is moved to avoid races.Peter Jones2009-06-221-9/+10
| | | | | | | This way there's no race between unlinking the /newroot directory and the MS_MOVE/chroot() to get away from it. Signed-off-by: Peter Jones <pjones@redhat.com>
* switch_root: fork before cleaning up the filesystem.Peter Jones2009-06-221-1/+7
| | | | | | | Fork before cleaning up the old filesystem, so it becomes asyncronous, which results in a faster boot time. Signed-off-by: Peter Jones <pjones@redhat.com>
* switch_root: use file descriptor instead of path for recursiveRemove()Peter Jones2009-06-221-12/+20
| | | | | | | | This makes recursiveRemove() use fdopendir() instead of taking a path, so we're always sure about which namespace we're starting from. Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* switch_root: add man pageKarel Zak2009-06-222-0/+50
| | | | | Acked-by: Peter Jones <pjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* switch_root: use snprintf() rather tan str{cpy,cat}()Karel Zak2009-06-221-3/+4
| | | | | Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* switch_root: clean up argv[] usage, add -h and -VKarel Zak2009-06-221-20/+27
| | | | | Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* switch_root: use err.h, clean up return codesKarel Zak2009-06-221-28/+25Star
| | | | | Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* switch_root: rewrite to use fstatat() and unlinkat()Karel Zak2009-06-221-43/+44
| | | | | Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* switch_root: fix coding styleKarel Zak2009-06-221-80/+70Star
| | | | | | Signed-off-by: Peter Jones <pjones@redhat.com> Acked-by: Peter Jones <pjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-switch_rootKarel Zak2009-06-221-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* switch_root: new commandKarel Zak2009-06-223-1/+200
| | | | | | | | | | | | | | | | | | | | | | Copied from Dracut project: git://dracut.git.sourceforge.net/gitroot/dracut switch_root history in dracut.git repository: $ git shortlog switch_root.c Harald Hoyer (5): replace switch_root shell script with binary add \n to switch_root use switch_root code from http://pjones.fedorapeople.org/mkstart/usr/lib/mkstart/switchroot.c mount move instead of umount and fix the search for fallback inits setsid() and set controlling terminal for real /sbin/init Victor Lowther (2): Simplify switch_root.c a bit Remove all files on the initramfs before switching root Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: fix cpuid code on x86/PICMike Frysinger2009-05-111-3/+13
| | | | | | | | | | | | If we build lscpu as PIE, we currently get a build failure: lscpu.c: In function 'main': lscpu.c:333: error: can't find a register in class 'BREG' while reloading 'asm' lscpu.c:333: error: 'asm' operand has impossible constraints make[2]: *** [lscpu.o] Error 1 So we need a little bit of register shuffling to keep gcc happy. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* flock: add NLS support, remove tailing white-spacesKarel Zak2009-03-111-18/+24
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: fix printf format error in usage()Karel Zak2009-03-111-5/+5
| | | | | | | flock.c: In function ‘usage’: flock.c:75: warning: too few arguments for format Signed-off-by: Karel Zak <kzak@redhat.com>
* flockc: segfaults when file name is not givenKarel Zak2009-03-111-1/+8
| | | | | | | | | | | | | | | | $ flock -s Segmentation fault ltrace: __libc_start_main(0x8048870, 2, 0xbfe9f404, 0x8049070, 0x8049060 <unfinished ...> getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = 115 getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = -1 strtol(0, 0xbfe9f34c, 10, 0x80494e0, 0xbfe9f354 <unfinished ...> --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ Addresses-Red-Had-Bugzilla: #489672 Signed-off-by: Karel Zak <kzak@redhat.com>
* renice: add -n option for compatibility with POSIXKarel Zak2009-03-092-4/+15
| | | | | | The -n option is required by POSIX.1-200x. Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: add mising .RE to the man pageKarel Zak2009-01-291-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: explain supported modes in rtcwake.8Karel Zak2009-01-261-3/+26
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: support not suspendingMarco d'Itri2009-01-262-6/+10
| | | | | | | | | | People usually want to use pm-utils to suspend the system instead of the raw kernel interface, so I added an option to just exit after configuring the wakeup time. Actually I think that all the suspend code should be removed from rtcwake, since it does not really belong there. Signed-off-by: Marco d'Itri <md@linux.it>
* dmesg: Add -r (raw) option.Adam Jackson2009-01-162-3/+10
| | | | | | | Useful for debugging which kernel messages are ruining your quiet bootup. Signed-off-by: Adam Jackson <ajax@redhat.com>
* flock: Allow lock directoryAlexey Gladkov2008-12-032-4/+11
| | | | | | | | | | With this patch, you can lock directory. Additionally, lockfile opens with O_NOCTTY. Try to open file with O_CREAT flag first, and without it if open fails with EISDIR. Suggested by H. Peter Anvin. Signed-off-by: Alexey Gladkov <legion@altlinux.org>
* rdev: cleanup includesKarel Zak2008-11-261-10/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* pivot_root: clean upKarel Zak2008-11-191-15/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move pivot_root(8) to sys-utilsKarel Zak2008-11-194-14/+120
| | | | | | | | This patch moves pivot_root.{8,c) from mount/ to sys-utils/ directory. There is not ant relation between pivot_root source code and the rest of code in the mount. Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: return EXIT_SUCCESS at the endMatthias Koenig2008-10-221-1/+1
| | | | Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* lscpu: add Hypervisor detectionKarel Zak2008-10-222-20/+166
| | | | | | | | | | | | | | | This patch adds two new fields: * "Hypervisor vendor" -- based on CPUID and hypervisor specific PCI devices. lscpu(1) supports KVM, XEN, Microsoft HV now. * "Virtualization type" - "none" = Xen dom0 - "full" = full virtualization (KVM, Xen, ...) - "para" = Xen paravirtualization Co-Author: Ky Srinivasan <ksrinivasan@novell.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: fix exit codes, remove tailing white-spacesKarel Zak2008-10-071-76/+61Star
| | | | | Addresses-Red-Hat-Bugzilla: #465911 Signed-off-by: Karel Zak <kzak@redhat.com>
* readprofile: several strings without gettext callsPedro Ribeiro2008-10-031-3/+3
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcmk: add NLS supportKarel Zak2008-09-101-10/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>