numam-spdk/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 rte_virtio: hide some internal functions 2017-11-28 18:17:06 -05:00
blob blob: add data_ro and md_ro flags to spdk_blob 2017-11-29 17:25:34 -05:00
blobfs blobfs: Add conf parse for blobfs. 2017-11-15 18:03:00 -05:00
conf
copy event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
cunit
env_dpdk pci/dpdk: use rte_eal_dev_attach/detach for DPDK 17.11-rc3 2017-11-15 17:52:05 -05:00
event bdev: Remove poller abstraction 2017-11-28 15:29:35 -05:00
ioat copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
iscsi event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
json
jsonrpc VPP: change sockets from FIONBIO to O_NONBLOCK type 2017-11-29 11:23:32 -05:00
log log: Create a separate implementation file for common log flag operations. 2017-11-14 15:53:37 -05:00
lvol lvol: fix lvol store load on lvols load fail 2017-11-15 18:05:09 -05:00
nbd VPP: change sockets from FIONBIO to O_NONBLOCK type 2017-11-29 11:23:32 -05:00
net VPP: change sockets from FIONBIO to O_NONBLOCK type 2017-11-29 11:23:32 -05:00
nvme VPP: change sockets from FIONBIO to O_NONBLOCK type 2017-11-29 11:23:32 -05:00
nvmf VPP: change sockets from FIONBIO to O_NONBLOCK type 2017-11-29 11:23:32 -05:00
rocksdb event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
rpc rpc: set g_jsonrpc_server to NULL on close 2017-11-28 16:20:47 -05:00
scsi event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
trace trace: Move trace flags to separate implementation file 2017-11-15 18:57:12 -05:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util channel: Add spdk_for_each_thread 2017-11-28 15:29:35 -05:00
vhost vhost: free destroy context structure when stopping device 2017-11-29 13:03:07 -05:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00