summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
Commit message (Collapse)AuthorAgeFilesLines
* hwclock: move path definitions to pathnames.hSami Kerola2011-07-261-0/+9
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lib: [loopdev.c] add module for work loop devicesKarel Zak2011-05-301-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty.c: move issue path to pathnames.hSami Kerola2011-04-271-0/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: check for paths.hFabian Groffen2011-01-201-0/+2
| | | | | | paths.h doesn't exist on Solaris Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libmount: add /etc/fstab.d supportKarel Zak2011-01-031-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: use /sys/dev/block/.../loop/backing_fileKarel Zak2010-12-011-0/+1
| | | | | | | | | | | | | | | | | The basic loopdev attributes are available in sysfs since kernel 2.6.37. This patch uses the backing_file attribute from sysfs for very long filenames (the LOOP_GET_STATUS ioctl uses only 64 bytes for the filename). old version: # losetup -a /dev/loop0: [0804]:12865322 (/home/images/filesystems/this_is_really_really_long_directory_*) new version: # losetup -a /dev/loop0: [0804]:12865322 (/home/images/filesystems/this_is_really_really_long_directory_name/ext2.img) Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add new commandKarel Zak2010-06-031-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: move DELETED_SUFFIX to include/pathnames.hKarel Zak2010-04-021-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add blkid_probe_all_removable()Karel Zak2010-02-011-0/+2
| | | | | | | | | | | | | | The libblkid probing is based on devices from /proc/partitions by default. This file usually does not contain removable devices (e.g. CDROMs) and this kind of devices are invisible for libblkid. The blkid_probe_all_removable() function adds removable block devices to blkid cache. The probing is based on information from the /sys directory. The devices which were detected by this function won't be written to blkid.tab cache file. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=533874 Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add blkid_driver_has_major()Karel Zak2009-09-181-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: add S5 supportKarel Zak2009-09-071-0/+1
| | | | | | | | | | | | | | | | | | | | | Based on patch from Piergiorgio Sartor <piergiorgio.sartor@nexgo.de> at https://bugzilla.redhat.com/show_bug.cgi?id=449115 Piergiorgio's note about S5: > According to the ACPI specifications, chapter 4.7.2.4 "Real Time > Clock Alarm", the wakeup from RTC, when supported, should work from > *sleep* state S1-S3 and, optionally, from S4. > > Note 3 (same chapter) says that S5 is *not* a sleep state and should > not be supported. Actually it also says that: "The OS will disable > the RTC_EN bit prior to entering the G2/S5 or G3 states regardless." > > Nevertheless, on all PC supporting the RTC wakeup I tested, all were > able to wake from S5. Signed-off-by: Karel Zak <kzak@redhat.com>
* include: fix _PATH_DEVKarel Zak2009-07-021-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: clean up _PATH_DEV_* macrosKarel Zak2009-06-301-1/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: cleanup _PATH_DEV_* macrosKarel Zak2009-02-061-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: looplist_* refactoring, remove scandir()Karel Zak2008-08-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This patch replaces scandir-based implementation with readdir(). The readdir(3) is less expensive and more portable (to non-glibc environment). The patch also replaces sysfs-based solution with simpler /proc/partitions parsing. The /proc/partitions includes all used loop devices on all systems (include 2.4). This solution seems faster than scandir(/sys/block/) too. Summary, the losetup (with this patch) uses three methods to found a loop device: a) parse /proc/partitions to found already used loop devices (for loserup -a) b) stat(2) for all loop[0-7] devices (default number of loop devices). This is classic method from util-linux <= 2.13. This method is good enough for standard Linux machines with default number of loop devices. c) scan all /dev or /dev/loop/ for loop devices. This is useful for crazy people who need more than 8 loop devices. Signed-off-by: Karel Zak <kzak@redhat.com>
* include: add mount paths to pathnames.hKarel Zak2007-11-281-2/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: cleanup pathnames.hKarel Zak2007-11-281-97/+14Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* newgrp: add support for /etc/gshadowKarel Zak2007-03-211-0/+3
| | | | | | | | | | | The original newgrp command doesn't expect group pasword in /etc/gshadow although almost all distributions use this file (and the gpasswd command). The newgrp from util-linux is deprecated and better is use shadow-utils only. Unfortunately, shadow-utils are broken too (see RH version where is bugfix). In this case it's better fix util-linux version at least... Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-0/+152