author | Alberto Bertogli
<albertito@gmail.com> 2004-09-14 05:24:53 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-07-15 13:23:10 UTC |
parent | 1cf581b3928b8ccfb87baa64b7980abfa710ab21 |
bindings/python/libjio.c | +0 | -1 |
check.c | +2 | -2 |
trans.c | +1 | -1 |
diff --git a/bindings/python/libjio.c b/bindings/python/libjio.c index 780b16e..c9492fb 100644 --- a/bindings/python/libjio.c +++ b/bindings/python/libjio.c @@ -616,7 +616,6 @@ PyMODINIT_FUNC initlibjio(void) PyModule_AddIntConstant(m, "O_NDELAY", O_NDELAY); PyModule_AddIntConstant(m, "O_SYNC", O_SYNC); PyModule_AddIntConstant(m, "O_ASYNC", O_ASYNC); - PyModule_AddIntConstant(m, "O_LARGEFILE", O_LARGEFILE); /* lseek constants */ PyModule_AddIntConstant(m, "SEEK_SET", SEEK_SET); diff --git a/check.c b/check.c index 6c62c00..a7933e6 100644 --- a/check.c +++ b/check.c @@ -126,7 +126,7 @@ int jfsck(const char *name, struct jfsck_result *res) res->apply_error = 0; res->reapplied = 0; - fs.fd = open(name, O_RDWR | O_SYNC | O_LARGEFILE); + fs.fd = open(name, O_RDWR | O_SYNC); if (fs.fd < 0) { ret = J_ENOENT; goto exit; @@ -214,7 +214,7 @@ int jfsck(const char *name, struct jfsck_result *res) ret = J_ENOMEM; goto exit; } - tfd = open(tname, O_RDWR | O_SYNC | O_LARGEFILE, 0600); + tfd = open(tname, O_RDWR | O_SYNC, 0600); if (tfd < 0) { res->invalid++; goto loop; diff --git a/trans.c b/trans.c index 1c4806c..a22c3d1 100644 --- a/trans.c +++ b/trans.c @@ -209,7 +209,7 @@ ssize_t jtrans_commit(struct jtrans *ts) /* open the transaction file */ if (!get_jtfile(ts->fs->name, id, name)) goto exit; - fd = open(name, O_RDWR | O_CREAT | O_TRUNC | O_LARGEFILE, 0600); + fd = open(name, O_RDWR | O_CREAT | O_TRUNC, 0600); if (fd < 0) goto exit;