Projects
Eulaceura:Mainline:GA
scsi-target-utils
_service:obs_scm:tgt-1.0.79-Adapt-to-glusterfs-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:tgt-1.0.79-Adapt-to-glusterfs-api-7.6.3.patch of Package scsi-target-utils
From ee3456567a639fbff8ce33c5fe166efaed5cee26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> Date: Thu, 4 Jul 2019 18:30:28 +0200 Subject: [PATCH] Adapt to glusterfs-api 7.6.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Glusterfs API has changed. Some functions as can be seen in glusterfs-6.3 got new arguments. Samba dealt with it by using NULL arguments <https://bugzilla.samba.org/show_bug.cgi?id=13330>. This patch mimics it. Not tested. Signed-off-by: Petr Písař <ppisar@redhat.com> --- usr/bs_glfs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr/bs_glfs.c b/usr/bs_glfs.c index 93984b4..9da30e1 100644 --- a/usr/bs_glfs.c +++ b/usr/bs_glfs.c @@ -110,7 +110,7 @@ static void bs_glfs_request(struct scsi_cmd *cmd) break; } - ret = glfs_pread(gfd, tmpbuf, length, offset, lu->bsoflags); + ret = glfs_pread(gfd, tmpbuf, length, offset, lu->bsoflags, NULL); if (ret != length) { set_medium_error(&result, &key, &asc); @@ -147,7 +147,7 @@ static void bs_glfs_request(struct scsi_cmd *cmd) break; } - ret = glfs_pread(gfd, tmpbuf, length, offset, SEEK_SET); + ret = glfs_pread(gfd, tmpbuf, length, offset, SEEK_SET, NULL); if (ret != length) { set_medium_error(&result, &key, &asc); @@ -190,7 +190,7 @@ static void bs_glfs_request(struct scsi_cmd *cmd) key = ILLEGAL_REQUEST; asc = ASC_INVALID_FIELD_IN_CDB; } else { - glfs_fdatasync(gfd); + glfs_fdatasync(gfd, NULL, NULL); } break; case WRITE_VERIFY: @@ -204,7 +204,7 @@ static void bs_glfs_request(struct scsi_cmd *cmd) length = scsi_get_out_length(cmd); write_buf = scsi_get_out_buffer(cmd); write: - ret = glfs_pwrite(gfd, write_buf, length, offset, lu->bsoflags); + ret = glfs_pwrite(gfd, write_buf, length, offset, lu->bsoflags, NULL, NULL); if (ret == length) { struct mode_pg *pg; @@ -222,7 +222,7 @@ write: } if (((cmd->scb[0] != WRITE_6) && (cmd->scb[1] & 0x8)) || !(pg->mode_data[0] & 0x04)) - glfs_fdatasync(gfd); + glfs_fdatasync(gfd, NULL, NULL); } else set_medium_error(&result, &key, &asc); @@ -258,7 +258,7 @@ write: } ret = glfs_pwrite(gfd, tmpbuf, blocksize, - offset, lu->bsoflags); + offset, lu->bsoflags, NULL, NULL); if (ret != blocksize) set_medium_error(&result, &key, &asc); @@ -273,7 +273,7 @@ write: case READ_16: length = scsi_get_in_length(cmd); ret = glfs_pread(gfd, scsi_get_in_buffer(cmd), - length, offset, SEEK_SET); + length, offset, SEEK_SET, NULL); if (ret != length) { eprintf("Error on read %x %x", ret, length); @@ -299,7 +299,7 @@ verify: break; } - ret = glfs_pread(gfd, tmpbuf, length, offset, lu->bsoflags); + ret = glfs_pread(gfd, tmpbuf, length, offset, lu->bsoflags, NULL); if (ret != length) set_medium_error(&result, &key, &asc); -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2