diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2021-06-11 03:57:05 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2021-06-11 03:57:05 +0000 |
commit | bee57c535c29a01cadfaa660d8c0182288960c33 (patch) | |
tree | 2a9355f53953526dc12f101d6bf6b26962f5dbbe /lib/sg_pt_solaris.c | |
parent | 30363466e3580cae5f428c9bf35caa934cef469b (diff) | |
download | sg3_utils-bee57c535c29a01cadfaa660d8c0182288960c33.tar.gz |
sg_read_buffer: fix --length= problem; pt: new configure option --enable-pt_dummy builds the library with sg_pt_dummy.c instead of OS specific code
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@904 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_solaris.c')
-rw-r--r-- | lib/sg_pt_solaris.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/sg_pt_solaris.c b/lib/sg_pt_solaris.c index ec346ab4..2e5b430d 100644 --- a/lib/sg_pt_solaris.c +++ b/lib/sg_pt_solaris.c @@ -529,3 +529,22 @@ do_nvm_pt(struct sg_pt_base * vp, int submq, int timeout_secs, int verbose) if (verbose) { } return SCSI_PT_DO_NOT_SUPPORTED; } + +int +check_pt_file_handle(int device_fd, const char * device_name, int vb) +{ + if (device_fd) {} + if (device_name) {} + if (vb) {} + return 0; +} + +/* If a NVMe block device (which includes the NSID) handle is associated + * with 'vp', then its NSID is returned (values range from 0x1 to + * 0xffffffe). Otherwise 0 is returned. */ +uint32_t +get_pt_nvme_nsid(const struct sg_pt_base * vp) +{ + if (vp) { } + return 0; +} |