Go to file
Stephan Kulow 668729991b Accepting request 229044 from Base:System
- remove unnecessarily added patches from SLE11:
  * util-linux-update-default-commit-interval.patch, openSUSE  has
    never changed the default and neither will SLE12
  * sfdisk-warn-about-2TB-limit.patch, fixed by upstream years ago
  * umount-avoid-readlink.patch, this patch only affects unused
    code and the used code does not have this bug
- edit util-linux-lscpu-improve-hypervisor-detection.patch to not
  change the default behaviour of "lscpu -p" as documented in it's
  man page. Now this patch only affects the summary output.

Also see discussion here
http://lists.opensuse.org/opensuse-factory/2014-03/msg00256.html (forwarded request 228719 from rudi_m)

OBS-URL: https://build.opensuse.org/request/show/229044
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=183
2014-04-06 07:56:38 +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
agetty-fooled-on-serial-line-due-plymouth.patch Accepting request 225791 from Base:System 2014-03-15 16:37:59 +00:00
agetty-on-s390-on-dev-3270-tty1-line.patch Accepting request 220785 from Base:System 2014-02-06 06:06:46 +00:00
baselibs.conf Accepting request 43994 from Base:System 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 Accepting request 455350 from home:sbrabec:branches:util-linux-raw-fate321122 2017-02-07 20:47: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
login.pamd Accepting request 125753 from Base:System 2012-06-25 12:42:14 +00:00
make-sure-sbin-resp-usr-sbin-are-in-PATH.diff Accepting request 177962 from Base:System 2013-06-07 08:12:05 +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
remote.pamd Accepting request 109642 from Base:System 2012-03-20 09:35:30 +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
su.default Accepting request 177962 from Base:System 2013-06-07 08:12:05 +00:00
su.pamd Accepting request 177962 from Base:System 2013-06-07 08:12:05 +00:00
sulogin-does-not-find-any-console.patch Accepting request 221269 from Base:System 2014-02-09 12:18:02 +00:00
sulogin-fooled-on-tty-line-due-plymouth.patch Accepting request 225791 from Base:System 2014-03-15 16:37:59 +00:00
tty3270-on-serial-line-of-s390.patch Accepting request 222119 from Base:System 2014-02-15 16:23:05 +00:00
util-linux-2.23.1-eject-fpie.patch Accepting request 177962 from Base:System 2013-06-07 08:12:05 +00:00
util-linux-2.23.1-noenc-suse.diff Accepting request 177962 from Base:System 2013-06-07 08:12:05 +00:00
util-linux-2.24-fdisk_remove_bogus_warnings.patch Accepting request 210834 from Base:System 2013-12-16 06:15:12 +00:00
util-linux-2.24.1.tar.sign Accepting request 222119 from Base:System 2014-02-15 16:23:05 +00:00
util-linux-2.24.1.tar.xz Accepting request 222119 from Base:System 2014-02-15 16:23:05 +00:00
util-linux-HACK-boot.localfs.diff Accepting request 125753 from Base:System 2012-06-25 12:42:14 +00:00
util-linux-lscpu-improve-hypervisor-detection.patch Accepting request 229044 from Base:System 2014-04-06 07:56:38 +00:00
util-linux-ng-2.16-squashfs3-detect.patch Accepting request 226832 from Base:System 2014-03-22 06:49:49 +00:00
util-linux-ng-2.19.1-barrier_documentation.patch Accepting request 226832 from Base:System 2014-03-22 06:49:49 +00:00
util-linux-rpmlintrc Accepting request 177962 from Base:System 2013-06-07 08:12:05 +00:00
util-linux-setarch-uname26.patch Accepting request 226832 from Base:System 2014-03-22 06:49:49 +00:00
util-linux.changes Accepting request 229044 from Base:System 2014-04-06 07:56:38 +00:00
util-linux.keyring Accepting request 199432 from Base:System 2013-09-23 09:16:12 +00:00
util-linux.spec Accepting request 229044 from Base:System 2014-04-06 07:56:38 +00:00
uuidd.rc Accepting request 41635 from Base:System 2010-06-18 03:15:08 +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