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

doc: warn that preallocation disables compression on btrfs #1692

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/manual-src/en/aria2c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1357,9 +1357,10 @@ Advanced Options
If you are using newer file systems such as ext4
(with extents support), btrfs, xfs or NTFS(MinGW build only), ``falloc`` is
your best choice. It allocates large(few GiB)
files almost instantly. Don't use ``falloc`` with
legacy file systems such as ext3 and FAT32 because it takes
almost same time as ``prealloc`` and it blocks aria2
files almost instantly. Note that btrfs disables compression when
pre-allocating, use ``trunc`` or ``none`` if you want compression.
Don't use ``falloc`` with legacy file systems such as ext3 and FAT32
because it takes almost same time as ``prealloc`` and it blocks aria2
entirely until allocation finishes. ``falloc`` may
not be available if your system doesn't have
:manpage:`posix_fallocate(3)` function.
Expand Down
7 changes: 4 additions & 3 deletions doc/manual-src/pt/aria2c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1204,9 +1204,10 @@ Opções Avançadas
If you are using newer file systems such as ext4
(with extents support), btrfs, xfs or NTFS(MinGW build only), ``falloc`` is
your best choice. It allocates large(few GiB)
files almost instantly. Don't use ``falloc`` with
legacy file systems such as ext3 and FAT32 because it takes
almost same time as ``prealloc`` and it blocks aria2
files almost instantly. Note that btrfs disables compression when
pre-allocating, use ``trunc`` or ``none`` if you want compression.
Don't use ``falloc`` with legacy file systems such as ext3 and FAT32
because it takes almost same time as ``prealloc`` and it blocks aria2
entirely until allocation finishes. ``falloc`` may
not be available if your system doesn't have
:manpage:`posix_fallocate(3)` function.
Expand Down
13 changes: 8 additions & 5 deletions src/usage_text.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,15 @@
" the file.\n" \
" If you are using newer file systems such as ext4\n" \
" (with extents support), btrfs, xfs or NTFS\n" \
" (MinGW build only), 'falloc' is your best\n" \
" (MinGW build only), 'falloc' is your best\n" \
" choice. It allocates large(few GiB) files\n" \
" almost instantly. Don't use 'falloc' with legacy\n" \
" file systems such as ext3 and FAT32 because it\n" \
" takes almost same time as 'prealloc' and it\n" \
" blocks aria2 entirely until allocation finishes.\n" \
" almost instantly. Note that btrfs disables\n" \
" compression when pre-allocating, use ``trunc``\n" \
" or ``none`` if you want compression. Don't use\n" \
" 'falloc' with legacy file systems such as ext3\n" \
" and FAT32 because it takes almost same time as\n" \
" 'prealloc' and it blocks aria2 entirely until\n" \
" allocation finishes.\n" \
" 'falloc' may not be available if your system\n" \
" doesn't have posix_fallocate() function.\n" \
" 'trunc' uses ftruncate() system call or\n" \
Expand Down