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
42
43
//! Implementation of the EXPORT procedure (procedure 5) for `MOUNT` version 3 protocol
//! as defined in RFC 1813 section 5.2.5.
//! <https://datatracker.ietf.org/doc/html/rfc1813#section-5.2.5>.
use Write;
use debug;
use craterpc;
use crate;
/// Handles `MOUNTPROC3_EXPORT` procedure.
///
/// Function returns a list of all the exported file
/// systems and which clients are allowed to mount each one.
///
/// TODO: Currently function returns only one mount point in the list without groups.
///
/// # Arguments
///
/// * `xid` - RPC transaction ID
/// * `output` - Output stream for writing the response
/// * `context` - Server context containing export information
///
/// # Returns
///
/// * `Result<(), anyhow::Error>` - Ok(()) on success or an error