summaryrefslogtreecommitdiff
path: root/daemon/gvfsreadchannel.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-02-04 09:57:27 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-02-04 09:57:27 +0000
commit5efbc37ecea01d84d884a7a07443f596a7edcee3 (patch)
tree501e218c7541d85cca159590d60261195d6df817 /daemon/gvfsreadchannel.c
parent8de5afd3423f99485156a82739e09550fb655f29 (diff)
downloadgvfs-5efbc37ecea01d84d884a7a07443f596a7edcee3.tar.gz
Remove SEEK_CUR from channel protocol. This doesn't work with readahead,
2008-02-04 Alexander Larsson <alexl@redhat.com> * common/gvfsdaemonprotocol.h: * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: * daemon/gvfsreadchannel.c: * daemon/gvfswritechannel.c: Remove SEEK_CUR from channel protocol. This doesn't work with readahead, and can be converted to a SEEK_SET since we know the file position on the client side. svn path=/trunk/; revision=1222
Diffstat (limited to 'daemon/gvfsreadchannel.c')
-rw-r--r--daemon/gvfsreadchannel.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/daemon/gvfsreadchannel.c b/daemon/gvfsreadchannel.c
index 75532661..f653d5d3 100644
--- a/daemon/gvfsreadchannel.c
+++ b/daemon/gvfsreadchannel.c
@@ -159,14 +159,11 @@ read_channel_handle_request (GVfsChannel *channel,
backend_handle,
backend);
break;
- case G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SEEK_CUR:
case G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SEEK_END:
case G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SEEK_SET:
seek_type = G_SEEK_SET;
if (command == G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SEEK_END)
seek_type = G_SEEK_END;
- else if (command == G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SEEK_CUR)
- seek_type = G_SEEK_CUR;
read_channel->read_count = 0;
read_channel->seek_generation++;