Spdk/test/unit/lib
Jim Harris f2223d7d21 blob: add data_ro and md_ro flags to spdk_blob
data_ro means that write, write_zeroes and unmap operations are not
allowed.

md_ro means that resize, set_xattr and remove_xattr are not
allowed.

There is no code yet that can activate this - it is coming in a future
patch.  Two usages are planned though:

1) a user explicitly marks a blob as read-only - this is persisted so that
   future loads of the blob will ensure the blob cannot be modified - neither
   metadata nor data
2) a future feature flag framework (how's that for alliteration) may allow
   a blob to be opened, but not allow metadata modifications, if there are
   feature flags set in the blob's or blobstore's metadata that the
   application does not understand

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I247fd900430c56f7176edfb80dddd5a1a6c8dc87

Reviewed-on: https://review.gerrithub.io/388663
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2017-11-29 17:25:34 -05:00
..
bdev bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
blob blob: add data_ro and md_ro flags to spdk_blob 2017-11-29 17:25:34 -05:00
blobfs blobfs, tree: fix a bug in spdk_tree_insert_buffer 2017-08-15 16:36:41 -04:00
event ut/event: add fatal assert for allocation 2017-10-17 11:34:38 -04:00
ioat test: move IOAT library unit test to test/unit 2017-06-21 18:57:35 -04:00
iscsi iscsi: manage IG's name and mask by linked list 2017-11-21 16:06:30 -05:00
json test/json_util_ut: assert that string is valid 2017-07-12 18:13:23 -04:00
jsonrpc jsonrpc: allow asynchronous request completion 2017-07-12 12:10:31 -04:00
log build: include spdk.app.mk in all app Makefiles 2017-11-15 17:57:07 -05:00
lvol event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
nvme nvme: add a per-process attached_ctrlrs list 2017-11-28 16:21:07 -05:00
nvmf nvmf: Poll groups now automatically register pollers 2017-11-28 15:29:35 -05:00
scsi event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
util channel: Add spdk_for_each_thread 2017-11-28 15:29:35 -05:00
vhost event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00