Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have the total file size of a volume into struct ltfs_index #416

Open
piste-jp opened this issue Jul 13, 2023 · 1 comment
Open

Have the total file size of a volume into struct ltfs_index #416

piste-jp opened this issue Jul 13, 2023 · 1 comment
Assignees

Comments

@piste-jp
Copy link
Member

Is your feature request related to a problem? Please describe.
I would like to know how the total file size in a LTFS tape (accumulated logical size without tape drive compression and size of indexes).

Describe the solution you'd like
Add a field into struct ltfs_index.

@piste-jp piste-jp self-assigned this Jul 13, 2023
@mrichmon
Copy link

mrichmon commented Dec 30, 2023

How would this be a benefit over using standard filesystem tools such as du or df to calculate the file sizes on the volume?

The concern with having a filesystem-wide value that holds the sum of the file sizes on the volume is that maintaining the accuracy of the total is fairly complex and will likely require both a global lock, and some interpolation of the seek and write operations per open file.

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

No branches or pull requests

2 participants