Closed GoogleCodeExporter closed 8 years ago
does this patch work and make sense? (it's against trunk)
Index: src/storage.cpp
===================================================================
--- src/storage.cpp (revision 9985)
+++ src/storage.cpp (working copy)
@@ -405,6 +405,14 @@
bool default_storage::initialize(bool allocate_files)
{
m_allocate_files = allocate_files;
+
+#ifdef TORRENT_WINDOWS
+ // don't do full file allocations on network drives
+ int drive_type = GetDriveType(m_save_path.c_str());
+ if (drive_type == DRIVE_REMOTE)
+ m_allocate_files = false;
+#endif
+
error_code ec;
m_file_created.resize(files().num_files(), false);
Original comment by arvid.no...@gmail.com
on 6 Jun 2014 at 3:57
I committed this to trunk. please re-open this ticket if you find any issues.
Original comment by arvid.no...@gmail.com
on 7 Jun 2014 at 4:19
Original issue reported on code.google.com by
Zapo...@gmail.com
on 6 Jun 2014 at 5:29