-/*
+/*
* Store default Quotas in a specified quota record
*
* Copyright (C) Stefan (metze) Metzmacher 2003
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* it can be overwrittem when you load the module in
* the 'vfs objects' parameter like this:
* vfs objects = default_quota:myprefix)
- *
+ *
* "<myprefix>:uid" parameter takes a integer argument,
* it specifies the uid of the quota record, that will be taken for
* storing the default USER-quotas.
* it specifies if we should report the stored default quota values,
* also for the user record, or if you should just report NO_LIMIT
* to the windows client for the user specified by the "<prefix>:uid" parameter.
- *
+ *
* - default value: yes (that means to report NO_LIMIT)
* - e.g.: default_quota:uid nolimit = no
- *
+ *
* "<myprefix>:gid" parameter takes a integer argument,
* it's just like "<prefix>:uid" but for group quotas.
* (NOTE: group quotas are not supported from the windows explorer!)
* "<myprefix>:gid nolimit" parameter takes a boolean argument,
* it's just like "<prefix>:uid nolimit" but for group quotas.
* (NOTE: group quotas are not supported from the windows explorer!)
- *
+ *
* - default value: yes (that means to report NO_LIMIT)
* - e.g.: default_quota:uid nolimit = no
*
-/*
+/*
* Auditing VFS module for samba. Log selected file operations to syslog
* facility.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
{
NTSTATUS ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
"extd_audit", &vfs_extd_audit_fns);
-
+
if (!NT_STATUS_IS_OK(ret))
return ret;
} else {
DEBUG(10, ("vfs_extd_audit: Debug class number of 'extd_audit': %d\n", vfs_extd_audit_debug_level));
}
-
+
return ret;
}
}
endmntent(f);
return;
-
+
nomem:
if (f) endmntent(f);
if (data->mount_entries[i].device == dev) {
return &data->mount_entries[i];
}
- }
+ }
return NULL;
}
-/*
+/*
* implementation of an Shadow Copy module
*
* Copyright (C) Stefan Metzmacher 2003-2004
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
Z:\@GMT-2003.08.05-12.02.00\
e.g.
-
+
Z:\testfile.txt
Z:\@GMT-2003.08.05-12.02.00\testfile.txt
Note: Files must differ to be displayed via Windows Explorer!
- Directories are always displayed...
+ Directories are always displayed...
*/
static int vfs_shadow_copy_debug_level = DBGC_VFS;
SAFE_FREE(dirp->dirs);
SAFE_FREE(dirp);
-
- return 0;
+
+ return 0;
}
static int shadow_copy_get_shadow_copy_data(vfs_handle_struct *handle,
DEBUG(0, ("%s: Couldn't register custom debugging class!\n",
"vfs_shadow_copy_init"));
} else {
- DEBUG(10, ("%s: Debug class number of '%s': %d\n",
+ DEBUG(10, ("%s: Debug class number of '%s': %d\n",
"vfs_shadow_copy_init","shadow_copy",vfs_shadow_copy_debug_level));
}