| Summary: | if partition gets full during camera/card copy there is no warning and empty files are created. | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Alexia Death <alexiadeath> | 
| Component: | Import-UMS | Assignee: | Digikam Developers <digikam-bugs-null> | 
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | VHI | ||
| Version First Reported In: | 0.9.0 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 0.9.1 | |
| Sentry Crash Report: | |||
| 
 
        
          Description
        
        
          Alexia Death
        
        
        
        
          2006-11-05 18:43:30 UTC
        
       
    This file must be fixed before 0.9.0-final release. Gilles Caulier Marcel, Can you reproduce this problem on your computer ? Gilles SVN commit 619537 by mwiesweg:
When partition is full, QIODevice::writeBlock will not return -1 as error,
but 0 for zero bytes written.
BUG: 136903
 M  +1 -1      umscamera.cpp  
--- trunk/extragear/graphics/digikam/utilities/cameragui/umscamera.cpp #619536:619537
@@ -239,7 +239,7 @@
     Q_LONG len;
     while ((len = sFile.readBlock(buffer, MAX_IPC_SIZE)) != 0 && !m_cancel)
     {
-        if (len == -1 || dFile.writeBlock(buffer, (Q_ULONG)len) == -1)
+        if (len == -1 || dFile.writeBlock(buffer, (Q_ULONG)len) != len)
         {
             sFile.close();
             dFile.close();
     |