Go to file
Michal Rakowski ef2a7b77bd
Merge pull request #28 from robertbaldyga/add_resched
Add env_cond_resched() in the loop that may execute for a long time
2019-01-02 14:54:35 +01:00
doc Update doxygen documentation header 2018-12-03 08:04:30 +01:00
inc Add str_to_uuid function 2018-12-19 13:30:17 +01:00
src Add env_cond_resched() in the loop that may execute for a long time 2019-01-02 14:49:30 +01:00
tests OCF provides own macros for MIN, MAX, and DIV_ROUND_UP 2018-12-13 10:59:23 -05:00
Makefile Initial commit 2018-11-29 15:14:21 +01:00
README.md Slightly reword README.md 2018-12-28 09:44:21 +01:00

Open CAS Framework

Open CAS Framwework (OCF) is high performance block storage caching meta-library written in C. It's entirely platform and system independent, accessing system API through user provided environment wrappers layer. OCF tightly integrates with the rest of software stack, providing flawless, high performance, low latency caching utility.

In this readme:

Documentation

Doxygen API documentation is available here.
More documentation, tutorial and examples will be available soon.

Source Code

Source code is available in the official OCF GitHub repository:

git clone https://github.com/open-cas/ocf
cd ocf

Deployment

OCF doesn't compile as separate library. It's designed to be included into another software stack. For this purpose OCF provides Makefile with two useful targets for deploying its source into target directories. Assuming OCFDIR is OCF directory, and SRCDIR and INCDIR are respectively your source and include directories, use following commands to deploy OCF into your project:

make -C $OCFDIF src O=$SRCDIR
make -C $OCFDIF inc O=$INCDIR

By default this will not copy OCF source files but create symbolic links to them, to avoid source duplication and allow for easy OCF code modification. If you prefer to copy OCF source files (e.g. you don't want to distribute whole OCF repository as your submodule) you can use following commands:

make -C $OCFDIF src O=$SRCDIR CMD=cp
make -C $OCFDIF inc O=$INCDIR CMD=cp

Unit Tests

OCF is shipped with dedicated unit test framework based on Cmocka.
To run unit test you need to install following packages:

  • Cmake (>= 3.8.1)
  • Cmocka (>= 1.1.1)
  • ctags (>= 5.8)

To run unit tests use following command:

./tests/ut-framework/run_unit_tests.py

Contributing

Feel like making OCF better? Don't hesitate to submit a pull request!
In case of any questions feel free to contact maintainer.