diff --git a/elks/fs/msdos/inode.c b/elks/fs/msdos/inode.c index bddfccb5f..ff10affcd 100644 --- a/elks/fs/msdos/inode.c +++ b/elks/fs/msdos/inode.c @@ -18,50 +18,50 @@ #ifdef CONFIG_FS_DEV /* FAT device table, increase DEVDIR_SIZE and DEVINO_BASE to add entries*/ struct msdos_devdir_entry devnods[DEVDIR_SIZE] = { - { "hda", S_IFBLK | 0644, DEV_HDA }, - { "hda1", S_IFBLK | 0644, DEV_HDA+1 }, - { "hda2", S_IFBLK | 0644, DEV_HDA+2 }, - { "hda3", S_IFBLK | 0644, DEV_HDA+3 }, - { "hda4", S_IFBLK | 0644, DEV_HDA+4 }, - { "hdb", S_IFBLK | 0644, DEV_HDB }, - { "hdb1", S_IFBLK | 0644, DEV_HDB+1 }, - { "hdb2", S_IFBLK | 0644, DEV_HDB+2 }, - { "hdb3", S_IFBLK | 0644, DEV_HDB+3 }, - { "hdb4", S_IFBLK | 0644, DEV_HDB+4 }, - { "hdc", S_IFBLK | 0644, DEV_HDC }, - { "hdc1", S_IFBLK | 0644, DEV_HDC+1 }, - { "hdc2", S_IFBLK | 0644, DEV_HDC+2 }, - { "hdc3", S_IFBLK | 0644, DEV_HDC+3 }, - { "hdc4", S_IFBLK | 0644, DEV_HDC+4 }, - { "hdd", S_IFBLK | 0644, DEV_HDD }, - { "hdd1", S_IFBLK | 0644, DEV_HDD+1 }, - { "hdd2", S_IFBLK | 0644, DEV_HDD+2 }, - { "hdd3", S_IFBLK | 0644, DEV_HDD+3 }, - { "hdd4", S_IFBLK | 0644, DEV_HDD+4 }, - { "fd0", S_IFBLK | 0644, DEV_FD0 }, - { "fd1", S_IFBLK | 0644, DEV_FD1 }, - { "fd2", S_IFBLK | 0644, DEV_FD2 }, - { "fd3", S_IFBLK | 0644, DEV_FD3 }, - { "rd0", S_IFBLK | 0644, MKDEV(1, 0) }, - { "ssd", S_IFBLK | 0644, MKDEV(2, 0) }, - { "kmem", S_IFCHR | 0644, MKDEV(1, 2) }, - { "null", S_IFCHR | 0644, MKDEV(1, 3) }, - { "zero", S_IFCHR | 0644, MKDEV(1, 5) }, - { "tty1", S_IFCHR | 0644, MKDEV(4, 0) }, - { "tty2", S_IFCHR | 0644, MKDEV(4, 1) }, - { "tty3", S_IFCHR | 0644, MKDEV(4, 2) }, - { "ttyS0", S_IFCHR | 0644, MKDEV(4, 64)}, - { "ttyS1", S_IFCHR | 0644, MKDEV(4, 65)}, - { "console",S_IFCHR | 0600, MKDEV(4, 254)}, - { "tty", S_IFCHR | 0666, MKDEV(4, 255)}, - { "ttyp0", S_IFCHR | 0644, MKDEV(4, 8) }, - { "ptyp0", S_IFCHR | 0644, MKDEV(2, 8) }, - { "ttyp1", S_IFCHR | 0644, MKDEV(4, 9) }, - { "ptyp1", S_IFCHR | 0644, MKDEV(2, 9) }, - { "tcpdev", S_IFCHR | 0644, MKDEV(8, 0) }, - { "ne0", S_IFCHR | 0644, MKDEV(9, 0) }, - { "wd0", S_IFCHR | 0644, MKDEV(9, 1) }, - { "3c0", S_IFCHR | 0644, MKDEV(9, 2) }, + { "hda", S_IFBLK | 0644, DEV_HDA }, + { "hda1", S_IFBLK | 0644, DEV_HDA+1 }, + { "hda2", S_IFBLK | 0644, DEV_HDA+2 }, + { "hda3", S_IFBLK | 0644, DEV_HDA+3 }, + { "hda4", S_IFBLK | 0644, DEV_HDA+4 }, + { "hdb", S_IFBLK | 0644, DEV_HDB }, + { "hdb1", S_IFBLK | 0644, DEV_HDB+1 }, + { "hdb2", S_IFBLK | 0644, DEV_HDB+2 }, + { "hdb3", S_IFBLK | 0644, DEV_HDB+3 }, + { "hdb4", S_IFBLK | 0644, DEV_HDB+4 }, + { "hdc", S_IFBLK | 0644, DEV_HDC }, + { "hdc1", S_IFBLK | 0644, DEV_HDC+1 }, + { "hdc2", S_IFBLK | 0644, DEV_HDC+2 }, + { "hdc3", S_IFBLK | 0644, DEV_HDC+3 }, + { "hdc4", S_IFBLK | 0644, DEV_HDC+4 }, + { "hdd", S_IFBLK | 0644, DEV_HDD }, + { "hdd1", S_IFBLK | 0644, DEV_HDD+1 }, + { "hdd2", S_IFBLK | 0644, DEV_HDD+2 }, + { "hdd3", S_IFBLK | 0644, DEV_HDD+3 }, + { "hdd4", S_IFBLK | 0644, DEV_HDD+4 }, + { "fd0", S_IFBLK | 0644, DEV_FD0 }, + { "fd1", S_IFBLK | 0644, DEV_FD1 }, + { "fd2", S_IFBLK | 0644, DEV_FD2 }, + { "fd3", S_IFBLK | 0644, DEV_FD3 }, + { "rd0", S_IFBLK | 0644, MKDEV(RAM_MAJOR, 0) }, + { "ssd", S_IFBLK | 0644, MKDEV(SSD_MAJOR, 0) }, + { "kmem", S_IFCHR | 0644, MKDEV(MEM_MAJOR, 2) }, + { "null", S_IFCHR | 0644, MKDEV(MEM_MAJOR, 3) }, + { "zero", S_IFCHR | 0644, MKDEV(MEM_MAJOR, 5) }, + { "tty1", S_IFCHR | 0644, MKDEV(TTY_MAJOR, 0) }, + { "tty2", S_IFCHR | 0644, MKDEV(TTY_MAJOR, 1) }, + { "tty3", S_IFCHR | 0644, MKDEV(TTY_MAJOR, 2) }, + { "ttyS0", S_IFCHR | 0644, MKDEV(TTY_MAJOR, 64) }, + { "ttyS1", S_IFCHR | 0644, MKDEV(TTY_MAJOR, 65) }, + { "console",S_IFCHR | 0600, MKDEV(TTY_MAJOR, 254) }, + { "tty", S_IFCHR | 0666, MKDEV(TTY_MAJOR, 255) }, + { "ttyp0", S_IFCHR | 0644, MKDEV(TTY_MAJOR, 8) }, + { "ttyp1", S_IFCHR | 0644, MKDEV(TTY_MAJOR, 9) }, + { "ptyp0", S_IFCHR | 0644, MKDEV(PTY_MASTER_MAJOR, 8) }, + { "ptyp1", S_IFCHR | 0644, MKDEV(PTY_MASTER_MAJOR, 9) }, + { "tcpdev", S_IFCHR | 0644, MKDEV(TCPDEV_MAJOR, 0) }, + { "ne0", S_IFCHR | 0644, MKDEV(ETH_MAJOR, 0) }, + { "wd0", S_IFCHR | 0644, MKDEV(ETH_MAJOR, 1) }, + { "3c0", S_IFCHR | 0644, MKDEV(ETH_MAJOR, 2) }, }; #endif