s4:torture: Do not check if the alloc_size is 0 on empty files
authorAndreas Schneider <asn@samba.org>
Tue, 11 Dec 2018 09:34:21 +0000 (10:34 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 12 Dec 2018 08:13:23 +0000 (09:13 +0100)
commit55b2f247f9ba56516efba52481418966a777343e
tree083fbab42bb8abaefec9d3ec82011fb006e71833
parent0a001515bfc974d2ea109e8a13f9acf8fe86543a
s4:torture: Do not check if the alloc_size is 0 on empty files

The allocation size might not be zero. This depends on the file system
behavior and also on the size of the extended attributes stored on the
file. E.g. If a large user.DOSATTRIB xattr is stored on XFS/ext4 then 8
blocks are used and we will round up to several megabytes.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/smb2/durable_open.c
source4/torture/smb2/durable_v2_open.c
source4/torture/smb2/lease.c
source4/torture/smb2/replay.c
source4/torture/smb2/session.c