summaryrefslogtreecommitdiff
path: root/include/linux/kdev_t.h
AgeCommit message (Collapse)Author
2007-04-04[PATCH] remove protection of LANANA-reserved majorsAndrew Morton
Revert all this. It can cause device-mapper to receive a different major from earlier kernels and it turns out that the Amanda backup program (via GNU tar, apparently) checks major numbers on files when performing incremental backups. Which is a bit broken of Amanda (or tar), but this feature isn't important enough to justify the churn. Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-20[PATCH] rework reserved major handlingAndrew Morton
Several people have reported failures in dynamic major device number handling due to the recent changes in there to avoid handing out the local/experimental majors. Rolf reports that this is due to a gcc-4.1.0 bug. The patch refactors that code a lot in an attempt to provoke the compiler into behaving. Cc: Rolf Eike Beer <eike-kernel@sf-tec.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2003-09-22[PATCH] 32-bit dev_t: internal useAlexander Viro
Starting the conversion: * internal dev_t made 32bit. * new helpers - new_encode_dev(), new_decode_dev(), huge_encode_dev(), huge_decode_dev(), new_valid_dev(). They do encoding/decoding of 32bit and 64bit values; for now huge_... are aliases for new_... and new_valid_dev() is always true. We do 12:20 for 32bit; representation is compatible with 16bit one - we have major in bits 19--8 and minor in 31--20,7--0. That's what the userland sees; internally we have (major << 20)|minor, of course. * MKDEV(), MAJOR() and MINOR() updated. * several places used to handle Missed'em'V dev_t (14:18 split) manually; that stuff had been taken into common helpers. Now we can start replacing old_... with new_... and huge_..., depending on the width available. MKDEV() callers should (for now) make sure that major and minor are within 12:20. That's what the next chunk will do.
2003-09-04[PATCH] large dev_t - second series (8/15)Alexander Viro
kdev_t, to_kdev_t(), etc. are gone - there is no more objects of that type and no remaining callers of these functions.
2003-09-04[PATCH] large dev_t - second series (6/15)Alexander Viro
tty redirect handling sanitized. Such ttys (/dev/tty and /dev/console) get a different file_operations; its ->write() handles redirects; checks for file->f_op == &tty_fops updated, checks for major:minor being that of a redirector replaced with check for ->f_op->write value. Piece of code in tty_io.c that had been #if 0 since 0.99<something> had been finally put out of its misery. kdev_val() is gone.
2003-08-30[PATCH] dev_t handling cleanups (1/12)Alexander Viro
removed unused kdev_t stuff, fixed a typo left from the console->device() conversion.
2003-07-31[PATCH] dev_t printingAndrew Morton
From: Greg KH <greg@kroah.com> Different architectures use different types for dev_t, so it is hard to print dev_t variables out correctly. Quite a lot of code is wrong now, and will continue to be wrong when 64-bit dev_t is merged. Greg's patch introduces a little wrapper function which can be used to safely form a dev_t for printing. I added the format_dev_t function as well, which is needed for direct insertion in a printk statement.
2003-04-24[PATCH] fbdev cleanupAlexander Viro
fbdev.node converted from kdev_t to int - all of its users have register_framebuffer() which sets .node to mk_kdev(FB_MAJOR, index) already called and all of them start with applying minor(). IOW, what they actually want is framebuffer number. * type of ->node changed to int * register_framebuffer() sets it to index instead of mk_kdev(...) * users converted from minor(foo.node) to foo.node * useless assignments (typically to NODEV) removed - we never look at that field before register_framebuffer() overwrites it and thus any assignments prior to register_framebuffer() call are dead code.
2003-04-01[PATCH] remove kdevname() before someone starts using it againChristoph Hellwig
2002-10-31[PATCH] death of ->rq_devAlexander Viro
RIP. It's not used anymore, so we kill assignments to it and the field itself. That was the last serious use of kdev_t in block drivers.
2002-10-28[PATCH] remove LVM1 leftovers from the treeChristoph Hellwig
Now that the devicemapper hit the tree there's no more reason to keep the uncompiling LVM1 code around and it's various hacks to other files around, this patch removes it.
2002-07-04[PATCH] ->i_dev switched to dev_tAlexander Viro
* ->i_dev followed the example of ->s_dev - it's dev_t now. All remaining uses of ->i_dev either outright want dev_t (stat()) or couldn't care less (printing major:minor in /proc/<pid>/maps, etc.)
2002-06-11[PATCH] (10/14) resyncAlexander Viro
->s_dev is switched to dev_t. Everything that uses it uses it as a number - i.e. all instances are either minor() or kdev_t_to_nr().
2002-02-04v2.5.1.5 -> v2.5.1.6Linus Torvalds
- Davide Libenzi: nicer timeslices for scheduler - Arnaldo: wd7000 scsi driver cleanups and bio update - Greg KH: USB update (including initial 2.0 support) - me: strict typechecking on "kdev_t"
2002-02-04v2.4.1.4 -> v2.4.2Linus Torvalds
- sync up more with Alan - Urban Widmark: smbfs and HIGHMEM fix - Chris Mason: reiserfs tail unpacking fix ("null bytes in reiserfs files") - Adan Richter: new cpia usb ID - Hugh Dickins: misc small sysv ipc fixes - Andries Brouwer: remove overly restrictive sector size check for SCSI cd-roms
2002-02-04Import changesetLinus Torvalds