Manjaro Difference between revisions of "Btrfs/tr"

Difference between revisions of "Btrfs/tr"

From Manjaro
(Created page with "Ayrıca bakınız: [https://btrfs.readthedocs.io/en/latest/Tree-checker.html Tree-ckecker]")
(Updating to match new version of source page)
Tags: Mobile web edit Mobile edit
Line 641: Line 641:
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
=== btrfs filesystem du ===
=== btrfs filesystem du ===
Here the full scope of btrfs' difference becomes visible. When btrfs takes snapshots, many files are contained unchanged in several snapshots, but only take up space in the file system once. At the same time, there can be the same(!) file with different content and size in different snapshots.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
It is therefore not enough to simply add up the size of all files in a path to determine the '''space consumption''' in the file system.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
For each file, it must be determined how large it is and whether all or part of it is shared with other subvolumes. Since btrfs has to read a lot of metadata for this, it can take a '''long time''' to display the results:
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{RootCmd|command=btrfs filesystem du -s /home}}
    Total  Exclusive  Set shared  Filename
  8.11TiB    6.23GiB  215.76GiB  /home
{{BoxInfo|Total|The sum of all files, as "du" would display them in a conventional file system. This is how much space a conventional file system would use to store these files (and all the necessary copies).}}
{{BoxInfo|Exclusive|The sum of the files that "only" occur in one of the subvolumes and are not shared with other subvolumes}}
{{BoxInfo|Set shared|The sum of files shared with other subvolumes}}
{{BoxInfo|Exclusive + Set shared|This is the actual space used in the file system}}
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
=== btrfs filesystem show ===
=== btrfs filesystem show ===
=== btrfs filesystem usage ===
=== btrfs filesystem usage ===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.