summaryrefslogtreecommitdiff
path: root/disk-utils/raw.c
AgeCommit message (Collapse)AuthorFilesLines
2009-06-29raw: Use the RAW_SETBIND ioctl without stat'ing the raw# fileJeff Mahoney1-26/+32
The in-kernel ioctl code creates a raw# device on-demand. udev will create the /dev/raw/raw# file when the device is created automatically. The current raw userspace code wants to stat the file before using it, which is unnecessary for setting up the raw device. This patch stats the file only when query() is called as a singleton, and it's doubtful it's needed even there. I modified as little code as I could, though. [kzak@redhat.com: - check properly fscanf() return code - add NLS stuff] Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-12-26raw: default to /dev/raw/rawctlKarel Zak1-11/+9
The raw devices are in the raw/ subdirectory. It makes sense to use the same subdirectory also for the control file. The old /dev/rawctl is also supported as a fallback. The #ifdef OLD_RAW_DEVS (/dev/raw<N>) is unsupported from now. Signed-off-by: Karel Zak <kzak@redhat.com>
2008-10-03raw: add NLS supportPedro Ribeiro1-35/+40
[kzak@redhat.com: - add setlocale(), ... - remove tailing white spaces] Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-07-28disk-utils: include fcntl.h directly (mkfs.cramfs, raw)maximilian attems1-1/+1
helps klibc support, glibc compile tested. Signed-off-by: maximilian attems <max@stro.at>
2007-01-26raw: don't accept raw0 as a target nameKarel Zak1-6/+28
The raw0 is rawctl and cannot be used as a normal raw device. The patch also enlarge range of <N> for raw<N> and improve the query mode. Signed-off-by: Karel Zak <kzak@redhat.com>
2006-12-07Imported from util-linux-2.11o tarball.Karel Zak1-5/+13
2006-12-07Imported from util-linux-2.11f tarball.Karel Zak1-1/+1
2006-12-07Imported from util-linux-2.10s tarball.Karel Zak1-0/+1
2006-12-07Imported from util-linux-2.10m tarball.Karel Zak1-10/+18
2006-12-07Imported from util-linux-2.10f tarball.Karel Zak1-0/+217