Commit b9fa7043 authored by Richard Gooch's avatar Richard Gooch Committed by Linus Torvalds

[PATCH] devfs patch for 2.5.8

- Updated fs/devfs/util.c to fix shift warning on 64 bit machines
  Thanks to Anton Blanchard <anton@samba.org>

- Updated README from master HTML file
parent 8218f1ac
...@@ -1905,3 +1905,10 @@ Changes for patch v209 ...@@ -1905,3 +1905,10 @@ Changes for patch v209
- Fixed bitfield data type for <devfs_*alloc_devnum> - Fixed bitfield data type for <devfs_*alloc_devnum>
- Made major bitfield type and initialiser 64 bit safe - Made major bitfield type and initialiser 64 bit safe
===============================================================================
Changes for patch v210
- Updated fs/devfs/util.c to fix shift warning on 64 bit machines
Thanks to Anton Blanchard <anton@samba.org>
- Updated README from master HTML file
...@@ -3,7 +3,7 @@ Devfs (Device File System) FAQ ...@@ -3,7 +3,7 @@ Devfs (Device File System) FAQ
Linux Devfs (Device File System) FAQ Linux Devfs (Device File System) FAQ
Richard Gooch Richard Gooch
4-APR-2002 7-APR-2002
Document languages: Document languages:
...@@ -1591,6 +1591,20 @@ mount -t none devfs /dev ...@@ -1591,6 +1591,20 @@ mount -t none devfs /dev
Mount by volume LABEL=<label> doesn't work with
devfs
Most probably you are not mounting devfs onto /dev. What
happens is that if your kernel config has CONFIG_DEVFS_FS=y
then the contents of /proc/partitions will have the devfs
names (such as scsi/host0/bus0/target0/lun0/part1). The
contents of /proc/partitions are used by mount(8) when
mounting by volume label. If devfs is not mounted on /dev,
then mount(8) will fail to find devices. The solution is to
make sure that devfs is mounted on /dev. See above for how to
do that.
......
...@@ -54,6 +54,8 @@ ...@@ -54,6 +54,8 @@
20020326 Richard Gooch <rgooch@atnf.csiro.au> 20020326 Richard Gooch <rgooch@atnf.csiro.au>
Fixed bitfield data type for <devfs_*alloc_devnum>. Fixed bitfield data type for <devfs_*alloc_devnum>.
Made major bitfield type and initialiser 64 bit safe. Made major bitfield type and initialiser 64 bit safe.
20020413 Richard Gooch <rgooch@atnf.csiro.au>
Fixed shift warning on 64 bit machines.
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -136,7 +138,7 @@ struct major_list ...@@ -136,7 +138,7 @@ struct major_list
#if BITS_PER_LONG == 32 #if BITS_PER_LONG == 32
# define INITIALISER64(low,high) (low), (high) # define INITIALISER64(low,high) (low), (high)
#else #else
# define INITIALISER64(low,high) ( (high) << 32 | (low) ) # define INITIALISER64(low,high) ( (unsigned long) (high) << 32 | (low) )
#endif #endif
/* Block majors already assigned: /* Block majors already assigned:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment