Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
10b41fb
)
Fix a couple long long objid parsings, not the read fix yet, though.
author
adilger
<adilger>
Fri, 6 Sep 2002 22:08:50 +0000
(22:08 +0000)
committer
adilger
<adilger>
Fri, 6 Sep 2002 22:08:50 +0000
(22:08 +0000)
lustre/utils/obd.c
patch
|
blob
|
history
diff --git
a/lustre/utils/obd.c
b/lustre/utils/obd.c
index
2346ae8
..
8cfa1d1
100644
(file)
--- a/
lustre/utils/obd.c
+++ b/
lustre/utils/obd.c
@@
-824,7
+824,7
@@
int jt_obd_create(int argc, char **argv)
}
if (be_verbose(verbose, &next_time, i, &next_count, count))
}
if (be_verbose(verbose, &next_time, i, &next_count, count))
- printf("%s: #%d is object id
%Ld
\n", cmdname(argv[0]),
+ printf("%s: #%d is object id
0x%Lx
\n", cmdname(argv[0]),
i, (long long)data.ioc_obdo1.o_id);
}
return rc;
i, (long long)data.ioc_obdo1.o_id);
}
return rc;
@@
-898,7
+898,7
@@
int jt_obd_getattr(int argc, char **argv)
return CMD_HELP;
IOCINIT(data);
return CMD_HELP;
IOCINIT(data);
- data.ioc_obdo1.o_id = strtoul(argv[1], &end, 0);
+ data.ioc_obdo1.o_id = strtoul
l
(argv[1], &end, 0);
if (*end) {
fprintf(stderr, "error: %s: invalid objid '%s'\n",
cmdname(argv[0]), argv[1]);
if (*end) {
fprintf(stderr, "error: %s: invalid objid '%s'\n",
cmdname(argv[0]), argv[1]);
@@
-1044,7
+1044,7
@@
int jt_obd_test_brw(int argc, char **argv)
}
if (argc >= 6) {
if (argv[5][0] == 't')
}
if (argc >= 6) {
if (argv[5][0] == 't')
- objid = strtoul(argv[5] + 1, &end, 0) + thread;
+ objid = strtoul
l
(argv[5] + 1, &end, 0) + thread;
else
objid = strtoull(argv[5], &end, 0);
if (*end) {
else
objid = strtoull(argv[5], &end, 0);
if (*end) {