-static int recycle_connect(vfs_handle_struct *handle, const char *service, const char *user)
-{
- DEBUG(10,("recycle_connect() connect to service[%s] as user[%s].\n",
- service,user));
-
- return SMB_VFS_NEXT_CONNECT(handle, service, user);
-}
-
-static void recycle_disconnect(vfs_handle_struct *handle)
-{
- DEBUG(10,("recycle_disconnect() connect to service[%s].\n",
- lp_servicename(SNUM(handle->conn))));
-
- SMB_VFS_NEXT_DISCONNECT(handle);
-}
-
-static const char *recycle_repository(vfs_handle_struct *handle)
-{
- const char *tmp_str = NULL;
-
-
- tmp_str = lp_parm_const_string(SNUM(handle->conn), "recycle", "repository",".recycle");
-
- DEBUG(10, ("recycle: repository = %s\n", tmp_str));
-
- return tmp_str;
-}
-
-static bool recycle_keep_dir_tree(vfs_handle_struct *handle)
-{
- bool ret;
-
- ret = lp_parm_bool(SNUM(handle->conn), "recycle", "keeptree", False);
-
- DEBUG(10, ("recycle_bin: keeptree = %s\n", ret?"True":"False"));
-
- return ret;
-}
-
-static bool recycle_versions(vfs_handle_struct *handle)
-{
- bool ret;
-
- ret = lp_parm_bool(SNUM(handle->conn), "recycle", "versions", False);
-
- DEBUG(10, ("recycle: versions = %s\n", ret?"True":"False"));
-
- return ret;
-}
-
-static bool recycle_touch(vfs_handle_struct *handle)
-{
- bool ret;
-
- ret = lp_parm_bool(SNUM(handle->conn), "recycle", "touch", False);
-
- DEBUG(10, ("recycle: touch = %s\n", ret?"True":"False"));
-
- return ret;
-}
-
-static bool recycle_touch_mtime(vfs_handle_struct *handle)
-{
- bool ret;
-
- ret = lp_parm_bool(SNUM(handle->conn), "recycle", "touch_mtime", False);
-
- DEBUG(10, ("recycle: touch_mtime = %s\n", ret?"True":"False"));
-
- return ret;
-}
-
-static const char **recycle_exclude(vfs_handle_struct *handle)
-{
- const char **tmp_lp;
-
- tmp_lp = lp_parm_string_list(SNUM(handle->conn), "recycle", "exclude", NULL);
-
- DEBUG(10, ("recycle: exclude = %s ...\n", tmp_lp?*tmp_lp:""));
-
- return tmp_lp;
-}
-
-static const char **recycle_exclude_dir(vfs_handle_struct *handle)
-{
- const char **tmp_lp;
-
- tmp_lp = lp_parm_string_list(SNUM(handle->conn), "recycle", "exclude_dir", NULL);
-
- DEBUG(10, ("recycle: exclude_dir = %s ...\n", tmp_lp?*tmp_lp:""));
-
- return tmp_lp;
-}
-
-static const char **recycle_noversions(vfs_handle_struct *handle)
-{
- const char **tmp_lp;
-
- tmp_lp = lp_parm_string_list(SNUM(handle->conn), "recycle", "noversions", NULL);
-
- DEBUG(10, ("recycle: noversions = %s\n", tmp_lp?*tmp_lp:""));
-
- return tmp_lp;
-}
-
-static SMB_OFF_T recycle_maxsize(vfs_handle_struct *handle)
-{
- SMB_OFF_T maxsize;
-
- maxsize = conv_str_size(lp_parm_const_string(SNUM(handle->conn),
- "recycle", "maxsize", NULL));
-
- DEBUG(10, ("recycle: maxsize = %lu\n", (long unsigned int)maxsize));
-
- return maxsize;
-}
-
-static SMB_OFF_T recycle_minsize(vfs_handle_struct *handle)