aboutsummaryrefslogtreecommitdiff
path: root/sysutils/fusefs-sshfs
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2007-07-05 04:24:27 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2007-07-05 04:24:27 +0000
commit6474ca625afd9cd36d6303c6e3b1cfd52c66f4b8 (patch)
treec046d4f1bd171d3def01d902761f81965baf25c7 /sysutils/fusefs-sshfs
parent41610e81c76585b5f1347826ebef9c13c9f9c6c7 (diff)
downloadports-6474ca625afd9cd36d6303c6e3b1cfd52c66f4b8.tar.gz
ports-6474ca625afd9cd36d6303c6e3b1cfd52c66f4b8.zip
Notes
Diffstat (limited to 'sysutils/fusefs-sshfs')
-rw-r--r--sysutils/fusefs-sshfs/Makefile2
-rw-r--r--sysutils/fusefs-sshfs/distinfo6
-rw-r--r--sysutils/fusefs-sshfs/files/patch-sshfs.c64
3 files changed, 4 insertions, 68 deletions
diff --git a/sysutils/fusefs-sshfs/Makefile b/sysutils/fusefs-sshfs/Makefile
index 352c45ec7300..cb690e756287 100644
--- a/sysutils/fusefs-sshfs/Makefile
+++ b/sysutils/fusefs-sshfs/Makefile
@@ -5,7 +5,7 @@
#
PORTNAME= sshfs
-PORTVERSION= 1.7
+PORTVERSION= 1.8
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fuse
diff --git a/sysutils/fusefs-sshfs/distinfo b/sysutils/fusefs-sshfs/distinfo
index f9555beedacd..c6134907ed8c 100644
--- a/sysutils/fusefs-sshfs/distinfo
+++ b/sysutils/fusefs-sshfs/distinfo
@@ -1,3 +1,3 @@
-MD5 (sshfs-fuse-1.7.tar.gz) = e91a2fed1da952a375798408dc6e41a0
-SHA256 (sshfs-fuse-1.7.tar.gz) = 9f39b71d5b247535ac0d44f559125c4e904b0a0303ad5a976161fb3d91807fe1
-SIZE (sshfs-fuse-1.7.tar.gz) = 101424
+MD5 (sshfs-fuse-1.8.tar.gz) = 3c575cf89a6d3d8ab6063c2f60bd5b25
+SHA256 (sshfs-fuse-1.8.tar.gz) = 057626d78e5ade840568ab0e171a1d1ae87348ab51bf9e35d1cdc074fc4e2edb
+SIZE (sshfs-fuse-1.8.tar.gz) = 105570
diff --git a/sysutils/fusefs-sshfs/files/patch-sshfs.c b/sysutils/fusefs-sshfs/files/patch-sshfs.c
deleted file mode 100644
index 825af6035b37..000000000000
--- a/sysutils/fusefs-sshfs/files/patch-sshfs.c
+++ /dev/null
@@ -1,64 +0,0 @@
---- sshfs.c.orig Fri Aug 18 10:38:37 2006 +0000
-+++ sshfs.c Fri Sep 29 14:22:54 2006 +0000
-@@ -147,6 +147,7 @@ struct sshfs_file {
- int is_seq;
- int connver;
- int modifver;
-+ int refs;
- };
-
- struct sshfs {
-@@ -1768,6 +1769,7 @@ static int sshfs_open_common(const char
- pthread_cond_init(&sf->write_finished, NULL);
- /* Assume random read after open */
- sf->is_seq = 0;
-+ sf->refs = 1;
- sf->next_pos = 0;
- sf->modifver= sshfs.modifver;
- sf->connver = sshfs.connver;
-@@ -1851,6 +1853,19 @@ static int sshfs_fsync(const char *path,
- return sshfs_flush(path, fi);
- }
-
-+static void sshfs_file_put(struct sshfs_file *sf)
-+{
-+ sf->refs--;
-+ if (!sf->refs)
-+ g_free(sf);
-+}
-+
-+static struct sshfs_file *sshfs_file_get(struct sshfs_file *sf)
-+{
-+ sf->refs++;
-+ return sf;
-+}
-+
- static int sshfs_release(const char *path, struct fuse_file_info *fi)
- {
- struct sshfs_file *sf = get_sshfs_file(fi);
-@@ -1861,7 +1876,7 @@ static int sshfs_release(const char *pat
- }
- buf_free(handle);
- chunk_put_locked(sf->readahead);
-- g_free(sf);
-+ sshfs_file_put(sf);
- return 0;
- }
-
-@@ -2084,6 +2099,7 @@ static void sshfs_write_end(struct reque
- }
- list_del(&req->list);
- pthread_cond_broadcast(&sf->write_finished);
-+ sshfs_file_put(sf);
- }
-
- static int sshfs_write(const char *path, const char *wbuf, size_t size,
-@@ -2110,7 +2126,7 @@ static int sshfs_write(const char *path,
- iov[1].iov_len = size;
- if (!sshfs.sync_write && !sf->write_error)
- err = sftp_request_send(SSH_FXP_WRITE, iov, 2, sshfs_write_begin,
-- sshfs_write_end, 0, sf, NULL);
-+ sshfs_write_end, 0, sshfs_file_get(sf), NULL);
- else
- err = sftp_request_iov(SSH_FXP_WRITE, iov, 2, SSH_FXP_STATUS, NULL);
- buf_free(&buf); \ No newline at end of file