Changeset 893


Ignore:
Timestamp:
31/08/2006 23:37:03 (5 years ago)
Author:
chris
Message:

Revert to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/raidfile/RaidFileRead.cpp

    r710 r893  
    1515#include <errno.h> 
    1616#include <sys/stat.h> 
    17  
    18 #ifdef HAVE_SYS_UIO_H 
    1917#include <sys/uio.h> 
    20 #endif 
    21  
    22 #ifdef HAVE_SYSLOG_H 
    2318#include <syslog.h> 
    24 #endif 
    25  
    2619#include <stdarg.h> 
    27  
    28 #ifdef HAVE_DIRENT_H 
    2920#include <dirent.h> 
    30 #endif 
    3121 
    3222#include <stdio.h> 
     
    594584        // Open the parity file 
    595585        std::string parityFilename(RaidFileUtil::MakeRaidComponentName(rdiscSet, mFilename, (2 + startDisc) % READ_NUMBER_DISCS_REQUIRED)); 
    596         mParityHandle = ::open(parityFilename.c_str(),  
    597                 O_RDONLY | O_BINARY, 0555); 
     586        mParityHandle = ::open(parityFilename.c_str(), O_RDONLY, 0555); 
    598587        if(mParityHandle == -1) 
    599588        { 
     
    10291018 
    10301019                // Attempt to open 
    1031                 int osFileHandle = ::open(writeFilename.c_str(),  
    1032                         O_RDONLY | O_BINARY, 0); 
     1020                int osFileHandle = ::open(writeFilename.c_str(), O_RDONLY, 0); 
    10331021                if(osFileHandle == -1) 
    10341022                { 
     
    10681056                { 
    10691057                        // Open stripe1 
    1070                         stripe1 = ::open(stripe1Filename.c_str(),  
    1071                                 O_RDONLY | O_BINARY, 0555); 
     1058                        stripe1 = ::open(stripe1Filename.c_str(), O_RDONLY, 0555); 
    10721059                        if(stripe1 == -1) 
    10731060                        { 
     
    10751062                        } 
    10761063                        // Open stripe2 
    1077                         stripe2 = ::open(stripe2Filename.c_str(),  
    1078                                 O_RDONLY | O_BINARY, 0555); 
     1064                        stripe2 = ::open(stripe2Filename.c_str(), O_RDONLY, 0555); 
    10791065                        if(stripe2 == -1) 
    10801066                        { 
     
    11841170                        if(existingFiles & RaidFileUtil::Stripe1Exists) 
    11851171                        { 
    1186                                 stripe1 = ::open(stripe1Filename.c_str(),  
    1187                                         O_RDONLY | O_BINARY, 0555); 
     1172                                stripe1 = ::open(stripe1Filename.c_str(), O_RDONLY, 0555); 
    11881173                                if(stripe1 == -1) 
    11891174                                { 
     
    11941179                        if(existingFiles & RaidFileUtil::Stripe2Exists) 
    11951180                        { 
    1196                                 stripe2 = ::open(stripe2Filename.c_str(),  
    1197                                         O_RDONLY | O_BINARY, 0555); 
     1181                                stripe2 = ::open(stripe2Filename.c_str(), O_RDONLY, 0555); 
    11981182                                if(stripe2 == -1) 
    11991183                                { 
     
    12021186                        } 
    12031187                        // Open parity 
    1204                         parity = ::open(parityFilename.c_str(),  
    1205                                 O_RDONLY | O_BINARY, 0555); 
     1188                        parity = ::open(parityFilename.c_str(), O_RDONLY, 0555); 
    12061189                        if(parity == -1) 
    12071190                        { 
Note: See TracChangeset for help on using the changeset viewer.