From: Andrew Vagin <avagin@gmail.com>
To: subrata@linux.vnet.ibm.com
Cc: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH 1/5] fsstress: delete tralling spaces
Date: Sun, 27 Sep 2009 02:45:58 +0400 [thread overview]
Message-ID: <1254005162-27353-1-git-send-email-avagin@gmail.com> (raw)
Signed-off-by: Andrew Vagin <avagin@gmail.com>
---
testcases/kernel/fs/fsstress/fsstress.c | 36 +++++++++++++++---------------
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/testcases/kernel/fs/fsstress/fsstress.c b/testcases/kernel/fs/fsstress/fsstress.c
index 1f11f6e..b313b62 100644
--- a/testcases/kernel/fs/fsstress/fsstress.c
+++ b/testcases/kernel/fs/fsstress/fsstress.c
@@ -295,7 +295,7 @@ int main(int argc, char **argv)
ptrdiff_t srval;
#endif
int nousage=0;
-#ifndef NO_XFS
+#ifndef NO_XFS
xfs_error_injection_t err_inj;
#endif
@@ -308,7 +308,7 @@ int main(int argc, char **argv)
switch (c) {
case 'c':
/*Don't cleanup*/
- cleanup=1;
+ cleanup=1;
break;
case 'd':
dirname = optarg;
@@ -389,13 +389,13 @@ int main(int argc, char **argv)
ops[i].freq = 0;
}
}
-
+
if (!dirname) {
/* no directory specified */
if (!nousage) usage();
exit(1);
}
-
+
(void)mkdir(dirname, 0777);
if (chdir(dirname) < 0) {
perror(dirname);
@@ -472,7 +472,7 @@ int main(int argc, char **argv)
while (wait(&stat) > 0)
continue;
}
-#ifndef NO_XFS
+#ifndef NO_XFS
if (errtag != 0) {
err_inj.errtag = 0;
err_inj.fd = fd;
@@ -724,7 +724,7 @@ doproc(void)
p = &ops[freq_table[random() % freq_table_size]];
if ((unsigned long)p->func < 4096) abort();
-
+
p->func(opno, random());
/*
* test for forced shutdown by stat'ing the test
@@ -1225,7 +1225,7 @@ show_ops(int flag, char *lead_str)
if (flag<0) {
/* print in list form */
int x = WIDTH;
-
+
for (p = ops; p < ops_end; p++) {
if (lead_str != NULL && x+strlen(p->name)>=WIDTH-5)
x=printf("%s%s", (p==ops)?"":"\n", lead_str);
@@ -1277,7 +1277,7 @@ symlink_path(const char *name1, pathname_t *name)
char buf[MAXNAMELEN];
pathname_t newname;
int rval;
-
+
if (!strcmp(name1, name->path)) {
printf("yikes! %s %s\n", name1, name->path);
return 0;
@@ -1553,12 +1553,12 @@ bulkstat_f(int opno, long r)
t = malloc(nent * sizeof(*t));
fd = open(".", O_RDONLY);
total = 0;
-
+
bsr.lastip=&last;
bsr.icount=nent;
bsr.ubuffer=t;
bsr.ocount=&count;
-
+
while (ioctl(fd, XFS_IOC_FSBULKSTAT, &bsr) == 0 && count > 0)
total += count;
free(t);
@@ -1580,7 +1580,7 @@ bulkstat1_f(int opno, long r)
xfs_bstat_t t;
int v;
xfs_fsop_bulkreq_t bsr;
-
+
good = random() & 1;
if (good) {
@@ -1610,12 +1610,12 @@ bulkstat1_f(int opno, long r)
v = verbose;
}
fd = open(".", O_RDONLY);
-
+
bsr.lastip=&ino;
bsr.icount=1;
bsr.ubuffer=&t;
bsr.ocount=NULL;
-
+
e = ioctl(fd, XFS_IOC_FSBULKSTAT_SINGLE, &bsr) < 0 ? errno : 0;
if (v)
printf("%d/%d: bulkstat1 %s ino %lld %d\n",
@@ -1699,9 +1699,9 @@ creat_f(int opno, long r)
if (ioctl(fd, XFS_IOC_FSSETXATTR, &a) < 0)
e1 = errno;
esz = a.fsx_estsize;
-
+
}
-#endif
+#endif
add_to_flist(type, id, parid);
close(fd);
}
@@ -1723,7 +1723,7 @@ setdirect(int fd)
return 0;
flags = fcntl(fd, F_GETFL, 0);
- if (flags < 0)
+ if (flags < 0)
return 0;
if (fcntl(fd, F_SETFL, flags|O_DIRECT) < 0) {
@@ -1734,7 +1734,7 @@ setdirect(int fd)
printf("cannot set O_DIRECT: %s\n",strerror(errno));
return 0;
}
-
+
return 1;
}
@@ -1752,7 +1752,7 @@ dread_f(int opno, long r)
off64_t off;
struct stat64 stb;
int v;
-
+
init_pathname(&f);
if (!get_fname(FT_REGFILE, r, &f, NULL, NULL, &v)) {
if (v)
--
1.6.2.5
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2009-09-26 22:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-26 22:45 Andrew Vagin [this message]
2009-09-26 22:45 ` [LTP] [PATCH 2/5] fsstress: use tabs instead of spaces for indentation Andrew Vagin
2009-09-26 22:46 ` [LTP] [PATCH 3/5] fsstress: fix memory leaks Andrew Vagin
2009-09-26 22:46 ` [LTP] [PATCH 4/5] fsstress: fix memory leak in fread_d Andrew Vagin
2009-09-26 22:46 ` [LTP] [PATCH 5/5] fsstress: renew flist if clean up test directory Andrew Vagin
2009-09-27 18:15 ` Subrata Modak
2009-09-27 18:15 ` [LTP] [PATCH 4/5] fsstress: fix memory leak in fread_d Subrata Modak
2009-09-27 18:15 ` [LTP] [PATCH 3/5] fsstress: fix memory leaks Subrata Modak
2009-09-27 18:15 ` [LTP] [PATCH 2/5] fsstress: use tabs instead of spaces for indentation Subrata Modak
2009-09-27 18:15 ` [LTP] [PATCH 1/5] fsstress: delete tralling spaces Subrata Modak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1254005162-27353-1-git-send-email-avagin@gmail.com \
--to=avagin@gmail.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=subrata@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.