forked from ceph/ceph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ceph/ceph
- Loading branch information
Showing
44 changed files
with
370 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ AC_PREREQ(2.59) | |
# VERSION define is not used by the code. It gets a version string | ||
# from 'git describe'; see src/ceph_ver.[ch] | ||
|
||
AC_INIT([ceph], [0.72-rc1], [[email protected]]) | ||
AC_INIT([ceph], [0.72], [[email protected]]) | ||
|
||
# Create release string. Used with VERSION for RPMs. | ||
RPM_RELEASE=0 | ||
|
@@ -539,6 +539,17 @@ AC_CHECK_FUNC([fallocate], | |
[AC_DEFINE([CEPH_HAVE_FALLOCATE], [], [fallocate(2) is supported])], | ||
[]) | ||
|
||
# | ||
# Test for time-related `struct stat` members. | ||
# | ||
|
||
AC_CHECK_MEMBER([struct stat.st_mtim.tv_nsec], | ||
[AC_DEFINE(HAVE_STAT_ST_MTIM_TV_NSEC, 1, | ||
[Define if you have struct stat.st_mtim.tv_nsec])]) | ||
|
||
AC_CHECK_MEMBER([struct stat.st_mtimespec.tv_nsec], | ||
[AC_DEFINE(HAVE_STAT_ST_MTIMESPEC_TV_NSEC, 1, | ||
[Define if you have struct stat.st_mtimespec.tv_nsec])]) | ||
|
||
AC_CHECK_HEADERS([arpa/nameser_compat.h]) | ||
AC_CHECK_HEADERS([sys/prctl.h]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
ceph (0.72-1) stable; urgency=low | ||
|
||
* New upstream release | ||
|
||
-- Gary Lowell <[email protected]> Thu, 07 Nov 2013 20:25:18 +0000 | ||
|
||
ceph (0.72-rc1-1) stable; urgency=low | ||
|
||
* New upstream release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
#ifndef CEPH_STAT_H | ||
#define CEPH_STAT_H | ||
|
||
#include <acconfig.h> | ||
|
||
#include <sys/stat.h> | ||
|
||
/* | ||
* Access time-related `struct stat` members. | ||
* | ||
* Note that for each of the stat member get/set functions below, setting a | ||
* high-res value (stat_set_*_nsec) on a platform without high-res support is | ||
* a no-op. | ||
*/ | ||
|
||
#ifdef HAVE_STAT_ST_MTIM_TV_NSEC | ||
|
||
static inline uint32_t stat_get_mtime_nsec(struct stat *st) | ||
{ | ||
return st->st_mtim.tv_nsec; | ||
} | ||
|
||
static inline void stat_set_mtime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
st->st_mtim.tv_nsec = nsec; | ||
} | ||
|
||
static inline uint32_t stat_get_atime_nsec(struct stat *st) | ||
{ | ||
return st->st_atim.tv_nsec; | ||
} | ||
|
||
static inline void stat_set_atime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
st->st_atim.tv_nsec = nsec; | ||
} | ||
|
||
static inline uint32_t stat_get_ctime_nsec(struct stat *st) | ||
{ | ||
return st->st_ctim.tv_nsec; | ||
} | ||
|
||
static inline void stat_set_ctime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
st->st_ctim.tv_nsec = nsec; | ||
} | ||
|
||
#elif defined(HAVE_STAT_ST_MTIMESPEC_TV_NSEC) | ||
|
||
static inline uint32_t stat_get_mtime_nsec(struct stat *st) | ||
{ | ||
return st->st_mtimespec.tv_nsec; | ||
} | ||
|
||
static inline void stat_set_mtime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
st->st_mtimespec.tv_nsec = nsec; | ||
} | ||
|
||
static inline uint32_t stat_get_atime_nsec(struct stat *st) | ||
{ | ||
return st->st_atimespec.tv_nsec; | ||
} | ||
|
||
static inline void stat_set_atime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
st->st_atimespec.tv_nsec = nsec; | ||
} | ||
|
||
static inline uint32_t stat_get_ctime_nsec(struct stat *st) | ||
{ | ||
return st->st_ctimespec.tv_nsec; | ||
} | ||
|
||
static inline void stat_set_ctime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
st->st_ctimespec.tv_nsec = nsec; | ||
} | ||
|
||
#else | ||
|
||
static inline uint32_t stat_get_mtime_nsec(struct stat *st) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void stat_set_mtime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
} | ||
|
||
static inline uint32_t stat_get_atime_nsec(struct stat *st) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void stat_set_atime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
} | ||
|
||
static inline uint32_t stat_get_ctime_nsec(struct stat *st) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void stat_set_ctime_nsec(struct stat *st, uint32_t nsec) | ||
{ | ||
} | ||
|
||
#endif | ||
|
||
/* | ||
* Access second-resolution `struct stat` members. | ||
*/ | ||
|
||
static inline uint32_t stat_get_mtime_sec(struct stat *st) | ||
{ | ||
return st->st_mtime; | ||
} | ||
|
||
static inline void stat_set_mtime_sec(struct stat *st, uint32_t sec) | ||
{ | ||
st->st_mtime = sec; | ||
} | ||
|
||
static inline uint32_t stat_get_atime_sec(struct stat *st) | ||
{ | ||
return st->st_atime; | ||
} | ||
|
||
static inline void stat_set_atime_sec(struct stat *st, uint32_t sec) | ||
{ | ||
st->st_atime = sec; | ||
} | ||
|
||
static inline uint32_t stat_get_ctime_sec(struct stat *st) | ||
{ | ||
return st->st_ctime; | ||
} | ||
|
||
static inline void stat_set_ctime_sec(struct stat *st, uint32_t sec) | ||
{ | ||
st->st_ctime = sec; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.