| %define make %{expand:%%(echo ${MAKE:-make})} |
| %define name fileio_tgt |
| |
| Name: %{name} |
| Version: %{rpm_version} |
| Release: 1 |
| Summary: SCST file IO user-mode backend |
| Group: System/User |
| License: GPLv2 |
| URL: http://scst.sourceforge.net |
| Source: %{name}-%{rpm_version}.tar.bz2 |
| BuildRoot: %{_tpmpath}/%{name}-%{rpm_version}-%{name}-build |
| |
| %description |
| User space program fileio_tgt uses interface of SCST's scst_user dev |
| handler and allows to see how it works in various modes. Fileio_tgt |
| provides mostly the same functionality as the kernel space SCST's |
| scst_vdisk handler with the only exceptions that it supports O_DIRECT |
| mode and doesn't support BLOCKIO one. O_DIRECT mode is basically the |
| same as BLOCKIO, but also supports files, so for some loads it could be |
| significantly faster, than the regular FILEIO access. All the words |
| about BLOCKIO mode from SCST's README file apply to O_DIRECT mode as |
| well. |
| |
| %prep |
| %setup -q |
| |
| |
| %build |
| %{make} DESTDIR=%{buildroot} |
| |
| |
| %install |
| %{make} install INSTALL_DIR=%{buildroot}/opt/act/bin |
| |
| |
| %clean |
| rm -rf %{buildroot} |
| |
| |
| %pre |
| rm -rf %{buildroot}/opt/act/bin/* |
| |
| |
| %files |
| %defattr(-,root,root,-) |
| %dir /opt/act/bin |
| /opt/act/bin/fileio_tgt |
| |
| |
| %changelog |
| * Mon Apr 20 2020 Jim McCarthy <jim.mccarthy@actifio.com> |
| * - Initial spec file. |