summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_gpfs.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-12s3: Split a line with 1 statementsVolker Lendecke1-1/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Jan 12 13:10:19 CET 2012 on sn-devel-104
2011-12-15s3:vfs fix up vfs_gpfs after function pointer renamesChristian Ambach1-25/+25
In 422494a8e630e2ca89386344eaa5346388698a32, vfs_gpfs.c was forgotten Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu Dec 15 21:08:02 CET 2011 on sn-devel-104
2011-11-24s3:vfs:gpfs fix some compiler warningsChristian Ambach1-3/+3
2011-11-24s3:vfs:gpfs convert syncio parameterChristian Ambach1-2/+11
convert syncio parameter to be stored in the VFS handle data this removes the need to go through lp_parm_bool() on each open
2011-05-16gpfs.so: Add gpfs:syncio optionGregor Beck1-0/+13
This enables optimizations for shared file access on gpfs
2011-05-06More const fixes. Remove CONST_DISCARD.Jeremy Allison1-5/+5
2011-05-04vfs_gpfs: Block sendfile for offline filesVolker Lendecke1-0/+12
2011-05-04vfs_gpfs: Store the winattrs in st.vfs_privateVolker Lendecke1-5/+12
This avoids a considerable amount of gpfs_winattr calls
2011-04-26s3:vfs use gpfs_lib_initChristian Ambach1-0/+3
With newer GPFS releases, libgpfs contains a function gpfs_lib_init(). It marks the pseudo-device the lib uses as interface to the GPFS kernel module to not be to destroyed after each call to GPFS. This saves us some microseconds creating and removing the device each time we do a call to libgpfs. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Apr 26 20:52:36 CEST 2011 on sn-devel-104
2011-04-18s3: Fix the build of vfs_gpfs.cVolker Lendecke1-0/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Apr 18 14:40:07 CEST 2011 on sn-devel-104
2011-04-05s3/vfs_gpfs: s/syncops/gpfsBjörn Jacke1-1/+1
as pointed out by Metze in bug #8031 Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Apr 5 18:08:42 CEST 2011 on sn-devel-104
2011-03-30s3-vfs: include smbd/smbd.h in vfs modules.Günther Deschner1-0/+1
Guenther
2011-03-02s3: Pass the aio_force operation through vfs_gpfsVolker Lendecke1-0/+7
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 2 19:24:27 CET 2011 on sn-devel-104
2011-03-02s3: Ask GPFS for the IS_OFFLINE operationVolker Lendecke1-0/+31
2011-03-02s3: Announce HSM in the gpfs moduleVolker Lendecke1-0/+23
2011-03-02s3: GPFS can't deal with mangled namesVolker Lendecke1-0/+7
In getrealfilename, avoid calling the GPFS function
2011-02-25s3: Fix a 64-bit warning in vfs_gpfs.cVolker Lendecke1-1/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Feb 25 14:56:51 CET 2011 on sn-devel-104
2011-02-23s3: Improve an error msg in vfs_gpfsVolker Lendecke1-1/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Feb 23 14:12:39 CET 2011 on sn-devel-104
2011-01-21s3:vfs:gpfs: fix logic when gpfs:winattr is false (the default!)Rusty Russell1-1/+11
On my autocluster setup, it's not set. Maybe it should be? Otherwise smbclient and some Windows client programs will get errors like: # smbclient //localhost/data -Uadministrator%XXX Domain=[VSOFS1] OS=[Unix] Server=[Samba 3.4.2-ctdb-10] smb: \> put /etc/resolv.conf resolv.conf NT_STATUS_ACCESS_DENIED closing remote file \resolv.conf smb: \> Caused by attempting to update the time on close. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Michael Adam <obnox@samba.org>
2010-12-17s3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, tooBjörn Jacke1-2/+8
2010-10-27s3: Make gpfs winattrs work againVolker Lendecke1-7/+31
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 27 15:32:00 UTC 2010 on sn-devel-104
2010-10-13s3:gpfs: Add support for the gpfs_ftruncate callChristian Ambach1-0/+13
ported from the v3-4-ctdb branch to master This used to be commit 1f138cc9f4a Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 13 13:34:25 UTC 2010 on sn-devel-104
2010-10-13s3:vfs:gpfs convert sharemodes/leases parameterChristian Ambach1-8/+64
convert gpfs:sharemodes and gpfs:leases parameters from a global setting to a per share setting
2010-05-18s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".Günther Deschner1-4/+4
Guenther
2009-10-06s3: Add access_mask to the flock VFS callAbhidnya P Chirmule1-3/+3
2009-09-24s3: Forgot to check in one build failure for vfs_gpfs.cVolker Lendecke1-1/+1
2009-09-24s3: Remove an unused variableVolker Lendecke1-1/+0
2009-09-24s3: Make the vfs_gpfs compile at leastVolker Lendecke1-19/+23
Not sure whether it works in this state :-)
2009-09-17To set file create/birth time in GPFS. Signed-off-by: Abhidnya Chirmule ↵Abhidnya Chirmule1-0/+42
<achirmul@in.ibm.com>
2009-08-19Make refusal of SEC_DESC_DACL_PROTECTED configurableVolker Lendecke1-1/+3
This adds a parameter "gpfs:refuse_dacl_protected" that defaults to false. GPFS has no place to store the SEC_DESC_DACL_PROTECTED ACL bit. With this parameter we give customers an option to either ignore this bit or refuse setting an ACL with it.
2009-07-24Make the smbd VFS typesafeVolker Lendecke1-84/+21
2009-07-20s3: Finish plumbing the fsp->fsp_name smb_fname conversion through the modules.Tim Prouty1-10/+23
2009-07-14reject ACLs with DESC_DACL_PROTECTED on GPFSChristian Ambach1-0/+5
as GPFS does not support the ACE4_FLAG_NO_PROPAGATE NFSv4 flag (which would be the mapping for the DESC_DACL_PROTECTED flag), the status of this flag is currently silently ignored by Samba. That means that if you deselect the "Allow inheritable permissions..." checkbox in Windows' ACL dialog and then apply the ACL, the flag will be back immediately. To make sure that automatic migration with e.g. robocopy does not lead to ACLs silently (and unintentionally) changed, this patch adds an explicit check for this flag and if set, it will return NT_STATUS_NOT_SUPPORTED so errors are shown up on the Windows side and the Administrator is aware of the ACLs not being settable like intended Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2009-06-24s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTATTim Prouty1-10/+26
This patch introduces two new temporary helper functions vfs_stat_smb_fname and vfs_lstat_smb_fname. They basically allowed me to call the new smb_filename version of stat, while avoiding plumbing it through callers that are still too inconvenient. As the conversion moves along, I will be able to remove callers of this, with the goal being to remove all callers. There was also a bug in create_synthetic_smb_fname_split (also a temporary utility function) that caused it to incorrectly handle filenames with ':'s in them when in posix mode. This is now fixed.
2009-06-02Support getting gpfs birthtimeVolker Lendecke1-0/+68
2009-06-02Store winattrs in GPFSMathias Dietz1-0/+99
1. Store win attributes in gpfs instead of posix bits. 2. use of path based winattr calls of gpfs. Signed-off-by: Mathias Dietz <mdietz@de.ibm.com>
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke1-2/+2
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.
2009-05-20Use SMB_VFS_NEXT_CLOSE. This VFS stuff is really opaque to me...Volker Lendecke1-5/+1
Thanks Michael to provide some transparency :-)
2009-05-20Fix bug disclosed by lock8 torture testVolker Lendecke1-0/+17
We have to drop the gpfs level share modes, regardless of whether we put the file into the pending close queue.
2009-04-06Make some functions static to vfs_gpfs.cVolker Lendecke1-14/+14
2009-04-06Fix two c++ warnings in vfs_gpfs.cVolker Lendecke1-2/+2
2009-03-04Make use of gpfs_get_real_filename optionalVolker Lendecke1-0/+5
2008-12-10Make use of smbd_gpfs_get_realfilename_path in unix_convertVolker Lendecke1-0/+61
(cherry picked from commit b37684ffcec4ba0beada55d37bcaf4f5e79bcd58) Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10Fix nonempty blank lines in vfs_gpfs.cVolker Lendecke1-55/+50
Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10Revert "Fix some merge omissions for GPFS"Volker Lendecke1-11/+2
This reverts commit a0efc4cffbd84898c454d27eaf946d073dfdad0f. This one should have been done with careful cherry-picks, sorry. Volker
2008-12-10Revert "Fix nonempty blank lines in vfs_gpfs.c"Volker Lendecke1-50/+55
This reverts commit a4b52118d44906882677ed1234428d8025134036.
2008-12-10Revert "Make use of smbd_gpfs_get_realfilename_path in unix_convert"Volker Lendecke1-61/+0
This reverts commit b37684ffcec4ba0beada55d37bcaf4f5e79bcd58.
2008-12-10Revert "Fix the build"Volker Lendecke1-0/+9
This reverts commit c044b09572631cbdd686e5dbbdfbcc731145533a.
2008-12-10Fix the buildVolker Lendecke1-9/+0
Crap, too many trees and no instant, infinitely fast rebuild
2008-12-10Make use of smbd_gpfs_get_realfilename_path in unix_convertVolker Lendecke1-0/+61