Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AerynOS/disks-rs
/ functions
Functions
213 in github.com/AerynOS/disks-rs
⨍
Functions
213
◇
Types & classes
84
Method
deref
(&self)
crates/disks/src/virt.rs:24
Method
describe
Get a human readable description of this region
crates/partitioning/src/planner.rs:129
Method
describe
Get a human readable description of this strategy
crates/partitioning/src/strategy.rs:117
Method
describe_changes
Get a human readable description of pending changes
crates/partitioning/src/planner.rs:213
Function
deserialize
(deserializer: D)
crates/superblock/src/luks2/config.rs:151
Function
detect_superblock
Attempts to detect a superblock of the given type from the reader
crates/superblock/src/lib.rs:65
Method
device_path
Returns the device path.
crates/disks/src/loopback.rs:72
Method
discover
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
Method
discover_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
Method
fmt
forward Display to BasicDisk
crates/disks/src/disk.rs:65
Method
fmt
(&self, f: &mut fmt::Formatter)
crates/disks/src/partition.rs:31
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/partition_role.rs:46
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/kdl_helpers.rs:41
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/filesystem.rs:38
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/partition_table.rs:24
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/units.rs:43
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/types/src/partition_type.rs:36
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/superblock/src/lib.rs:103
Method
for_value
Determine the kdl value type
crates/types/src/kdl_helpers.rs:25
Function
format_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
Function
format_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
Method
from_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
Method
from_device_path
Creates a new Device instance from a device path.
crates/disks/src/loopback.rs:61
Method
from_kdl_node
(node: &kdl::KdlNode)
crates/types/src/filesystem.rs:76
Method
from_kdl_node
(node: &kdl::KdlNode)
crates/types/src/constraints.rs:28
Method
from_kdl_node
(node: &kdl::KdlNode)
crates/types/src/partition_type.rs:106
Method
from_kdl_property
(entry: &kdl::KdlEntry)
crates/types/src/partition_role.rs:75
Method
from_kdl_property
(entry: &kdl::KdlEntry)
crates/types/src/filesystem.rs:64
Method
from_kdl_property
(entry: &kdl::KdlEntry)
crates/types/src/partition_table.rs:47
Method
from_kdl_type
(id: &kdl::KdlEntry)
crates/types/src/units.rs:80
Method
from_kdl_type
(id: &'a kdl::KdlEntry)
crates/types/src/partition_type.rs:45
Method
from_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
Method
from_str
Attempt to convert a string to a partition role
crates/types/src/partition_role.rs:61
Method
from_str
(value: &str)
crates/types/src/filesystem.rs:51
Method
from_str
Attempt to convert a string to a partition table type
crates/types/src/partition_table.rs:36
Method
from_str
Attempt to convert a string to a storage unit
crates/types/src/units.rs:62
Method
from_str
(value: &str)
crates/types/src/partition_type.rs:26
Method
from_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
Method
from_sysfs_path
(sysroot: &Path, name: &str)
crates/disks/src/disk.rs:147
Method
from_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
Method
from_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
Method
from_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
Method
from_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
Method
from_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
Method
from_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
Method
is_valid_magic
(magic: &Self::Magic)
crates/superblock/src/btrfs.rs:113
Method
is_valid_magic
(magic: &Self::Magic)
crates/superblock/src/ext4.rs:205
Method
is_valid_magic
(magic: &Self::Magic)
crates/superblock/src/f2fs.rs:154
Method
is_valid_magic
(magic: &Self::Magic)
crates/superblock/src/fat.rs:112
Method
is_valid_magic
(magic: &Self::Magic)
crates/superblock/src/xfs.rs:188
Method
is_valid_magic
(magic: &Self::Magic)
crates/superblock/src/luks2/superblock.rs:103
Method
kind
Returns the filesystem type of this superblock
crates/superblock/src/lib.rs:126
Method
label
Returns the volume label if available
crates/superblock/src/lib.rs:150
Method
label
Return the volume label as a string
crates/superblock/src/btrfs.rs:125
Method
label
Return the volume label as valid utf8
crates/superblock/src/ext4.rs:217
Method
label
Returns the volume label as a UTF-16 decoded string Handles null termination and invalid UTF-16 sequences
crates/superblock/src/f2fs.rs:173
Method
label
Returns the volume label
crates/superblock/src/fat.rs:141
Method
label
Returns the volume label as a UTF-8 string, trimming any null termination
crates/superblock/src/xfs.rs:174
Method
label
Get the label of the LUKS2 volume Note: Label is often empty, set in config instead
crates/superblock/src/luks2/superblock.rs:119
Method
loopback_device
Creates a loopback block device from a file path.
crates/disks/src/lib.rs:95
Function
main
Main entry point - creates and partitions a loopback device
crates/disktester/src/main.rs:102
Method
mock_device
Creates a mock block device with a specified number of sectors.
crates/disks/src/lib.rs:90
Method
name
Returns the device name.
crates/disks/src/loopback.rs:67
Method
name
Returns the name of the disk device.
crates/disks/src/disk.rs:91
Method
new
Create a new parser from a string
crates/provisioning/src/lib.rs:63
Method
new
Create a new provisioner
crates/provisioning/src/provisioner.rs:54
Method
new
Creates a new mock disk with the specified size in bytes
crates/disks/src/mock.rs:33
Method
new
Create a new region with the given bounds
crates/partitioning/src/planner.rs:109
Method
new
Creates a new Formatter for the given filesystem
crates/partitioning/src/formatter.rs:110
Method
new
Create a new DiskWriter.
crates/partitioning/src/writer.rs:85
Method
new
Create a new strategy using the specified allocation method
crates/partitioning/src/strategy.rs:79
Method
new_for_path
Create a new parser from a file path
crates/provisioning/src/lib.rs:49
Method
new_with_name
(name: &str, size_bytes: u64, parts_prefix: bool)
crates/disks/src/mock.rs:37
Function
parse
Generate a command to find a disk
crates/provisioning/src/commands/find_disk.rs:16
Function
parse
Generate a command to create a partition
crates/provisioning/src/commands/create_partition.rs:53
Function
parse
Generate a command to create a partition table
crates/provisioning/src/commands/create_partition_table.rs:17
Method
parse_strategy
Parse a strategy node
crates/provisioning/src/lib.rs:105
Method
partitions
Returns the partitions on the disk.
crates/disks/src/disk.rs:96
Method
plan_add_partition
(&mut self, start: u64, end: u64)
crates/partitioning/src/planner.rs:273
Method
plan_delete_partition
Plan to delete an existing partition
crates/partitioning/src/planner.rs:363
Method
reset
Clear all planned changes
crates/partitioning/src/planner.rs:401
Function
serialize
(value: &T, serializer: S)
crates/superblock/src/luks2/config.rs:143
Method
size
Returns the total size of the block device in bytes.
crates/disks/src/lib.rs:55
Function
test_alignment
()
crates/partitioning/src/planner.rs:623
Function
test_alignment_functions
()
crates/partitioning/src/planner.rs:646
Function
test_basic
[should_panic]
crates/provisioning/src/lib.rs:171
Function
test_determination
()
crates/superblock/src/lib.rs:214
Function
test_discover
()
crates/disks/src/lib.rs:181
Function
test_dual_boot_install
()
crates/partitioning/src/strategy.rs:372
Function
test_dual_boot_with_windows
()
crates/partitioning/src/planner.rs:505
Function
test_ext4_args
()
crates/partitioning/src/formatter.rs:155
Function
test_fat32_args
()
crates/partitioning/src/formatter.rs:143
Function
test_flexible_partition_overflow
()
crates/partitioning/src/strategy.rs:435
Function
test_fresh_installation
()
crates/partitioning/src/planner.rs:483
Function
test_initialize_disk_partition_numbers
()
crates/partitioning/src/planner.rs:667
Function
test_insufficient_space
()
crates/partitioning/src/strategy.rs:420
Function
test_minimal_server_install
()
crates/partitioning/src/strategy.rs:398
Function
test_partial_partition_creation
()
crates/partitioning/src/strategy.rs:457
Function
test_partition_boundaries
()
crates/partitioning/src/planner.rs:596
Function
test_partition_paths
()
crates/disks/src/lib.rs:211
← previous
next →
101–200 of 213, ranked by callers