comparison src/smb/smb.c @ 971:7d0062c2e2a4 trunk

[svn] - Implement vfs_fsize() for SMB transport
author ertzing
date Sun, 22 Apr 2007 04:06:00 -0700
parents f1642ee1115c
children 6acf1bda788b
comparison
equal deleted inserted replaced
970:64409f979799 971:7d0062c2e2a4
176 } 176 }
177 177
178 off_t 178 off_t
179 smb_vfs_fsize_impl(VFSFile * file) 179 smb_vfs_fsize_impl(VFSFile * file)
180 { 180 {
181 return -1; 181 SMBFile *handle = (SMBFile *)file->handle;
182
183 return handle->length;
182 } 184 }
183 185
184 VFSConstructor smb_const = { 186 VFSConstructor smb_const = {
185 "smb://", 187 "smb://",
186 smb_vfs_fopen_impl, 188 smb_vfs_fopen_impl,