summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_shadow_copy2.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-17vfs: Convert shadow_copy2_ntimes to cp_smb_filenameVolker Lendecke1-3/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17vfs: Convert shadow_copy2_unlink to cp_smb_filenameVolker Lendecke1-3/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2012-10-11smbd: Add mem_ctx to {f,}get_nt_acl VFS callAndrew Bartlett1-3/+8
This makes it clear which context the returned SD is allocated on, as a number of callers do not want it on talloc_tos(). As the ACL transformation allocates and then no longer needs a great deal of memory, a talloc_stackframe() call is used to contain the memory that is not returned further up the stack. Andrew Bartlett
2012-08-28s3-vfs: Try to be consistent about localtime vs GMT handling in vfs_shadow_copy2Andrew Bartlett1-12/+19
With the ability to handle times a abolute time_t values since 1970 this becomes more important to get absolutly correct. Andrew Bartlett
2012-08-28s3-vfs_shadow_copy2: Also accept a sscanf resultAndrew Bartlett1-18/+46
2012-08-08vfs_time_audit: Remove unnecessary return; statementBjörn Jacke1-2/+0
2012-06-06s3:modules: we don't need smbd/proto.h in vfs_shadow_copy2.cStefan Metzmacher1-1/+0
metze
2012-05-08s3:vfs/shadow_copy2 fix some compiler warningsChristian Ambach1-4/+3
about unused variables Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Tue May 8 11:15:07 CEST 2012 on sn-devel-104
2012-05-08s3:vfs/shadow_copy2 make descending sort order the defaultChristian Ambach1-1/+1
otherwise Explorer won't work correctly when trying to restore a folder
2012-04-05s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configureAndrew Bartlett1-28/+0
If this is ever needed again, it would be more appropriate as an options argument to removexattr. Andrew Bartlett
2012-04-05s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configureAndrew Bartlett1-32/+0
If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
2012-04-05s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configureAndrew Bartlett1-31/+0
2012-04-05build: Remove SMB_STRUCT_DIR defineAndrew Bartlett1-3/+3
2012-04-05build: Remove SMB_STRUCT_DIRENT defineAndrew Bartlett1-1/+1
2011-12-12vfs: Make function pointer names consistent. They all end in _fnRichard Sharpe1-30/+30
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Dec 12 04:58:40 CET 2011 on sn-devel-104
2011-08-31tdb2: fix build with --enable-tdb2Rusty Russell1-3/+2
tdb2 doesn't expost tdb_jenkins_hash; go straight to the source in ccan/hash. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20s3: Fix the build, NAME_MAX not universally availableVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 20 13:45:21 CEST 2011 on sn-devel-104
2011-06-20s3: Replace shadow_copy2 with a new implementationVolker Lendecke1-598/+1205
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 20 11:17:47 CEST 2011 on sn-devel-104
2011-05-31struct make "struct shadow_copy_data" its own talloc contextVolker Lendecke1-1/+1
2011-05-31s3: Remove SHADOW_COPY_DATA typedefVolker Lendecke1-2/+2
2011-05-06More const fixes. Remove CONST_DISCARD.Jeremy Allison1-2/+2
2011-04-21s3-vfs: rename open function to open_fn.Günther Deschner1-1/+1
This should finally fix the AIX build and allow to remove AIX specific ifdefs. Guenther Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 21 02:01:20 CEST 2011 on sn-devel-104
2011-03-30s3: only include ntioctl.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-vfs: include smbd/smbd.h in vfs modules.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-14s3: Fix the talloc hierarchy in shadow_copy2_connectpathVolker Lendecke1-2/+9
We have to return on talloc_tos() because we don't have a mem_ctx given to us. So we have to create a separate temporary talloc context. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 19:21:11 CET 2011 on sn-devel-104
2011-03-14s3: This module needs rewriting...Volker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 17:47:32 CET 2011 on sn-devel-104
2011-01-21s3:vfs:shadow_copy2: fix indentation in _SHADOW2_NEXT_SMB_FNAMEMichael Adam1-2/+2
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jan 21 10:57:45 CET 2011 on sn-devel-104
2011-01-21s3:vfs:shadow_copy2: Fix shadow-copy module for drag&drop from a snapshotVolker Lendecke1-0/+4
We have to return NT_STATUS_NOT_SAME_DEVICE to trigger the Windows client to start a copy itself. Unbeknownst to us via the ACLs snapshots are read-only, so a rename would trigger a EACCES. Unfortunately the MacOS/X finder does not do the smart NOT_SAME_DEVICE fallback that Windows does.
2010-12-19s3: Did I say this module is from hell?Volker Lendecke1-1/+1
2010-12-01s3: Attempt to fix the shadow_copy2 moduleVolker Lendecke1-2/+2
This module is from hell. Please make 100% sure that you did test it properly when touching it! This module has probably given me more grey hair than any other piece of Samba, so PLEASE PLEASE PLEASE be careful here!!!
2010-11-20Move the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_defaultJeremy Allison1-3/+3
module, change the signature of VFS_REALPATH to always return a malloc'ed string. Needed to make some privileges work I plan on doing shortly easier to code. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Nov 20 02:15:50 CET 2010 on sn-devel-104
2010-08-04small optimizations for shadowcopy2 moduleChristian Ambach1-2/+2
- remove a compiler warning - replace strlen usage Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-08-04fix snapshot content display with hide unreadableChristian Ambach1-1/+8
With the hide unreadable option set, snapshots are be displayed as empty with shadow_copy2 and a NFSv4 ACL module. To prevent multiple conversions of the paths when the acl call does a VFS_STAT (as the nfs4acl code does), a check was added to convert_shadow2_name() so it will not touch paths any more that look like they have already been converted. Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-08-04s3: Fix shadow copies after the change for in-path @GMT-Volker Lendecke1-3/+2
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-08-04s3: Fix in-path shadowcopy2 moduleVolker Lendecke1-0/+1
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-02-14s3-vfs: use TYPESAFE_QSORT() in s3 VFS modulesAndrew Tridgell1-3/+3
2010-01-21Add localtime parameter to shadow_copy2.Ed Plese1-0/+22
2010-01-21Add format parameter to shadow_copy2.Ed Plese1-11/+73
2010-01-21Add sort parameter to shadow_copy2.Ed Plese1-0/+62
2009-10-13s3: Fix vfs_shadow_copy2 to allow in-path @GMT-xxxAndrew Tridgell1-21/+126
2009-07-29shadow_copy2: The system getrealfilename() can't deal with a 0-length fnameVolker Lendecke1-0/+3
This fixes viewing the content of snapshots in the share root directory. We have to treat the filename that *just* consists of "@GMT-YYYY.MM.DD-HH.MM.SS" like the share root, which is the current working directory.
2009-07-24Make the smbd VFS typesafeVolker Lendecke1-54/+33
2009-07-20s3: Finish plumbing the fsp->fsp_name smb_fname conversion through the modules.Tim Prouty1-2/+2
2009-07-19Fix a few type errors in VFS modulesVolker Lendecke1-1/+2
2009-07-06s3: Plumb smb_filename through SMB_VFS_NTIMESTim Prouty1-2/+12
2009-07-06s3: Plumb smb_filename through SMB_VFS_UNLINKTim Prouty1-2/+12
2009-07-06s3: Plumb smb_filename through SMB_VFS_RENAMETim Prouty1-2/+14
2009-06-24s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTATTim Prouty1-4/+8
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-17s3: Change SMB_VFS_OPEN to take an smb_filename structTim Prouty1-2/+29
This was a little messy because of all of the vfs modules I had to touch. Most of them were pretty straight forward, but the streams modules required a little attention to handle smb_filename. Since the use of smb_filename enables the vfs modules to access the raw, over-the-wire stream, a little bit of the handling that was being done by split_ntfs_stream_name has now been shifted into the individual stream modules. It may be a little more code, but overall it gives more flexibility to the streams modules, while also allowing correct stream handling.