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

duc xml: Ability to specify min actual size vs. apparent size #171

Closed
ech3 opened this issue Jan 20, 2017 · 0 comments
Closed

duc xml: Ability to specify min actual size vs. apparent size #171

ech3 opened this issue Jan 20, 2017 · 0 comments

Comments

@ech3
Copy link

ech3 commented Jan 20, 2017

Currently with the duc xml -s switch, this is calculated based on the apparent size and not the actual size. I have a variety of tools which create sparse files and they are triggering my script that uses duc, but when I report the size via du, the size is much smaller because I am not using the --apparent switch with du. Steps in UNIX to reproduce the problem:

mkdir temp
cd temp
truncate -s 512M file.img
duc index -d file.duc .
duc xml -s 1024000 -d file.duc

Here is the output:
<?xml version="1.0" encoding="UTF-8"?>
<duc root="." size_apparent="537137664" size_actual="560128">
<ent name="file.img" size_apparent="536870912" size_actual="1536" />
</duc>

In my case I only care about actual size use, not apparent size usage. Having either an option to specify that I only care about actual size, or a modifier to change how the -s is interpreted would be appreciated. Again, thanks for all your hard work on this program.

@zevv zevv closed this as completed in 815424e Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant