aria2
aria2 copied to clipboard
What are the conditions to enable the --file-allocation=falloc option?
什么情况下才能使 --file-allocation=falloc 选项生效?
根据选项说明 According to the option description:
If you are using newer file systems such as ext4 (with extents support), btrfs, xfs or NTFS (MinGW build only), 'falloc' is your best 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 the same time as 'prealloc' and it blocks aria2 entirely until allocation finishes. 'falloc' may not be available if your system 'falloc' may not be available if your system doesn't have posix_fallocate() function. 'trunc' uses ftruncate() system call or platform-specific counterpart to truncate a file to a specified length.
我使用的操作系统是 Windows 7 ,文件系统是 NTFS ,aria2 版本 1.36.0,但我使用 --file-allocation=falloc 选项时却返回: I'm using Windows 7 and NTFS, aria2 version 1.36.0, but when I use the --file-allocation=falloc option it returns:
[NOTICE] Downloading 1 item(s)
[WARN] Gaining privilege SeManageVolumePrivilege failed.
[WARN] --file-allocation=falloc will not work properly.
[WARN] File allocation (SetFileValidData) failed (cause: A required privilege is not held by the client.). ). File will be allocated by filling zero, which blocks whole aria2 execution. Run aria2 as an administrator or use a different file allocation method (see -- file-allocation). file-allocation).
如果在管理员权限下运行则返回提示: Returns a prompt if run with administrator privileges:
[NOTICE] Downloading 1 item(s)
[WARN] --file-allocation=falloc will use SetFileValidData() API, and aria2 uses uninitialized disk space which may contain confidential data as the If it is undesirable, --file-allocation=prealloc is slower, but safer option.
[WARN] File allocation (SetFileValidData) failed (cause: The parameter is incorrect. ). File will be allocated by filling zero, which blocks whole aria2 execution. Run aria2 as an administrator or use a different file allocation method (see --file-allocation).
那么究竟要在什么情况下使用 --file-allocation=falloc 选项才生效? So under what circumstances should the --file-allocation=falloc option be used for it to take effect?