kfan / rpms / util-linux

Forked from rpms/util-linux 3 years ago
Clone
0c223bc
--- util-linux-2.12a/disk-utils/raw.8.dd	2006-04-24 15:27:39.000000000 +0200
0c223bc
+++ util-linux-2.12a/disk-utils/raw.8	2006-04-24 15:53:46.000000000 +0200
0c223bc
@@ -15,6 +15,12 @@
0c223bc
 .PP
0c223bc
 .B raw
0c223bc
 .B \-qa
0c223bc
+.SH WARNING
0c223bc
+Although Linux includes support for rawio, it is now a deprecated interface. If
0c223bc
+your application performs device access using this interface, Red Hat
0c223bc
+encourages you to modify your application to open the block device with the
0c223bc
+O_DIRECT flag. The rawio interface will exist for the life of Red Hat
0c223bc
+Enterprise Linux 4, but is a candidate for removal from future releases.
0c223bc
 .SH DESCRIPTION
0c223bc
 .B raw
0c223bc
 is used to bind a Linux raw character device to a block device.  Any
0c223bc
@@ -82,8 +88,10 @@
0c223bc
 .SH BUGS
0c223bc
 The Linux 
0c223bc
 .B dd
0c223bc
-(1) command does not currently align its buffers correctly, and so
0c223bc
-cannot be used on raw devices.
0c223bc
+(1) command should be used without bs= option or the blocksize needs to be a
0c223bc
+multiple of the sector size of the device (512 bytes usually) otherwise it
0c223bc
+will fail with "Invalid Argument" messages (EINVAL).
0c223bc
+
0c223bc
 .PP
0c223bc
 Raw I/O devices do not maintain cache coherency with the Linux block
0c223bc
 device buffer cache.  If you use raw I/O to overwrite data already in