5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2024-12-21 09:34:21 +03:00

datastore: docs: escape <uuid>

Fixes the cargo doc lint:

```
warning: unclosed HTML tag `uuid`
  --> pbs-datastore/src/datastore.rs:60:41
   |
60 | ///  - could not stat /dev/disk/by-uuid/<uuid>
   |                                         ^^^^^^
   |
   = note: `#[warn(rustdoc::invalid_html_tags)]` on by default

warning: unclosed HTML tag `uuid`
  --> pbs-datastore/src/datastore.rs:61:26
   |
61 | ///  - /dev/disk/by-uuid/<uuid> is not a block device
```

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2024-12-03 14:41:38 +01:00 committed by Fabian Grünbichler
parent f55a08891e
commit d430b05ec3

View File

@ -56,9 +56,9 @@ pub fn check_backup_owner(owner: &Authid, auth_id: &Authid) -> Result<(), Error>
/// returning false.
///
/// Reasons it could fail other than not being mounted where expected:
/// - could not read /proc/self/mountinfo
/// - could not stat /dev/disk/by-uuid/<uuid>
/// - /dev/disk/by-uuid/<uuid> is not a block device
/// - could not read `/proc/self/mountinfo`
/// - could not stat `/dev/disk/by-uuid/<uuid>`
/// - `/dev/disk/by-uuid/<uuid>` is not a block device
///
/// Since these are very much out of our control, there is no real value in distinguishing
/// between them, so for this function they all are treated as 'device not mounted'