style fix
parent
6cae44b512
commit
a822363ee0
|
@ -189,8 +189,8 @@ AM_COND_IF([USE_RADOS_AIORI],[
|
|||
AC_MSG_CHECKING([for Gfarm file system])
|
||||
AC_ARG_WITH([gfarm],
|
||||
[AS_HELP_STRING([--with-gfarm=GFARM_ROOT],
|
||||
[support IO with libgfarm backend @<:@default=no@:>@])],
|
||||
[], [with_gfarm=no])
|
||||
[support IO with Gfarm backend @<:@default=no@:>@])],
|
||||
[], [with_gfarm=no])
|
||||
AC_MSG_RESULT([$with_gfarm])
|
||||
AM_CONDITIONAL([USE_GFARM_AIORI], [test x$with_gfarm != xno])
|
||||
if test x$with_gfarm != xno; then
|
||||
|
|
|
@ -77,7 +77,7 @@ Gfarm_xfer(int access, void *fd, IOR_size_t *buffer, IOR_offset_t len,
|
|||
#define MAX_SZ (1024 * 1024 * 1024)
|
||||
int sz, n;
|
||||
char *buf = (char *)buffer;
|
||||
|
||||
|
||||
if (param->dryRun)
|
||||
return (len);
|
||||
|
||||
|
@ -109,7 +109,7 @@ Gfarm_close(void *fd, IOR_param_t *param)
|
|||
{
|
||||
struct gfarm_file *fp = fd;
|
||||
|
||||
if(param->dryRun)
|
||||
if (param->dryRun)
|
||||
return;
|
||||
|
||||
if (gfs_pio_close(fp->gf) != GFARM_ERR_NO_ERROR)
|
||||
|
@ -141,7 +141,7 @@ Gfarm_fsync(void *fd, IOR_param_t *param)
|
|||
{
|
||||
struct gfarm_file *fp = fd;
|
||||
|
||||
if(param->dryRun)
|
||||
if (param->dryRun)
|
||||
return;
|
||||
|
||||
if (gfs_pio_sync(fp->gf) != GFARM_ERR_NO_ERROR)
|
||||
|
@ -213,7 +213,7 @@ Gfarm_mkdir(const char *fn, mode_t mode, IOR_param_t *param)
|
|||
if (param->dryRun)
|
||||
return (0);
|
||||
|
||||
e = gfs_mkdir(fn, mode);
|
||||
e = gfs_mkdir(fn, mode);
|
||||
if (e == GFARM_ERR_NO_ERROR)
|
||||
return (0);
|
||||
errno = gfarm_error_to_errno(e);
|
||||
|
@ -228,7 +228,7 @@ Gfarm_rmdir(const char *fn, IOR_param_t *param)
|
|||
if (param->dryRun)
|
||||
return (0);
|
||||
|
||||
e = gfs_rmdir(fn);
|
||||
e = gfs_rmdir(fn);
|
||||
if (e == GFARM_ERR_NO_ERROR)
|
||||
return (0);
|
||||
errno = gfarm_error_to_errno(e);
|
||||
|
|
Loading…
Reference in New Issue