All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] [MTD-UTILS] fs-tests: allow for symlink name too long in integrity test
@ 2008-08-12 11:08 Adrian Hunter
  0 siblings, 0 replies; only message in thread
From: Adrian Hunter @ 2008-08-12 11:08 UTC (permalink / raw)
  To: linux-mtd@lists.infradead.org


Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
---
 tests/fs-tests/integrity/integck.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 8cdbfb4..145557f 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -1664,8 +1664,9 @@ static void symlink_new(struct dir_info *dir, const char *name_)
 	path = dir_path(dir, name);
 	target = pick_symlink_target(path);
 	if (symlink(target, path) == -1) {
-		CHECK(errno == ENOSPC);
-		full = 1;
+		CHECK(errno == ENOSPC || errno == ENAMETOOLONG);
+		if (errno == ENOSPC)
+			full = 1;
 		free(target);
 		free(path);
 		free(name);
-- 
1.5.4.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-12 11:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 11:08 [PATCH 3/3] [MTD-UTILS] fs-tests: allow for symlink name too long in integrity test Adrian Hunter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.