GenDiskInit
Defined in: src/fs/block_dev.ts:343
Extends
Section titled “Extends”Partial<Pick<GenDisk,"first_minor"|"minors"|"capacity"|"removable"|"read_only"|"hidden"|"no_part"|"owner"|"parent"|"attrs">>
Properties
Section titled “Properties”attrs?
Section titled “attrs?”
optionalattrs?:Record<string,DeviceAttribute> ={}
Defined in: src/fs/block_dev.ts:386
Attributes the driver adds to the disk in sysfs, on top of the ones every disk gets
Inherited from
Section titled “Inherited from”capacity?
Section titled “capacity?”
optionalcapacity?:number
Defined in: src/fs/block_dev.ts:417
Inherited from
Section titled “Inherited from”Partial.capacity
first_minor?
Section titled “first_minor?”
readonlyoptionalfirst_minor?:number=0
Defined in: src/fs/block_dev.ts:366
The disk’s own minor, which its partitions count up from
Inherited from
Section titled “Inherited from”hidden?
Section titled “hidden?”
optionalhidden?:boolean
Defined in: src/fs/block_dev.ts:375
Hidden disks exist but are not meant to be used directly, so udev ignores them
Inherited from
Section titled “Inherited from”major:
number
Defined in: src/fs/block_dev.ts:346
minors?
Section titled “minors?”
readonlyoptionalminors?:number=0
Defined in: src/fs/block_dev.ts:369
How many minors are reserved for the disk and its partitions. 0 means partitions are numbered elsewhere.
Inherited from
Section titled “Inherited from”name:
string
Defined in: src/fs/block_dev.ts:348
The disk’s name, which is also the name of its node under /dev
no_part?
Section titled “no_part?”
optionalno_part?:boolean
Defined in: src/fs/block_dev.ts:378
Whether the disk can be partitioned at all
Inherited from
Section titled “Inherited from”Defined in: src/fs/block_dev.ts:349
owner?
Section titled “owner?”
optionalowner?:Module
Defined in: src/fs/block_dev.ts:380
Inherited from
Section titled “Inherited from”parent?
Section titled “parent?”
optionalparent?:Device<unknown>
Defined in: src/fs/block_dev.ts:383
The device this disk hangs off, e.g. its controller. Disks without one are virtual.
Inherited from
Section titled “Inherited from”read_only?
Section titled “read_only?”
optionalread_only?:boolean
Defined in: src/fs/block_dev.ts:372
Inherited from
Section titled “Inherited from”removable?
Section titled “removable?”
optionalremovable?:boolean
Defined in: src/fs/block_dev.ts:371