Skip to content

Commit 451d52b

Browse files
authored
Merge pull request #753 from nicholasbishop/bishop-fs-doc-tweaks
uefi: Minor cleanups in the fs module doc
2 parents 739bd8e + 238e20b commit 451d52b

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

uefi/src/fs/mod.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
//! A high-level file system API for UEFI applications close to the `fs` module
22
//! from Rust's standard library.
33
//!
4-
//! ## Difference to typical File System Abstractions
4+
//! # Difference to typical File System Abstractions
55
//! Users perform actions on dedicated volumes: For example, the boot volume,
66
//! such as a CD-rom, USB-stick, or any other storage device.
77
//!
8-
//! ### UNIX
9-
//! Unlike in the API of typical UNIX file system abstractions, there is no
10-
//! virtual file system.
8+
//! Unlike in the API of typical UNIX file system abstractions, there is
9+
//! no virtual file system.
1110
//!
12-
//! ### Windows
13-
//! Unlike in Windows, there is no way to access volumes by a dedicated name.
11+
//! Unlike Windows, there is no way to access volumes by a dedicated name.
1412
//!
15-
//! ## Paths
13+
//! # Paths
1614
//! All paths are absolute and follow the FAT-like file system conventions for
1715
//! paths. Thus, there is no current working directory and path components
18-
//! like `.` and `.."`are not supported. In other words, the current working
19-
//! directory is always `/`, i.e., the root, of the opened volume. This may
20-
//! change in the future but is currently sufficient.
16+
//! like `.` and `..` are not supported. In other words, the current working
17+
//! directory is always `/`, i.e., the root, of the opened volume.
2118
//!
2219
//! Symlinks or hard-links are not supported but only directories and regular
2320
//! files with plain linear paths to them.
2421
//!
25-
//! ## API Hints
22+
//! # API Hints
2623
//! There are no `File` and `Path` abstractions similar to those from `std` that
2724
//! are publicly exported. Instead, paths to files are provided as `&str`, and
2825
//! will be validated and transformed internally to the correct type.
2926
//! Furthermore, there are no `File` objects that are exposed to users. Instead,
3027
//! it is intended to work with the file system as in `std::fs`.
3128
//!
32-
//! ### Synchronization
3329
//! There is no automatic synchronization of the file system for concurrent
3430
//! accesses. This is in the responsibility of the user.
3531

0 commit comments

Comments
 (0)