Go to file
Stephan Kulow ce6eaddccd Accepting request 92907 from Base:System
- add fdisk-tinfo.patch to fix build with newer curses. (forwarded request 92886 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/92907
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=140
2011-11-22 16:49:53 +00:00
.gitattributes OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
.gitignore OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
addnote.c OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=67 2008-11-21 14:54:57 +00:00
adjtimex-1.28.tar.bz2 Updating link to change in openSUSE:Factory/util-linux revision 96.0 2010-07-30 10:35:45 +00:00
baselibs.conf Updating link to change in openSUSE:Factory/util-linux revision 96.0 2010-07-30 10:35:45 +00:00
blkid.conf OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=77 2009-07-17 13:52:45 +00:00
etc_filesystems OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=11 2007-04-12 16:31:42 +00:00
etc.raw OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
fdisk-tinfo.patch Accepting request 92886 from home:a_jaeger:branches:openSUSE:Factory 2011-11-21 17:09:42 +00:00
fsck-use-FS-blacklist-for-non-all-mode-too.patch add fsck-use-FS-blacklist-for-non-all-mode-too.patch (bnc#728645) 2011-11-08 09:41:46 +00:00
klogconsole-quiet.patch OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
klogconsole.diff OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
klogconsole.tar.bz2 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
libmount-fix-chdir-to-parent-for-restricted-user-umo.patch - add libmount-ignore-tailing-slash-in-netfs-source-paths.patch and 2011-11-09 08:31:29 +00:00
libmount-ignore-tailing-slash-in-netfs-source-paths.patch - add libmount-ignore-tailing-slash-in-netfs-source-paths.patch and 2011-11-09 08:31:29 +00:00
mkzimage_cmdline.8 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
mkzimage_cmdline.c OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=18 2007-06-14 14:18:25 +00:00
nologin.8 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
nologin.c OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
raw.init OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=59 2008-08-18 20:57:09 +00:00
README.largedisk OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
README.raw OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
setctsid.8 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
setctsid.c OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
time-1.7.dif OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=1 2006-12-18 23:18:10 +00:00
time-1.7.tar.bz2 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=20 2007-07-05 11:24:26 +00:00
util-linux-2.12r-fdisk_remove_bogus_warnings.patch Updating link to change in openSUSE:Factory/util-linux revision 96.0 2010-07-30 10:35:45 +00:00
util-linux-2.17.1-mount_losetup_crypto.patch update to 2.20-rc2 2011-08-17 10:46:34 +00:00
util-linux-2.20-libmount-deps.patch Accepting request 86523 from home:uli_suse:branches:Base:System 2011-10-05 15:26:36 +00:00
util-linux-2.20.1.tar.bz2 update to 2.20.1 2011-10-20 13:04:33 +00:00
util-linux-dmesg-fix-printing-of-multibyte-characters.patch add util-linux-dmesg-fix-printing-of-multibyte-characters.patch (bnc#725993) 2011-11-02 09:39:46 +00:00
util-linux-rpmlintrc Updating link to change in openSUSE:Factory/util-linux revision 96.0 2010-07-30 10:35:45 +00:00
util-linux.changes Accepting request 92886 from home:a_jaeger:branches:openSUSE:Factory 2011-11-21 17:09:42 +00:00
util-linux.spec Accepting request 92886 from home:a_jaeger:branches:openSUSE:Factory 2011-11-21 17:09:42 +00:00
uuidd.rc Updating link to change in openSUSE:Factory/util-linux revision 92.0 2010-06-18 03:15:08 +00:00
which-2.20.tar.bz2 Updating link to change in openSUSE:Factory/util-linux revision 96.0 2010-07-30 10:35:45 +00:00
which-lib64.patch OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=58 2008-07-08 23:56:54 +00:00

Raw device driver support on SLS 9

On SLS 9, you will notice that by default, raw devices (nodes) (/dev/rawctl
and /dev/raw/rawN (1-15)) no longer exist whereas in SLES 8, the raw nodes were
created when the system was initially installed. SLS 9, by default, uses
the new dynamic userspace implementation "sysfs" together with "udev" which
replaces the previous static "dev" system.

Raw devices are moving towards eventual obsolescence with block+O_DIRECT
support intended as a replacement. The primary application users of raw
character devices have been databases so the database you are using will have
to support the O_DIRECT functionality before moving away from raw character
devices.

Using RAW with kernel 2.6 (SLS 9)
---------------------------------
Raw device usage in kernel 2.6 together with udev and sysfs was intended to be
quite seamless. Basically, all that is required is to load the raw module after
each reboot using the commands "modprobe raw" or "rcraw start".  Then use the
"raw" command to create the bindings to the block character devices.  The raw
device nodes are no longer required to exist before the bindings are assigned
and used.

Using a single script, you can you load the raw module and bind the raw nodes
to block devices.

#!/usr/bin
# load the raw module
modprobe raw  # can also use "rcraw start"
# create the raw bindings
raw /dev/raw/raw1 /dev/sdb1
raw /dev/raw/raw2 /dev/sbc1

You can see if the raw driver is available by issuing "rcraw status". If the
raw driver is loaded, the command should return a status of "running". A status
of "dead" will usually indicate that the driver was not loaded or
the /dev/rawctl file does not exist. The /dev/rawctl file is automatically
created when the module is loaded. This file and the /dev/raw/rawN nodes can
also be viewed under the /sys/class/raw directory.

Raw node permissions
----------------------------------
When the raw devices are assigned,  permission settings are determined from the
/etc/udev/udev.permission file.  This file can be modified to assign different
owner, group and/or access permissions to the raw nodes.  For example, by
default, the permission settings for raw nodes are as follows:

raw/raw*:root:disk:660

Here, root:disk is the default owner:group with read write access for owner and
group.  As an example, to create the raw nodes with an owner:group of
user1:group1 and read write access for all, change the assignment as follows:

raw/raw*:user1:group1:666