MCPcopy Create free account

hub / github.com/AerynOS/disks-rs / functions

Functions213 in github.com/AerynOS/disks-rs

Methodderef
(&self)
crates/disks/src/virt.rs:24
Methoddescribe
Get a human readable description of this region
crates/partitioning/src/planner.rs:129
Methoddescribe
Get a human readable description of this strategy
crates/partitioning/src/strategy.rs:117
Methoddescribe_changes
Get a human readable description of pending changes
crates/partitioning/src/planner.rs:213
Functiondeserialize
(deserializer: D)
crates/superblock/src/luks2/config.rs:151
Functiondetect_superblock
Attempts to detect a superblock of the given type from the reader
crates/superblock/src/lib.rs:65
Methoddevice_path
Returns the device path.
crates/disks/src/loopback.rs:72
Methoddiscover
Discovers all block devices present in the system. # Returns A vector of discovered block devices or an IO error if the discovery fails.
crates/disks/src/lib.rs:42
Methoddiscover_in_sysroot
Discovers block devices in a specified sysroot directory. # Arguments `sysroot` - Path to the system root directory # Returns A vector of discover
crates/disks/src/lib.rs:152
Methodfmt
forward Display to BasicDisk
crates/disks/src/disk.rs:65
Methodfmt
(&self, f: &mut fmt::Formatter)
crates/disks/src/partition.rs:31
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/partition_role.rs:46
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/kdl_helpers.rs:41
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/filesystem.rs:38
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/partition_table.rs:24
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/units.rs:43
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/partition_type.rs:36
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/superblock/src/lib.rs:103
Methodfor_value
Determine the kdl value type
crates/types/src/kdl_helpers.rs:25
Functionformat_position
Format a disk position as a percentage and absolute size Format a disk position as both a percentage and absolute size This is useful for displaying
crates/disks/src/sizing.rs:48
Functionformat_size
Format a size in bytes into a human readable string Format a byte size into a human-readable string with appropriate units # Examples ``` use disks:
crates/disks/src/sizing.rs:16
Methodfrom_bytes
Attempt to detect and read a filesystem superblock from raw bytes This is more efficient than using a reader as it avoids multiple seeks
crates/superblock/src/lib.rs:166
Methodfrom_device_path
Creates a new Device instance from a device path.
crates/disks/src/loopback.rs:61
Methodfrom_kdl_node
(node: &kdl::KdlNode)
crates/types/src/filesystem.rs:76
Methodfrom_kdl_node
(node: &kdl::KdlNode)
crates/types/src/constraints.rs:28
Methodfrom_kdl_node
(node: &kdl::KdlNode)
crates/types/src/partition_type.rs:106
Methodfrom_kdl_property
(entry: &kdl::KdlEntry)
crates/types/src/partition_role.rs:75
Methodfrom_kdl_property
(entry: &kdl::KdlEntry)
crates/types/src/filesystem.rs:64
Methodfrom_kdl_property
(entry: &kdl::KdlEntry)
crates/types/src/partition_table.rs:47
Methodfrom_kdl_type
(id: &kdl::KdlEntry)
crates/types/src/units.rs:80
Methodfrom_kdl_type
(id: &'a kdl::KdlEntry)
crates/types/src/partition_type.rs:45
Methodfrom_reader
Attempt to detect and read a filesystem superblock from a reader Note: This will read the minimum necessary bytes to detect the superblock, which is
crates/superblock/src/lib.rs:192
Methodfrom_str
Attempt to convert a string to a partition role
crates/types/src/partition_role.rs:61
Methodfrom_str
(value: &str)
crates/types/src/filesystem.rs:51
Methodfrom_str
Attempt to convert a string to a partition table type
crates/types/src/partition_table.rs:36
Methodfrom_str
Attempt to convert a string to a storage unit
crates/types/src/units.rs:62
Methodfrom_str
(value: &str)
crates/types/src/partition_type.rs:26
Methodfrom_sysfs_path
Creates a new Device instance from a sysfs path if the device name matches loop device pattern. # Arguments `sysroot` - The root path of the sysfs f
crates/disks/src/loopback.rs:43
Methodfrom_sysfs_path
(sysroot: &Path, name: &str)
crates/disks/src/disk.rs:147
Methodfrom_sysfs_path
Creates a new Partition instance from a sysfs path and partition name. # Arguments `sysroot` - Base path to sysfs `name` - Name of the partition # R
crates/disks/src/partition.rs:51
Methodfrom_sysfs_path
Creates a BlockDevice from a specific device path # Arguments `device_path` - Path to the block device (e.g. "/dev/sda") # Returns The block devic
crates/disks/src/lib.rs:108
Methodfrom_sysfs_path
Creates a new MMC disk from a sysfs path and device name # Arguments `sysroot` - The sysfs root path `name` - The device name to check # Returns `So
crates/disks/src/mmc.rs:39
Methodfrom_sysfs_path
Creates a new NVMe disk from a sysfs path and device name # Arguments `sysroot` - The sysfs root path `name` - The device name to check # Returns `S
crates/disks/src/nvme.rs:39
Methodfrom_sysfs_path
Creates a new Disk instance from a sysfs path if the device name matches SCSI naming pattern. # Arguments `sysroot` - The root path of the sysfs fil
crates/disks/src/scsi.rs:41
Methodfrom_sysfs_path
Creates a new Disk instance from a sysfs path if the device name matches virtual disk naming pattern. # Arguments `sysroot` - The root path of the s
crates/disks/src/virt.rs:41
Methodis_valid_magic
(magic: &Self::Magic)
crates/superblock/src/btrfs.rs:113
Methodis_valid_magic
(magic: &Self::Magic)
crates/superblock/src/ext4.rs:205
Methodis_valid_magic
(magic: &Self::Magic)
crates/superblock/src/f2fs.rs:154
Methodis_valid_magic
(magic: &Self::Magic)
crates/superblock/src/fat.rs:112
Methodis_valid_magic
(magic: &Self::Magic)
crates/superblock/src/xfs.rs:188
Methodis_valid_magic
(magic: &Self::Magic)
crates/superblock/src/luks2/superblock.rs:103
Methodkind
Returns the filesystem type of this superblock
crates/superblock/src/lib.rs:126
Methodlabel
Returns the volume label if available
crates/superblock/src/lib.rs:150
Methodlabel
Return the volume label as a string
crates/superblock/src/btrfs.rs:125
Methodlabel
Return the volume label as valid utf8
crates/superblock/src/ext4.rs:217
Methodlabel
Returns the volume label as a UTF-16 decoded string Handles null termination and invalid UTF-16 sequences
crates/superblock/src/f2fs.rs:173
Methodlabel
Returns the volume label
crates/superblock/src/fat.rs:141
Methodlabel
Returns the volume label as a UTF-8 string, trimming any null termination
crates/superblock/src/xfs.rs:174
Methodlabel
Get the label of the LUKS2 volume Note: Label is often empty, set in config instead
crates/superblock/src/luks2/superblock.rs:119
Methodloopback_device
Creates a loopback block device from a file path.
crates/disks/src/lib.rs:95
Functionmain
Main entry point - creates and partitions a loopback device
crates/disktester/src/main.rs:102
Methodmock_device
Creates a mock block device with a specified number of sectors.
crates/disks/src/lib.rs:90
Methodname
Returns the device name.
crates/disks/src/loopback.rs:67
Methodname
Returns the name of the disk device.
crates/disks/src/disk.rs:91
Methodnew
Create a new parser from a string
crates/provisioning/src/lib.rs:63
Methodnew
Create a new provisioner
crates/provisioning/src/provisioner.rs:54
Methodnew
Creates a new mock disk with the specified size in bytes
crates/disks/src/mock.rs:33
Methodnew
Create a new region with the given bounds
crates/partitioning/src/planner.rs:109
Methodnew
Creates a new Formatter for the given filesystem
crates/partitioning/src/formatter.rs:110
Methodnew
Create a new DiskWriter.
crates/partitioning/src/writer.rs:85
Methodnew
Create a new strategy using the specified allocation method
crates/partitioning/src/strategy.rs:79
Methodnew_for_path
Create a new parser from a file path
crates/provisioning/src/lib.rs:49
Methodnew_with_name
(name: &str, size_bytes: u64, parts_prefix: bool)
crates/disks/src/mock.rs:37
Functionparse
Generate a command to find a disk
crates/provisioning/src/commands/find_disk.rs:16
Functionparse
Generate a command to create a partition
crates/provisioning/src/commands/create_partition.rs:53
Functionparse
Generate a command to create a partition table
crates/provisioning/src/commands/create_partition_table.rs:17
Methodparse_strategy
Parse a strategy node
crates/provisioning/src/lib.rs:105
Methodpartitions
Returns the partitions on the disk.
crates/disks/src/disk.rs:96
Methodplan_add_partition
(&mut self, start: u64, end: u64)
crates/partitioning/src/planner.rs:273
Methodplan_delete_partition
Plan to delete an existing partition
crates/partitioning/src/planner.rs:363
Methodreset
Clear all planned changes
crates/partitioning/src/planner.rs:401
Functionserialize
(value: &T, serializer: S)
crates/superblock/src/luks2/config.rs:143
Methodsize
Returns the total size of the block device in bytes.
crates/disks/src/lib.rs:55
Functiontest_alignment
()
crates/partitioning/src/planner.rs:623
Functiontest_alignment_functions
()
crates/partitioning/src/planner.rs:646
Functiontest_basic
[should_panic]
crates/provisioning/src/lib.rs:171
Functiontest_determination
()
crates/superblock/src/lib.rs:214
Functiontest_discover
()
crates/disks/src/lib.rs:181
Functiontest_dual_boot_install
()
crates/partitioning/src/strategy.rs:372
Functiontest_dual_boot_with_windows
()
crates/partitioning/src/planner.rs:505
Functiontest_ext4_args
()
crates/partitioning/src/formatter.rs:155
Functiontest_fat32_args
()
crates/partitioning/src/formatter.rs:143
Functiontest_flexible_partition_overflow
()
crates/partitioning/src/strategy.rs:435
Functiontest_fresh_installation
()
crates/partitioning/src/planner.rs:483
Functiontest_initialize_disk_partition_numbers
()
crates/partitioning/src/planner.rs:667
Functiontest_insufficient_space
()
crates/partitioning/src/strategy.rs:420
Functiontest_minimal_server_install
()
crates/partitioning/src/strategy.rs:398
Functiontest_partial_partition_creation
()
crates/partitioning/src/strategy.rs:457
Functiontest_partition_boundaries
()
crates/partitioning/src/planner.rs:596
Functiontest_partition_paths
()
crates/disks/src/lib.rs:211
← previousnext →101–200 of 213, ranked by callers