Skip to content

TODO #1

Description

@kojix2
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions