diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-03 22:17:59 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-03 22:19:57 +0900 |
| commit | 74811ddaff123e331368f69d93de4c9741f82fee (patch) | |
| tree | 509ce7d4b8d99ffece4b1b6c296a5f3f514ca96f /src/option_processing.cc | |
| parent | e6e3cd2e325d24137eb3bc328768d2f4377e89af (diff) | |
mingw: Add warning for falloc
Diffstat (limited to 'src/option_processing.cc')
| -rw-r--r-- | src/option_processing.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/option_processing.cc b/src/option_processing.cc index 7b14c323..89ea9cf3 100644 --- a/src/option_processing.cc +++ b/src/option_processing.cc @@ -337,6 +337,17 @@ error_code::Value option_processing(Option& op, bool standalone, "--save-session"); op.remove(PREF_DEFERRED_INPUT); } + +#ifdef __MINGW32__ + if (op.get(PREF_FILE_ALLOCATION) == V_FALLOC) { + A2_LOG_WARN( + "--file-allocation=falloc will use SetFileValidData() API, and " + "aria2 uses uninitialized disk space which may contain " + "confidential data as the download file space. If it is " + "undesirable, --file-allocation=prealloc is slower, but safer option."); + } +#endif // __MINGW32__ + return error_code::FINISHED; } |
