summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_streams.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-17 07:17:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:55 -0500
commitf4e5f3a498bce04312898dfe92104fafc1fc2aa2 (patch)
tree0ce2a234541dc79a81379da683f6a00529ac234b /source4/ntvfs/posix/pvfs_streams.c
parent856f663adc2459044f7a20c2974bcb41ed561f77 (diff)
downloadsamba-f4e5f3a498bce04312898dfe92104fafc1fc2aa2.tar.gz
samba-f4e5f3a498bce04312898dfe92104fafc1fc2aa2.tar.bz2
samba-f4e5f3a498bce04312898dfe92104fafc1fc2aa2.zip
r3801: added allocation size rounding. This is needed for ifstest.
(This used to be commit 8a6fa43156667f75e058c7d44b1c15a6cf7067b2)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_streams.c')
-rw-r--r--source4/ntvfs/posix/pvfs_streams.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/ntvfs/posix/pvfs_streams.c b/source4/ntvfs/posix/pvfs_streams.c
index 7edf111fc9..13a4ca1265 100644
--- a/source4/ntvfs/posix/pvfs_streams.c
+++ b/source4/ntvfs/posix/pvfs_streams.c
@@ -99,7 +99,7 @@ NTSTATUS pvfs_stream_info(struct pvfs_state *pvfs, struct pvfs_filename *name, i
for (i=0;i<streams->num_streams;i++) {
struct xattr_DosStream *s = &streams->streams[i];
if (StrCaseCmp(s->name, name->stream_name) == 0) {
- name->dos.alloc_size = s->alloc_size;
+ name->dos.alloc_size = pvfs_round_alloc_size(pvfs, s->alloc_size);
name->st.st_size = s->size;
name->stream_exists = True;
talloc_free(streams);
@@ -141,7 +141,7 @@ static NTSTATUS pvfs_stream_update_size(struct pvfs_state *pvfs, struct pvfs_fil
struct xattr_DosStream *s = &streams->streams[i];
if (StrCaseCmp(s->name, name->stream_name) == 0) {
s->size = size;
- s->alloc_size = size;
+ s->alloc_size = pvfs_round_alloc_size(pvfs, size);
break;
}
}
@@ -160,7 +160,7 @@ static NTSTATUS pvfs_stream_update_size(struct pvfs_state *pvfs, struct pvfs_fil
s->flags = XATTR_STREAM_FLAG_INTERNAL;
s->size = size;
- s->alloc_size = size;
+ s->alloc_size = pvfs_round_alloc_size(pvfs, size);
s->name = name->stream_name;
}