Changeset 893
- Timestamp:
- 31/08/2006 23:37:03 (5 years ago)
- File:
-
- 1 edited
-
box/chris/merge/lib/raidfile/RaidFileRead.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/merge/lib/raidfile/RaidFileRead.cpp
r710 r893 15 15 #include <errno.h> 16 16 #include <sys/stat.h> 17 18 #ifdef HAVE_SYS_UIO_H19 17 #include <sys/uio.h> 20 #endif21 22 #ifdef HAVE_SYSLOG_H23 18 #include <syslog.h> 24 #endif25 26 19 #include <stdarg.h> 27 28 #ifdef HAVE_DIRENT_H29 20 #include <dirent.h> 30 #endif31 21 32 22 #include <stdio.h> … … 594 584 // Open the parity file 595 585 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); 598 587 if(mParityHandle == -1) 599 588 { … … 1029 1018 1030 1019 // 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); 1033 1021 if(osFileHandle == -1) 1034 1022 { … … 1068 1056 { 1069 1057 // Open stripe1 1070 stripe1 = ::open(stripe1Filename.c_str(), 1071 O_RDONLY | O_BINARY, 0555); 1058 stripe1 = ::open(stripe1Filename.c_str(), O_RDONLY, 0555); 1072 1059 if(stripe1 == -1) 1073 1060 { … … 1075 1062 } 1076 1063 // Open stripe2 1077 stripe2 = ::open(stripe2Filename.c_str(), 1078 O_RDONLY | O_BINARY, 0555); 1064 stripe2 = ::open(stripe2Filename.c_str(), O_RDONLY, 0555); 1079 1065 if(stripe2 == -1) 1080 1066 { … … 1184 1170 if(existingFiles & RaidFileUtil::Stripe1Exists) 1185 1171 { 1186 stripe1 = ::open(stripe1Filename.c_str(), 1187 O_RDONLY | O_BINARY, 0555); 1172 stripe1 = ::open(stripe1Filename.c_str(), O_RDONLY, 0555); 1188 1173 if(stripe1 == -1) 1189 1174 { … … 1194 1179 if(existingFiles & RaidFileUtil::Stripe2Exists) 1195 1180 { 1196 stripe2 = ::open(stripe2Filename.c_str(), 1197 O_RDONLY | O_BINARY, 0555); 1181 stripe2 = ::open(stripe2Filename.c_str(), O_RDONLY, 0555); 1198 1182 if(stripe2 == -1) 1199 1183 { … … 1202 1186 } 1203 1187 // Open parity 1204 parity = ::open(parityFilename.c_str(), 1205 O_RDONLY | O_BINARY, 0555); 1188 parity = ::open(parityFilename.c_str(), O_RDONLY, 0555); 1206 1189 if(parity == -1) 1207 1190 {
Note: See TracChangeset
for help on using the changeset viewer.
