]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/samba/samba-3.6.99-bug-1192211.patch
Merge remote-tracking branch 'origin/master' into next
[ipfire-2.x.git] / src / patches / samba / samba-3.6.99-bug-1192211.patch
1 From a5b116fe3107a56e1d881906e77d9731b0c6b2c2 Mon Sep 17 00:00:00 2001
2 From: Michael Adam <obnox@samba.org>
3 Date: Sat, 1 Jun 2013 02:14:41 +0200
4 Subject: [PATCH] shadow_copy2: implement disk_free
5
6 Signed-off-by: Michael Adam <obnox@samba.org>
7 ---
8 source3/modules/vfs_shadow_copy2.c | 11 +++++++++++
9 1 file changed, 11 insertions(+)
10
11 diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
12 index fedfb53..7fd4dd5 100644
13 --- a/source3/modules/vfs_shadow_copy2.c
14 +++ b/source3/modules/vfs_shadow_copy2.c
15 @@ -944,6 +944,16 @@ static int shadow_copy2_get_shadow_copy2_data(vfs_handle_struct *handle,
16 return 0;
17 }
18
19 +static uint64_t shadow_copy2_disk_free(vfs_handle_struct *handle,
20 + const char *fname, bool small_query,
21 + uint64_t *bsize, uint64_t *dfree,
22 + uint64_t *dsize)
23 +{
24 + SHADOW2_NEXT(DISK_FREE,
25 + (handle, name, small_query, bsize, dfree, dsize),
26 + uint64_t, 0);
27 +}
28 +
29 static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
30 .opendir = shadow_copy2_opendir,
31 .mkdir = shadow_copy2_mkdir,
32 @@ -975,6 +985,7 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
33 .get_nt_acl = shadow_copy2_get_nt_acl,
34 .chmod_acl = shadow_copy2_chmod_acl,
35 .get_shadow_copy_data = shadow_copy2_get_shadow_copy2_data,
36 + .disk_free = shadow_copy2_disk_free,
37 };
38
39 NTSTATUS vfs_shadow_copy2_init(void);
40 --
41 2.1.0
42