fix(extractors/filesystem-device-match): clarify when to use fallback for empty criteria

This commit is contained in:
2025-10-28 00:09:11 -04:00
parent deeda650a7
commit c8a3408fdd

View File

@@ -17,10 +17,10 @@ use uefi_raw::Status;
/// This extractor finds a filesystem using some search criteria and returns /// This extractor finds a filesystem using some search criteria and returns
/// the device root path that can concatenated with subpaths to access files /// the device root path that can concatenated with subpaths to access files
/// on a particular filesystem. /// on a particular filesystem.
///
/// This function only requires all the criteria to match.
/// If no criteria is provided, no filesystem is matched.
/// The fallback value can be used to provide a value if no match is found. /// The fallback value can be used to provide a value if no match is found.
///
/// This function only requires all the criteria to match. If no criteria is provided,
/// no filesystem is matched, and the fallback value is used if it is provided.
#[derive(Serialize, Deserialize, Debug, Default, Clone)] #[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct FilesystemDeviceMatchExtractor { pub struct FilesystemDeviceMatchExtractor {
/// Matches a filesystem that has the specified label. /// Matches a filesystem that has the specified label.