1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Implementation of the UMNTALL procedure (procedure 4) for MOUNT version 3 protocol
//! as defined in RFC 1813 section 5.2.4
//! <https://datatracker.ietf.org/doc/html/rfc1813#section-5.2.4>.
use Write;
use debug;
use craterpc;
use crate;
/// Handles `MOUNTPROC3_UMNTALL` procedure.
///
/// Function removes all of the mount entries for
/// this client previously recorded by calls to MNT.
///
/// TODO: Currently we have only one mount point,
/// if there will be more, we need to extend functionality.
///
/// # Arguments
///
/// * `xid` - RPC transaction ID
/// * `output` - Output stream for writing the response
/// * `context` - Server context containing mount signal information
///
/// # Returns
///
/// * `Result<(), anyhow::Error>` - Ok(()) on success or an error
pub async