util-linux/disk-utils
Jeff Mahoney b41f637c64 raw: Use the RAW_SETBIND ioctl without stat'ing the raw# file
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>
2009-06-29 23:07:09 +02:00
..
.gitignore build-sys: update .gitignore files 2008-04-14 14:24:03 +02:00
Makefile.am build-sys: cleanup libuuid stuff 2009-05-22 10:06:15 +02:00
blockdev.8 blockdev: add note that the StartSec is in 512-byte sectors 2009-02-26 15:58:28 +01:00
blockdev.c blockdev: fix possible buffer overflow 2009-04-29 14:17:39 +02:00
cramfs.h Imported from util-linux-2.11t tarball. 2006-12-07 00:25:58 +01:00
cramfs_common.c mkfs.cramfs: add endianness support to cramfs tools 2009-02-04 14:56:54 +01:00
cramfs_common.h mkfs.cramfs: add endianness support to cramfs tools 2009-02-04 14:56:54 +01:00
elvtune.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
elvtune.c elvtune: add NLS support 2008-10-03 08:22:50 +02:00
fdformat.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
fdformat.c Imported from util-linux-2.13-pre2 tarball. 2006-12-07 00:26:58 +01:00
fsck.cramfs.c fsck.cramfs: segfault with INCLUDE_FS_TESTS and no -x option 2009-02-04 23:36:39 +01:00
fsck.minix.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
fsck.minix.c mkfs.minix: remove local implementation of {set,clr}bit 2009-02-05 15:47:30 +00:00
isosize.8 Imported from util-linux-2.10s tarball. 2006-12-07 00:25:44 +01:00
isosize.c blockdev: fix: opened file leaving unclosed 2007-10-26 01:02:45 +02:00
minix.h Imported from util-linux-2.11m tarball. 2006-12-07 00:25:49 +01:00
mkfs.8 mkfs: remove nonsense from man page 2007-08-02 14:23:38 +02:00
mkfs.bfs.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
mkfs.bfs.c disk-utils: clean up code, use blkdev_* functions 2008-07-24 01:15:07 +02:00
mkfs.c Imported from util-linux-2.13-pre2 tarball. 2006-12-07 00:26:58 +01:00
mkfs.cramfs.c mkfs.cramfs: lower memory requirements for layouts with duplicate files 2009-02-04 15:08:20 +01:00
mkfs.minix.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
mkfs.minix.c mkfs.minix: remove local implementation of {set,clr}bit 2009-02-05 15:47:30 +00:00
mkswap.8 mkswap: clean up man page 2009-03-13 14:31:31 +01:00
mkswap.c build-sys: fix headers in mkswap and libblkid 2009-05-22 10:06:15 +02:00
raw.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
raw.c raw: Use the RAW_SETBIND ioctl without stat'ing the raw# file 2009-06-29 23:07:09 +02:00