mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-28 12:50:53 +00:00
fix typos in rust documentation blocks
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
a62a9f098d
commit
1198253b20
@ -223,7 +223,7 @@ pub enum Role {
|
||||
RemoteAudit = ROLE_REMOTE_AUDIT,
|
||||
/// Remote Administrator
|
||||
RemoteAdmin = ROLE_REMOTE_ADMIN,
|
||||
/// Syncronisation Opertator
|
||||
/// Synchronization Operator
|
||||
RemoteSyncOperator = ROLE_REMOTE_SYNC_OPERATOR,
|
||||
/// Tape Auditor
|
||||
TapeAudit = ROLE_TAPE_AUDIT,
|
||||
|
@ -62,7 +62,7 @@ pub struct PxarCreateOptions {
|
||||
|
||||
pub type MetadataArchiveReader = Arc<dyn ReadAt + Send + Sync + 'static>;
|
||||
|
||||
/// Statefull information of previous backups snapshots for partial backups
|
||||
/// Stateful information of previous backups snapshots for partial backups
|
||||
pub struct PxarPrevRef {
|
||||
/// Reference accessor for metadata comparison
|
||||
pub accessor: Accessor<MetadataArchiveReader>,
|
||||
|
@ -179,7 +179,7 @@ impl CachedUserInfo {
|
||||
(privs, propagated_privs)
|
||||
}
|
||||
|
||||
/// Checks whether the `auth_id` has any of the privilegs `privs` on any object below `path`.
|
||||
/// Checks whether the `auth_id` has any of the privileges `privs` on any object below `path`.
|
||||
pub fn any_privs_below(
|
||||
&self,
|
||||
auth_id: &Authid,
|
||||
|
@ -10,7 +10,7 @@ pub mod async_lru_cache;
|
||||
|
||||
/// Set MMAP_THRESHOLD to a fixed value (128 KiB)
|
||||
///
|
||||
/// This avoids the "dynamic" mmap-treshold logic from glibc's malloc, which seems misguided and
|
||||
/// This avoids the "dynamic" mmap-threshold logic from glibc's malloc, which seems misguided and
|
||||
/// effectively avoids using mmap for all allocations smaller than 32 MiB. Which, in combination
|
||||
/// with the allocation pattern from our/tokio's complex async machinery, resulted in very large
|
||||
/// RSS sizes due to defragmentation and long-living (smaller) allocation on top of the heap
|
||||
|
@ -29,7 +29,7 @@ use crate::{
|
||||
#[derive(Copy, Clone, Serialize)]
|
||||
/// Speed test result
|
||||
struct Speed {
|
||||
/// The meassured speed in Bytes/second
|
||||
/// The measured speed in Bytes/second
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
speed: Option<f64>,
|
||||
/// Top result we want to compare with
|
||||
|
@ -37,7 +37,7 @@ pub type Async<R> = Pin<Box<dyn Future<Output = R> + Send>>;
|
||||
|
||||
/// An abstract implementation for retrieving data out of a block file backup
|
||||
pub trait BlockRestoreDriver {
|
||||
/// List ArchiveEntrys for the given image file and path
|
||||
/// List ArchiveEntries for the given image file and path
|
||||
fn data_list(
|
||||
&self,
|
||||
details: SnapRestoreDetails,
|
||||
|
@ -101,7 +101,7 @@ impl SharedBackupState {
|
||||
}
|
||||
}
|
||||
|
||||
/// `RpcEnvironmet` implementation for backup service
|
||||
/// `RpcEnvironment` implementation for backup service
|
||||
#[derive(Clone)]
|
||||
pub struct BackupEnvironment {
|
||||
env_type: RpcEnvironmentType,
|
||||
|
@ -306,7 +306,7 @@ fn stop_service(
|
||||
permission: &Permission::Privilege(&["system", "services", "{service}"], PRIV_SYS_MODIFY, false),
|
||||
},
|
||||
)]
|
||||
/// Retart service.
|
||||
/// Restart service.
|
||||
fn restart_service(
|
||||
service: String,
|
||||
_param: Value,
|
||||
|
@ -11,7 +11,7 @@ use pbs_datastore::DataStore;
|
||||
use proxmox_rest_server::formatter::*;
|
||||
use proxmox_rest_server::WorkerTask;
|
||||
|
||||
/// `RpcEnvironmet` implementation for backup reader service
|
||||
/// `RpcEnvironment` implementation for backup reader service
|
||||
#[derive(Clone)]
|
||||
pub struct ReaderEnvironment {
|
||||
env_type: RpcEnvironmentType,
|
||||
|
@ -150,7 +150,7 @@ pub struct MediaSetLabel {
|
||||
pub seq_nr: u64,
|
||||
/// Creation time stamp
|
||||
pub ctime: i64,
|
||||
/// Encryption key finkerprint (if encryped)
|
||||
/// Encryption key finkerprint (if encrypted)
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub encryption_key_fingerprint: Option<Fingerprint>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user