From 2f6e85541b4cf09cd97318d8897862cae5a02527 Mon Sep 17 00:00:00 2001 From: pschwan Date: Tue, 10 Jun 2003 10:48:35 +0000 Subject: [PATCH] b_devel -> b_orphan merge for 20030610 --- lustre/utils/lstripe.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/utils/lstripe.c b/lustre/utils/lstripe.c index 39e2bdf..2cdf5d2 100644 --- a/lustre/utils/lstripe.c +++ b/lustre/utils/lstripe.c @@ -46,8 +46,13 @@ int create_file(char *name, long stripe_size, int stripe_offset, name, strerror(errno)); result = -errno; } else if (ioctl(fd, LL_IOC_LOV_SETSTRIPE, &a_striping)) { + char *errmsg = "stripe already set"; + + if (errno != EEXIST && errno != EALREADY) + errmsg = strerror(errno); + fprintf(stderr, "\nError on ioctl for '%s' (%d): %s\n", - name, fd, strerror(errno)); + name, fd, errmsg); result = -errno; } else if (close(fd) < 0) { fprintf(stderr, "\nError on close for '%s' (%d): %s\n", -- 1.8.3.1