Displaying 2 results from an estimated 2 matches for "e45980a".
Did you mean:
45980
2016 Apr 14
1
[PATCH supermin] ext2: fix printf formatters
Use the right formatting placeholders, so it gives no warnings also on
32bit platforms.
---
src/ext2fs-c.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/ext2fs-c.c b/src/ext2fs-c.c
index e45980a..cb9282b 100644
--- a/src/ext2fs-c.c
+++ b/src/ext2fs-c.c
@@ -31,6 +31,7 @@
#include <limits.h>
#include <errno.h>
#include <assert.h>
+#include <inttypes.h>
/* Inlining is broken in the ext2fs header file. Disable it by
* defining the following:
@@ -659,9 +660,9 @@...
2016 Jan 22
1
[supermin] [PATCH] ext2: check for needed block size
Check early that there are enough free blocks to store each file,
erroring out with ENOSPC if not; this avoids slightly more obscure
errors later on.
---
src/ext2fs-c.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/ext2fs-c.c b/src/ext2fs-c.c
index f01ca9d..e45980a 100644
--- a/src/ext2fs-c.c
+++ b/src/ext2fs-c.c
@@ -52,6 +52,9 @@
/* fts.h in glibc is broken, forcing us to use the GNUlib alternative. */
#include "fts_.h"
+/* How many blocks of size S are needed for storing N bytes. */
+#define ROUND_UP(N, S) (((N) + (S) - 1) / (S))
+
struct ext...