1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-18 19:17:08 +03:00

10 Commits

Author SHA1 Message Date
Jeremy Allison
f4a1fdaac0 Use size_t for strlen return, not int. Karolin please
pull.
Jeremy.
2008-04-08 07:43:30 -07:00
Alexander Bokovoy
1faa97d5cc Allow broader range of HSM systems in vfs_tsmsm
Allow to specify value of DMAPI attribute returned during offline file checks, 'tsmsm: dmapi value'.
    Previously tsmsm module has supported only IBM TSM SM engine which reports file state by *existence*
    of a certain DMAPI attribute. Other HSM systems report a certain value as DMAPI request's result.
    Port from Tridge's v3-0-ctdb git tree.
2008-04-08 15:17:53 +04:00
Volker Lendecke
df574fd2ee Fix some warnings in the tsmsm module
Alexander, please check!
2008-03-20 16:54:05 +01:00
Alexander Bokovoy
863b5ed07a Fix typos and replace statvfs call with fs_capabilities() 2008-01-29 18:33:22 +03:00
Alexander Bokovoy
5efb57d904 Merge DMAPI fixes from Tridge
Support cases when existing DMAPI session is stale. In this case we are creating another one.
The code differs from 3-0_ctdb branch in that we fail when it is not possible to create more
sessions and pretend that file is offline. This allows to escape endless loop in vfs_tsmsm.c.
2008-01-29 17:43:49 +03:00
Alexander Bokovoy
cf1f90ad7a Merge DMAPI fixes from CTDB Samba 2008-01-18 17:34:21 +03:00
Alexander Bokovoy
e342ca0d93 Remove is_remotestorage() call from VFS. We already have statvfs() there to handle FS capabilities.
As discussed with Volker, it is better to calculate FS capabilities at
connection time. We already do this with help of VFS statvfs() call
which allows to fill-in system-specific attributes including FS
capabilities. So just re-use it if you want to represent additional
capabilities in your modules. The only caution is that you need to
call underlying statvfs() call to actually get system-specific
capabilities (and other fields) added. Then add module-specific ones.
2008-01-17 16:59:29 +03:00
Alexander Bokovoy
75cc086614 Rework of VFS is_offline() function to only return boolean offline/online result for a file.
This makes sense as upper levels are only taking returned result of 0
(no error) into consideration when deciding whether to mark file
offline/online as returned from is_offline.

That means that we simply can move the decision down to VFS module and
clean up upper levels so that they always see only file status. If there
is an error when trying to identify file status, then VFS module could
decide what to return (offline or online) by itself -- after all, it
ought to have system-specific knowledge anyway.
2008-01-17 14:57:35 +03:00
Alexander Bokovoy
e1f5a8f107 Fix more VFS API mixup with offline files
I'm sorry for this mess. :-(
2008-01-17 07:34:33 +03:00
Alexander Bokovoy
d7752449f3 Add offline storage support with Tivoli Storage Manager Space Manager
Signed-off-by: Alexander Bokovoy <ab@samba.org>
2008-01-16 12:26:35 +03:00