Changeset 204 for branches/samba-3.2.x/source/modules/vfs_tsmsm.c
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/modules/vfs_tsmsm.c
r133 r204 201 201 } 202 202 203 lerrno = 0;204 205 203 do { 204 lerrno = 0; 205 206 206 ret = dm_get_dmattr(*dmsession_id, dmhandle, dmhandle_len, 207 207 DM_NO_TOKEN, &dmname, buflen, buf, &rlen); … … 280 280 SMB_OFF_T offset, size_t n) 281 281 { 282 bool file_online = tsmsm_aio_force(handle, fsp); 283 284 if(!file_online) 285 return ENOSYS; 282 bool file_offline = tsmsm_aio_force(handle, fsp); 283 284 if (file_offline) { 285 DEBUG(10,("tsmsm_sendfile on offline file - rejecting\n")); 286 errno = ENOSYS; 287 return -1; 288 } 286 289 287 290 return SMB_VFS_NEXT_SENDFILE(handle, tofd, fsp, hdr, offset, n); … … 334 337 if (tsmd->hsmscript == NULL) { 335 338 /* no script enabled */ 336 DEBUG(1, ("tsmsm_set_offline: No tsmsm:hsmscriptconfigured\n"));339 DEBUG(1, ("tsmsm_set_offline: No 'tsmsm:hsm script' configured\n")); 337 340 return 0; 338 341 }
Note:
See TracChangeset
for help on using the changeset viewer.