Files
Centos-kernel-stream-9/include/linux/root_dev.h
T
Ming Lei f2edee3b09 init: handle ubi/mtd root mounting like all other root types
JIRA: https://issues.redhat.com/browse/RHEL-1516

commit 07d63cbb67cdb5e2a7720fdd8579b3be979c2d66
Author: Christoph Hellwig <hch@lst.de>
Date:   Wed May 31 14:55:21 2023 +0200

    init: handle ubi/mtd root mounting like all other root types

    Assign a Root_Generic magic value for UBI/MTD root and handle the root
    mounting in mount_root like all other root types.  Besides making the
    code more clear this also means that UBI/MTD root can be used together
    with an initrd (not that anyone should care).

    Also factor parsing of the root name into a helper now that it can
    be easily done and will get more complicated with subsequent patches.

    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Link: https://lore.kernel.org/r/20230531125535.676098-11-hch@lst.de
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Ming Lei <ming.lei@redhat.com>
2023-09-18 15:59:33 +08:00

19 lines
361 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ROOT_DEV_H_
#define _ROOT_DEV_H_
#include <linux/major.h>
#include <linux/types.h>
#include <linux/kdev_t.h>
enum {
Root_NFS = MKDEV(UNNAMED_MAJOR, 255),
Root_CIFS = MKDEV(UNNAMED_MAJOR, 254),
Root_Generic = MKDEV(UNNAMED_MAJOR, 253),
Root_RAM0 = MKDEV(RAMDISK_MAJOR, 0),
};
extern dev_t ROOT_DEV;
#endif