Repository navigation
Commit fe09e16
Btrfs: export btrfs space shared info to userspace
Similar to ocfs2, btrfs also supports that extents can be shared by
different inodes, and there are some userspace tools requesting
for this kind of 'space shared infomation'.[1]
ocfs2 uses flag FIEMAP_EXTENT_SHARED, so does btrfs.
[1]: http://thr3ads.net/ocfs2-devel/2010/09/489052-PATCH-3-3-shared-du-using-fiemap-to-figure-up-the-shared-extents-per-file-and-the-footprint-in
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>1 parent 7451432 commit fe09e16
1 file changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
4062 | 4063 | | |
4063 | 4064 | | |
4064 | 4065 | | |
| 4066 | + | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
4065 | 4079 | | |
4066 | 4080 | | |
4067 | 4081 | | |
| |||
4128 | 4142 | | |
4129 | 4143 | | |
4130 | 4144 | | |
4131 | | - | |
| 4145 | + | |
4132 | 4146 | | |
4133 | 4147 | | |
4134 | 4148 | | |
| |||
4198 | 4212 | | |
4199 | 4213 | | |
4200 | 4214 | | |
| 4215 | + | |
| 4216 | + | |
4201 | 4217 | | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
4202 | 4233 | | |
4203 | 4234 | | |
4204 | 4235 | | |
| |||
4230 | 4261 | | |
4231 | 4262 | | |
4232 | 4263 | | |
| 4264 | + | |
4233 | 4265 | | |
4234 | 4266 | | |
4235 | 4267 | | |
| |||
0 commit comments