Commit Graph

99 Commits

Author SHA1 Message Date
ahodgkinson
609223d289 Changed return codes to be defined constants (rather than enums) in preparation for moving FLAIM to FTK.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@432 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-05-19 21:53:29 +00:00
ahodgkinson
e54b36f8a5 More changes to fix defect 162934 (need to pass FLM_NO_TIMEOUT).
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@413 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-05-17 22:25:06 +00:00
dsandersoremutah
e76ad4d5a8 Bugzilla defect 169989. When writing blocks in the rollback log back into the database, we need to write out the full block size, not just the part of the block that has data. This is necessary in case the blocks we are writing back have not ever actually been flushed out of cache.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@367 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-05-01 16:42:42 +00:00
dsandersoremutah
705b025696 Bugzilla bug #162934. Changed lock timeout to FLM_NO_TIMEOUT in various places so we won't get the lock timeout errors unnecessarily.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@354 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-26 16:06:02 +00:00
ahodgkinson
266ab9b809 Defect 169256. Needed to set the reference count and flags values of a FlmRecord object to zero during a call to allocCell().
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@353 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-25 21:11:50 +00:00
ahodgkinson
451250402d Fixed build problem on Linux.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@338 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-11 21:55:27 +00:00
ahodgkinson
436dbe2149 Got rid of ia64_compare_and_swap.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@337 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-11 18:16:22 +00:00
ahodgkinson
d0eb4e6a30 Got rid of broken PPC atomic ops. Added calls to OsAtomic APIs provided on OS X to support atomic operations on the Mac.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@336 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-11 17:05:12 +00:00
ahodgkinson
54b5a1143d Misc. cleanup.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@335 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-10 23:18:13 +00:00
ahodgkinson
c3c0fdf771 Changes to use OsAtomic ops from libkern/OSAtomic.h on Darwin.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@334 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-10 22:39:16 +00:00
ahodgkinson
7d92b0be0f Fixed bugs in PPC atomic ops.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@333 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-10 21:22:26 +00:00
ahodgkinson
e1c1f57282 Fixed OS X link error.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@332 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-10 16:35:13 +00:00
ahodgkinson
3bd585603b OS X cleanup.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@331 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-07 22:01:37 +00:00
ahodgkinson
44205c31d0 Various Solaris fixes.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@329 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-07 21:36:51 +00:00
ahodgkinson
70ae42eeb8 Fixed Linux compile warning.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@327 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-07 20:05:45 +00:00
ahodgkinson
d9fe1d9bb7 Fixed compile error on Solaris.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@320 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-06 19:50:27 +00:00
ahodgkinson
9b81486d6c Added typecasts to fix Solaris build issues.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@319 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-06 16:32:19 +00:00
dsandersoremutah
f2c474c2f1 Set eol-style property to Unix (LF)
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@296 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-05 19:06:32 +00:00
dsandersoremutah
f8a9a13a8b Set eof-style property to Unix (LF)
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@295 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-05 19:05:30 +00:00
dsandersoremutah
2ca0ce607b Ran dos2unix to fixup CR/LF to LF.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@294 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-05 19:03:45 +00:00
dsandersoremutah
3cc709874f git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@293 0109f412-320b-0410-ab79-c3e0c5ffbbe6 2006-04-05 18:59:27 +00:00
dsandersoremutah
26d28cb628 Changed eol style to be Unix (LF).
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@288 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-05 18:03:11 +00:00
dsandersoremutah
dbaade44ac Updated list of files.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@282 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-04 16:44:13 +00:00
dsandersoremutah
0edea58de2 Bugzilla defect #141186. Allow an application to exceeded our hardcoded cache limits when they are setting a hard limit.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@244 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-04-03 15:30:29 +00:00
dsandersoremutah
cf386260cd Bugzilla defect #159826. Inside chkSetupLfTable, when sorting logical files, the logical file's pointer to the LfTable entry needed to be adjusted after moving entries in the LfTable.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@229 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-30 19:38:36 +00:00
dsandersoremutah
90b68e5ba1 Initialized variables to silence compiler warning.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@228 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-30 19:21:55 +00:00
dsandersoremutah
066d5b8e30 Added packets for dealing with new large fields.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@225 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-29 22:19:07 +00:00
dsandersoremutah
38e4696fe5 Needed to use field encryption overhead offsets defined in fstructs.h to get information out of an encrypted field's header. Also changed names of defines to have _OFFSET on them.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@224 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-29 22:18:21 +00:00
dsandersoremutah
a916f68a59 Needed to fixup field overhead offsets for encrypted fields to account for new large fields.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@223 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-29 22:16:48 +00:00
dsandersoremutah
f4725de973 Fixed FLMSIZET typedefs for Windows.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@220 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-29 19:06:37 +00:00
ahodgkinson
8c1ca5fcea Re-organized code and added some new files.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@219 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-28 22:50:10 +00:00
ahodgkinson
3eaf791406 Added support for large field values (up to 4 GB), async and direct I/O on Linux and Solaris, and performed major code cleanup.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@213 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-28 19:25:14 +00:00
dsandersoremutah
0023b51ad8 Bugzilla bug #145076. Added FLM_ROOTED_PATH capability to speed up searches and take advantage of field ID table in flmCurGetAtomFromRec.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@212 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-24 18:14:19 +00:00
dsandersoremutah
abd5f1a33a Needed to allow for encrypted data packets on recovery.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@210 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-23 23:17:24 +00:00
ahodgkinson
a060eb3330 Added typecasts for Solaris.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@209 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-23 22:51:01 +00:00
ahodgkinson
436f3115aa Renamed big-endian byte-swap macros to make their purpose clear.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@207 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-23 22:39:50 +00:00
ahodgkinson
a72914ec65 Fixed compile error on big endian platforms.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@206 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-23 21:58:30 +00:00
ahodgkinson
57e0e57420 Added support for NetWare builds using the OpenWatcom compiler.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@205 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-23 21:45:43 +00:00
dsandersoremutah
537e33bf24 First set of changes needed for bugzilla bug #145076. Added ability to keep a field id table for level one fields.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@204 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-23 17:37:47 +00:00
ahodgkinson
77fdc5ed76 Updates for NetWare build.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@203 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-21 00:10:21 +00:00
ahodgkinson
990cfeb135 Added native assembly implementations of atomic ops for Solaris+SPARC+Workshop.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@202 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-20 21:22:16 +00:00
ahodgkinson
a0bb4e68fb Added FLM_GNUC define.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@201 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-20 21:20:26 +00:00
ahodgkinson
b794af9d3a Added typecast for AIX.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@200 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-17 23:36:12 +00:00
ahodgkinson
0dc23f110a Changed test code in FlmStartup to validate atomic primitives on platforms that require mutexes for atomicity.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@199 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-17 23:35:55 +00:00
ahodgkinson
6c89a7432e Added AddRef() method to FlmRecordExt.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@198 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-17 23:05:10 +00:00
ahodgkinson
49f94ac46d Fixed double mutex lock issue.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@197 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-17 23:02:45 +00:00
ahodgkinson
b4d7fbc0dc Fixed Solaris compiler warnings.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@196 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-17 22:41:25 +00:00
ahodgkinson
c4fb5158eb Got rid of ftksem.h.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@194 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-17 22:35:41 +00:00
ahodgkinson
1992bcede0 Fixed Linux build issues.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@193 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-17 22:17:20 +00:00
ahodgkinson
7b7988153a Changes to allow atomic operators to use a mutex if provided by the caller. The mutex will only be used if native atomic operations aren't supported on the host platform.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@192 0109f412-320b-0410-ab79-c3e0c5ffbbe6
2006-03-17 21:59:35 +00:00