Description
Done
Test
N/A
Description
[x]
[ ]
[ ]
Consider the difference between file size and disk usage to accurately estimate disk usage.
[x]
[x]
[ ]
Fix the issue of hard links being double-counted in disk usage calculations.
[x]
[ ]
[ ]
Use std::os::linux instead of std::os::unix or explicitly document the reliance on POSIX-compliant features.
[ ]
[ ]
[x]
Use the stat system call to retrieve relevant volume information, such as device ID and filesystem size.
[ ]
[ ]
[x]
Evaluate alternatives to sysinfo for better compatibility with older Linux environments.
[x]
[ ]
[ ]
Fix the get_volume_info function to ensure it returns the correct volume information for the specified path.
[x]
[ ]
[ ]
Introduce an XML output library to avoid formatting errors and eliminate the need for a custom xml_escape implementation.
[ ]
[ ]
[ ]
Test the behavior with symbolic links, hard links, and overlapping mount points.
[ ]
[ ]
[ ]
Validate the format and content of the generated XML output.
[ ]
[ ]
[ ]
Test the behavior of options when multiple device IDs are present.
[ ]
[ ]
[ ]
Add unit tests to improve test coverage and ensure reproducibility.
[ ]
[ ]
[ ]
Use mocks to ensure reproducibility in system-dependent tests.
[ ]
[ ]
[ ]
Refactor the code to improve readability and increase resilience to future changes.
Reactions are currently unavailable
You can’t perform that action at this time.
std::os::linuxinstead ofstd::os::unixor explicitly document the reliance on POSIX-compliant features.statsystem call to retrieve relevant volume information, such as device ID and filesystem size.sysinfofor better compatibility with older Linux environments.get_volume_infofunction to ensure it returns the correct volume information for the specified path.xml_escapeimplementation.