Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e7a356a9
Commit
e7a356a9
authored
Nov 13, 2006
by
mskold/marty@linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1-ndb
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
parents
4acc1af1
2f20405e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
configure.in
configure.in
+2
-0
storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
+16
-0
No files found.
configure.in
View file @
e7a356a9
...
@@ -701,6 +701,8 @@ AC_CHECK_HEADERS(fcntl.h float.h floatingpoint.h ieeefp.h limits.h \
...
@@ -701,6 +701,8 @@ AC_CHECK_HEADERS(fcntl.h float.h floatingpoint.h ieeefp.h limits.h \
sys/ioctl.h malloc.h sys/malloc.h sys/ipc.h sys/shm.h linux/config.h
\
sys/ioctl.h malloc.h sys/malloc.h sys/ipc.h sys/shm.h linux/config.h
\
sys/resource.h sys/param.h
)
sys/resource.h sys/param.h
)
AC_CHECK_HEADERS
([
xfs/xfs.h]
)
#--------------------------------------------------------------------
#--------------------------------------------------------------------
# Check for system libraries. Adds the library to $LIBS
# Check for system libraries. Adds the library to $LIBS
# and defines HAVE_LIBM etc
# and defines HAVE_LIBM etc
...
...
storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
View file @
e7a356a9
...
@@ -18,6 +18,10 @@
...
@@ -18,6 +18,10 @@
#include <my_sys.h>
#include <my_sys.h>
#include <my_pthread.h>
#include <my_pthread.h>
#ifdef HAVE_XFS_XFS_H
#include <xfs/xfs.h>
#endif
#include "AsyncFile.hpp"
#include "AsyncFile.hpp"
#include <ErrorHandlingMacros.hpp>
#include <ErrorHandlingMacros.hpp>
...
@@ -459,6 +463,18 @@ void AsyncFile::openReq(Request* request)
...
@@ -459,6 +463,18 @@ void AsyncFile::openReq(Request* request)
Uint32
index
=
0
;
Uint32
index
=
0
;
Uint32
block
=
refToBlock
(
request
->
theUserReference
);
Uint32
block
=
refToBlock
(
request
->
theUserReference
);
#ifdef HAVE_XFS_XFS_H
if
(
platform_test_xfs_fd
(
theFd
))
{
ndbout_c
(
"Using xfsctl(XFS_IOC_RESVSP64) to allocate disk space"
);
xfs_flock64_t
fl
;
fl
.
l_whence
=
0
;
fl
.
l_start
=
0
;
fl
.
l_len
=
(
off64_t
)
sz
;
if
(
xfsctl
(
NULL
,
theFd
,
XFS_IOC_RESVSP64
,
&
fl
)
<
0
)
ndbout_c
(
"failed to optimally allocate disk space"
);
}
#endif
#ifdef HAVE_POSIX_FALLOCATE
#ifdef HAVE_POSIX_FALLOCATE
posix_fallocate
(
theFd
,
0
,
sz
);
posix_fallocate
(
theFd
,
0
,
sz
);
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment