summaryrefslogtreecommitdiffstats
path: root/source3/modules/vfs_tsmsm.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:vfs_tsmsm only send notifications when file was offline beforeChristian Ambach2012-08-171-2/+6
| | | | | Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Fri Aug 17 20:05:30 CEST 2012 on sn-devel-104
* s3: Adapt the tsmsm module to the new aio routinesVolker Lendecke2012-08-171-8/+120
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3-vfs: Fix calls of lp_parm_talloc_stringVolker Lendecke2012-08-171-6/+9
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-3/+3
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* s3:vfs_tsmsm: Fix a misspelling of a config parameter in the doc-commentMichael Adam2012-03-221-1/+1
| | | | The module uses "tsmsm:dmapi attribute" instead of "tsmsm:attribute name".
* vfs: Make function pointer names consistent. They all end in _fnRichard Sharpe2011-12-121-7/+7
| | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Dec 12 04:58:40 CET 2011 on sn-devel-104
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-vfs: include smbd/smbd.h in vfs modules.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Pass smb_filename through the set_offline vfs opVolker Lendecke2011-03-021-1/+10
|
* s3: Pass smb_filename through the is_offline vfs opVolker Lendecke2011-03-021-2/+11
|
* s3/vfs_tsmsm: remove unneeded cast to off_tBjörn Jacke2010-11-181-2/+2
| | | | | | | "off_t" is wrong on 32 bit systems anyhow ... Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Nov 18 14:47:59 UTC 2010 on sn-devel-104
* s3/vfs_tsmsm: fix debug output for large filesBjörn Jacke2010-11-181-6/+6
|
* Restructure the connect function code to always callJeremy Allison2009-11-301-3/+11
| | | | | | | | down to NEXT-> before initializing. This allows us to do cleanup (by calling DISCONNECT) if initialization fails. Also fix vfs_acl_xattr which was failing to call the NEXT connect function. Jeremy.
* s3:vfs: Fix the build of vfs_tsmsm after the VFS rewriteVolker Lendecke2009-09-171-3/+3
|
* Second attempt at fix for bug 6529 - Offline files conflict with Vista and ↵Jeremy Allison2009-08-241-2/+3
| | | | | | | | Office 2003. Confirmation from reporter that this fixes the issue in master on ext3/ext4. Back-ports to follow. Jeremy.
* Fix breakage for connect function after API change (connect -> connect_fn)Alexander Bokovoy2009-08-021-1/+1
|
* Make the smbd VFS typesafeVolker Lendecke2009-07-241-28/+11
|
* s3: Finish plumbing the fsp->fsp_name smb_fname conversion through the modules.Tim Prouty2009-07-201-3/+3
|
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-261-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
* s3:vfs_tsmsm: fix potential segfault (freeing uninitialized buffer)Michael Adam2008-12-011-1/+1
| | | | Michael
* fixed an errno handling bug that could lead to an infinite loopAndrew Tridgell2008-08-261-2/+2
| | | | (This used to be commit 5ccdc58ce91ee40ca7171dd040191291aeb7fe02)
* fixed tsmsm_sendfile(). The logic was totally broken.Andrew Tridgell2008-08-261-4/+7
| | | | (This used to be commit 794e48b809036871287df8416a2c669b7e26f216)
* Use size_t for strlen return, not int. Karolin pleaseJeremy Allison2008-04-081-1/+1
| | | | | | pull. Jeremy. (This used to be commit f4a1fdaac0dd6b1b241fac9879416c8ad4403eff)
* Allow broader range of HSM systems in vfs_tsmsmAlexander Bokovoy2008-04-081-5/+31
| | | | | | | | 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. (This used to be commit 1faa97d5cc51277abbc6cb5c37d31c429bea04e4)
* Fix some warnings in the tsmsm moduleVolker Lendecke2008-03-201-4/+6
| | | | | Alexander, please check! (This used to be commit df574fd2ee58f008b93b06f4d78c85cb909cc92c)
* Fix typos and replace statvfs call with fs_capabilities()Alexander Bokovoy2008-01-291-12/+7
| | | | (This used to be commit 863b5ed07aca0978aeaf919d7c51204a95ce03e0)
* Merge DMAPI fixes from TridgeAlexander Bokovoy2008-01-291-3/+22
| | | | | | | 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. (This used to be commit 5efb57d904e25e68b09a567e260292439ad9c095)
* Merge DMAPI fixes from CTDB SambaAlexander Bokovoy2008-01-181-41/+51
| | | | (This used to be commit cf1f90ad7a79dbe5926018790bb50d4e3b36cc7b)
* Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy2008-01-171-6/+12
| | | | | | | | | | | | | 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. (This used to be commit e342ca0d931f9a5c8ec9e472dc9c63f1fe012b3a)
* Rework of VFS is_offline() function to only return boolean offline/online ↵Alexander Bokovoy2008-01-171-9/+7
| | | | | | | | | | | | | | | 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. (This used to be commit 75cc08661473cce62756fa062071bb2bc1fb39ec)
* Fix more VFS API mixup with offline filesAlexander Bokovoy2008-01-171-5/+4
| | | | | I'm sorry for this mess. :-( (This used to be commit e1f5a8f10795831d3c7902d9803c9571c8ac811a)
* Add offline storage support with Tivoli Storage Manager Space ManagerAlexander Bokovoy2008-01-161-0/+338
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit d7752449f38747d59c93869656a5f7c02ebdf084)