mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
This commit is contained in:
parent
0a001515bf
commit
55b2f247f9
@ -60,7 +60,6 @@
|
||||
#define CHECK_CREATED(__io, __created, __attribute) \
|
||||
do { \
|
||||
CHECK_VAL((__io)->out.create_action, NTCREATEX_ACTION_ ## __created); \
|
||||
CHECK_VAL((__io)->out.alloc_size, 0); \
|
||||
CHECK_VAL((__io)->out.size, 0); \
|
||||
CHECK_VAL((__io)->out.file_attr, (__attribute)); \
|
||||
CHECK_VAL((__io)->out.reserved2, 0); \
|
||||
|
@ -45,7 +45,6 @@
|
||||
#define CHECK_CREATED(__io, __created, __attribute) \
|
||||
do { \
|
||||
CHECK_VAL((__io)->out.create_action, NTCREATEX_ACTION_ ## __created); \
|
||||
CHECK_VAL((__io)->out.alloc_size, 0); \
|
||||
CHECK_VAL((__io)->out.size, 0); \
|
||||
CHECK_VAL((__io)->out.file_attr, (__attribute)); \
|
||||
CHECK_VAL((__io)->out.reserved2, 0); \
|
||||
|
@ -49,7 +49,6 @@
|
||||
#define CHECK_CREATED(__io, __created, __attribute) \
|
||||
do { \
|
||||
CHECK_VAL((__io)->out.create_action, NTCREATEX_ACTION_ ## __created); \
|
||||
CHECK_VAL((__io)->out.alloc_size, 0); \
|
||||
CHECK_VAL((__io)->out.size, 0); \
|
||||
CHECK_VAL((__io)->out.file_attr, (__attribute)); \
|
||||
CHECK_VAL((__io)->out.reserved2, 0); \
|
||||
|
@ -52,7 +52,6 @@
|
||||
#define CHECK_CREATED(__io, __created, __attribute) \
|
||||
do { \
|
||||
CHECK_VAL((__io)->out.create_action, NTCREATEX_ACTION_ ## __created); \
|
||||
CHECK_VAL((__io)->out.alloc_size, 0); \
|
||||
CHECK_VAL((__io)->out.size, 0); \
|
||||
CHECK_VAL((__io)->out.file_attr, (__attribute)); \
|
||||
CHECK_VAL((__io)->out.reserved2, 0); \
|
||||
|
@ -38,8 +38,6 @@
|
||||
torture_assert_int_equal(tctx, (__io)->out.create_action, \
|
||||
NTCREATEX_ACTION_ ## __created, \
|
||||
"out.create_action incorrect"); \
|
||||
torture_assert_int_equal(tctx, (__io)->out.alloc_size, 0, \
|
||||
"out.alloc_size incorrect"); \
|
||||
torture_assert_int_equal(tctx, (__io)->out.size, 0, \
|
||||
"out.size incorrect"); \
|
||||
torture_assert_int_equal(tctx, (__io)->out.file_attr, \
|
||||
|
Loading…
Reference in New Issue
Block a user