Spdk/test
Shuhei Matsumoto e44731d659 scsi: Remove the claimed flag from LUN
Struct spdk_scsi_lun has the claimed flag as a member.

However the claimed flag is no longer required.

Moreover the claimed flag itself is not used but
spdk_scsi_lun_claim() and _unclaim() functions are used in the
UT code by hard to understand manner. Moving the logic into
spdk_scsi_lun_construct() and _destruct() in the UT code will
be more natural.

Hence remove the claimed flag from LUN and do a little refactoring
in the UT code.

Change-Id: Ica9680b49bbdb5be7c5c4161210fb3a6dcb35229
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/390566
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-12-07 12:30:19 -05:00
..
app bdev_svc: convert to spdk_app_parse_args() 2017-12-01 11:49:23 -05:00
blobfs/rocksdb test/blobfs: add timing for rocksdb benchmarks 2017-09-20 19:33:50 -04:00
config Add readme and script for fedora 26 vm configuration 2017-12-06 16:36:05 -05:00
cpp_headers build: include spdk.app.mk in all app Makefiles 2017-11-15 17:57:07 -05:00
iscsi_tgt scsi: Remove the claimed flag from LUN 2017-12-07 12:30:19 -05:00
lib test/nvme: disable AER in nightly tests 2017-12-01 17:00:54 -05:00
lvol test/lvol: Check if lvol store exists after vhost reboot 2017-12-01 17:08:35 -05:00
nvmf test:update common.sh to get port IP in Ubuntu system 2017-12-06 18:54:49 -05:00
pmem bdev/pmem: require name in construct_pmem_bdev RPC 2017-12-04 18:51:14 -05:00
unit scsi: Remove the claimed flag from LUN 2017-12-07 12:30:19 -05:00
vhost test/vhost/initiator: specify RPC address via -r 2017-12-05 13:16:57 -05:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00