diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-03-02 04:15:11 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-03-02 04:15:11 +0100 |
commit | 2d7a3748b2063c4137ee98ceca85361651ef8ee7 (patch) | |
tree | 2fd585a487b3d4af7056022bbf02c61910fe92c6 /source3/modules/onefs_system.c | |
parent | c7b9757b8ac3ac6baa478655a4d2f77dff8240a8 (diff) | |
parent | 9b0df441e1bd836c433e11582650fa0171791485 (diff) | |
download | samba-2d7a3748b2063c4137ee98ceca85361651ef8ee7.tar.gz samba-2d7a3748b2063c4137ee98ceca85361651ef8ee7.tar.bz2 samba-2d7a3748b2063c4137ee98ceca85361651ef8ee7.zip |
Merge branch 'master' of git://git.samba.org/samba into convenience
Diffstat (limited to 'source3/modules/onefs_system.c')
-rw-r--r-- | source3/modules/onefs_system.c | 54 |
1 files changed, 4 insertions, 50 deletions
diff --git a/source3/modules/onefs_system.c b/source3/modules/onefs_system.c index 43ebed8d44..b8b059bce9 100644 --- a/source3/modules/onefs_system.c +++ b/source3/modules/onefs_system.c @@ -18,10 +18,14 @@ * along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "includes.h" #include "onefs.h" +#include "onefs_config.h" +#include "oplock_onefs.h" #include <ifs/ifs_syscalls.h> #include <isi_acl/isi_acl_util.h> +#include <sys/isi_acl.h> /* * Initialize the sm_lock struct before passing it to ifs_createfile. @@ -656,53 +660,3 @@ out: return ret; } - -/** - * Set the per-process encoding, ignoring errors. - */ -void onefs_sys_config_enc(void) -{ - int ret; - - ret = enc_set_proc(ENC_UTF8); - if (ret) { - DEBUG(0, ("Setting process encoding failed: %s", - strerror(errno))); - } -} - -/** - * Set the per-process .snpashot directory options, ignoring errors. - */ -void onefs_sys_config_snap_opt(struct onefs_vfs_global_config *global_config) -{ - struct ifs_dotsnap_options dso; - int ret; - - dso.per_proc = 1; - dso.sub_accessible = global_config->dot_snap_child_accessible; - dso.sub_visible = global_config->dot_snap_child_visible; - dso.root_accessible = global_config->dot_snap_root_accessible; - dso.root_visible = global_config->dot_snap_root_visible; - - ret = ifs_set_dotsnap_options(&dso); - if (ret) { - DEBUG(0, ("Setting snapshot visibility/accessibility " - "failed: %s", strerror(errno))); - } -} - -/** - * Set the per-process flag saying whether or not to accept ~snapshot - * as an alternative name for .snapshot directories. - */ -void onefs_sys_config_tilde(struct onefs_vfs_global_config *global_config) -{ - int ret; - - ret = ifs_tilde_snapshot(global_config->dot_snap_tilde); - if (ret) { - DEBUG(0, ("Setting snapshot tilde failed: %s", - strerror(errno))); - } -} |