The Samba-Bugzilla – Attachment 13044 Details for
Bug 12680
source4/torture/raw/qfsinfo.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
qfsinfo.c.patch (text/plain), 1.01 KB, created by
Ruga
on 2017-03-11 18:04:30 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Ruga
Created:
2017-03-11 18:04:30 UTC
Size:
1.01 KB
patch
obsolete
>--- ./source4/torture/raw/qfsinfo.c.orig 2017-03-11 19:00:43.000000000 +0100 >+++ ./source4/torture/raw/qfsinfo.c 2017-03-11 19:03:24.000000000 +0100 >@@ -22,7 +22,7 @@ > #include "torture/util.h" > #include "torture/basic/proto.h" > #include "torture/raw/proto.h" >- >+#include <math.h> > > static struct { > const char *name; >@@ -206,7 +206,7 @@ > s2->allocation.out.sectors_per_unit * > s2->allocation.out.total_alloc_units * > s2->allocation.out.bytes_per_sector / scale; >- if (abs(size1 - size2) > 1) { >+ if (fabs(size1 - size2) > 1) { > printf("Inconsistent total size in DSKATTR and ALLOCATION - size1=%.0f size2=%.0f\n", > size1, size2); > ret = false; >@@ -228,7 +228,7 @@ > s2->allocation.out.sectors_per_unit * > s2->allocation.out.avail_alloc_units * > s2->allocation.out.bytes_per_sector / scale; >- if (abs(size1 - size2) > 1) { >+ if (fabs(size1 - size2) > 1) { > printf("Inconsistent avail size in DSKATTR and ALLOCATION - size1=%.0f size2=%.0f\n", > size1, size2); > ret = false;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 12680
: 13044