]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix dev.c return codes
authorKern Sibbald <kern@sibbald.com>
Mon, 26 Jul 2004 15:15:19 +0000 (15:15 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 26 Jul 2004 15:15:19 +0000 (15:15 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1490 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/dev.c
bacula/src/win32/README.win32

index 658ea1aad1caf2c9473d0fc4918c42ced8813178..a7141b2c26b17183af73a4419b92034eb45ee1cc 100644 (file)
@@ -743,7 +743,7 @@ bool offline_dev(DEVICE *dev)
       return false;
    }
    Dmsg1(100, "Offlined device %s\n", dev->dev_name);
-   return false;
+   return true;
 }
 
 int offline_or_rewind_dev(DEVICE *dev)
@@ -1110,7 +1110,7 @@ reposition_dev(DEVICE *dev, uint32_t file, uint32_t block)
       Dmsg1(100, "fsr %d\n", block-dev->block_num);
       return fsr_dev(dev, block-dev->block_num);
    }
-   return false;
+   return true;
 }
 
 
index 58efef1d56865932208e4d0b4432f00f78777de8..e4bee1eab6afc7fa68bf538d2d387b5add031f2d 100644 (file)
@@ -41,17 +41,16 @@ To build it:
 - You need Visual Studio installed.
 - You need to load depkgs-win32, then
     cd depkgs-win32
+    make
+    (after building zlib and pthreads, it fails in wx)
     cd wx
     ./configure
-    (try doing a make, but it will probably fail)   
-- You may have to build wx with VC++ (as was the case for me).
+    make
+    (if it succeeds skip the next item, otherwise do it) 
+- You may have to build wx with VC++.
   After starting VC++, use File->Open Workspace then
   open wx/src/wxWindows.dsw then use
   Build->Build All or Build->build wxmsw.lib should work too.
-- Then 
-    cd depkgs-win32
-    make
-  this will build pthreads and zlib
 - cd bacula
   ./configure --enable-client-only
   cd src/win32