Skip to content

Commit

Permalink
[CCS 59] provide APIs for pool/ds creation and reads/writes over DMU (o…
Browse files Browse the repository at this point in the history
…penzfs#11)

* [CCS 59] uZFS API to call dmu from istgt

* [CCS-59] fix in travis and header for pkg-utils

* Adding other header files for make pkg build

* [CCS 59] added few header files to build pkg mod

* [CCS 59]cstyle fixes, adding cstyle check to travis

* Remove unnecessary header files,added TOTAL_TIME env

* Incorporating review comments [CCS 59]

* cstyle fix, removed getenv in uzfs_test

* Merged libuzfs_ioctl into zfs_ioctl

* cstyle fix, removed cstyle from travis

* compilation issue with non-uzfs and userspace build

Once zvol is created using 'zfs create -V' command, it can be opened by doing 'uzfs_open_dataset()', and use uzfs_write_data() and uzfs_read_data() APIs for doing IOs.
  • Loading branch information
vishnuitta authored and Jan Kryl committed Jun 26, 2018
1 parent 2d27bf6 commit 7887dc9
Show file tree
Hide file tree
Showing 20 changed files with 1,435 additions and 1,630 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ install:
fi
script:
- if [ $ZFS_BUILD_TAGS = 0 ]; then
cd cmd/ztest;
travis_wait 60 ./ztest -V;
cd cmd/uzfs_test;
truncate -s 2G /tmp/ztest.1a;
truncate -s 2G /tmp/ztest.2a;
truncate -s 256M /tmp/ztest.log;
travis_wait 5 ./uzfs_test;
else
travis_wait 100 /usr/share/zfs/zfs-tests.sh -v;
fi
Expand Down
2 changes: 1 addition & 1 deletion cmd/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUBDIRS = zfs zpool zdb zhack zinject zstreamdump ztest zpios
SUBDIRS = zfs zpool zdb zhack zinject zstreamdump ztest uzfs_test zpios
SUBDIRS += mount_zfs fsck_zfs zvol_id vdev_id arcstat dbufstat zed
SUBDIRS += arc_summary raidz_test zgenhostid tgt
24 changes: 24 additions & 0 deletions cmd/uzfs_test/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
include $(top_srcdir)/config/Rules.am

# -Wnoformat-truncation to get rid of compiler warning for unchecked
# truncating snprintfs on gcc 7.1.1.
AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN) $(NO_FORMAT_TRUNCATION)
AM_CPPFLAGS += -DDEBUG

DEFAULT_INCLUDES += \
-I$(top_srcdir)/include \
-I$(top_srcdir)/lib/libspl/include

sbin_PROGRAMS = uzfs_test

uzfs_test_SOURCES = \
uzfs_test.c

uzfs_test_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \
$(top_builddir)/lib/libuutil/libuutil.la \
$(top_builddir)/lib/libzpool/libzpool.la \
$(top_builddir)/lib/libzfs/libzfs.la \
$(top_builddir)/lib/libzfs_core/libzfs_core.la

uzfs_test_LDADD += -lm
Loading

0 comments on commit 7887dc9

Please sign in to comment.