Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a998ff2

Browse files
authored
Document new features
added ability to find files that have the unique extents
1 parent 591d96b commit a998ff2

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

‎README.md‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@ Now, the actual disk size of Snapshot 1 can be extracted from each file extent
2727

2828
[python-btrfs](https://github.com/knorrie/python-btrfs) must be installed.
2929

30-
Program is single threaded, it could use a lot of memory and it puts a lot of read stress in disks. It could take many minutes. ionice it & monitor its memory usage. Memory usage & execution time depend on the dataset. The program does not perform any write operations. Do not modify subvolume/snapshot during execution.
30+
Program is single threaded, it could use a lot of memory and it puts a lot of read stress in disks. It could take many minutes. ionice it & monitor its memory usage. Memory usage & execution time depend on the dataset. The program does not perform any write operations. Do not modify subvolume/snapshot during execution. Try not to write any data to any subvolume or execute dedup programs in parallel.
3131

32-
`subvolume.py [-u] [-r <root tree, default 5>] /path/to/btrfs/ [<subvolume id to ignore1> <subvolume id to ignore2>]`
32+
`subvolume.py [-u] [-f] [-r <root tree, default 5>] /path/to/btrfs/ [ -i | -o ] [<subvolume id1> <subvolume id2>]`
3333

3434
`-u` calculates the unique data occupied by each snapshot. Thus, `-r` makes no sense. Specifying subvolumes to ignore can mess with `-u` results because the specified subvolume data will not be parsed!
35+
`-f` finds the files that might contribute to the unique extents.
36+
`-i` makes the program to ignore the specified subvolumes, which is also the default behaviour if no `-i` or `-o` argument is specified but subvolumes are given.
37+
`-o` makes the program to analyze only the specified subvolumes.
3538

3639
You can find subvolume ids by using:
3740
`btrfs subvolume list /path/to/btrfs`
@@ -133,6 +136,19 @@ Snapshot 2133 introduced 17GiB, where most of them still reside on the system (u
133136
Thus, deleting snapshot 2133, will only free 6MiB. Snapshot 2133 has 119MiB changed compared to current/ active (258) subvolume.
134137
When using `-u` argument only the first column has values.
135138

139+
Files result example:
140+
```
141+
Possible Unique Files:
142+
beeshash.dat/ : {4652}
143+
beescrawl.dat/ : {4652}
144+
beesstats.txt/ : {4652}
145+
2708/filelist-2700.txt/ : {259}
146+
2744/filelist-2741.txt/ : {259}
147+
2752/filelist-2744.txt/ : {259}
148+
2795/filelist-2789.txt/ : {259}
149+
```
150+
151+
136152
## Possible expansions:
137153

138154
Calculate the size of metadata block differences.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /