summaryrefslogtreecommitdiff
path: root/blktrace.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2006-10-30 10:42:47 +0100
committerJens Axboe <jens.axboe@oracle.com>2006-10-30 10:42:47 +0100
commitec685dd2e5c6030493e4fc4ae23619227e93129c (patch)
tree277487808142f81abfda78e797be26fef2d847be /blktrace.c
parentc76adfc177a182b72c430ce36bab3f9a21fe1616 (diff)
downloadblktrace-ec685dd2e5c6030493e4fc4ae23619227e93129c.tar.gz
blktrace-ec685dd2e5c6030493e4fc4ae23619227e93129c.tar.bz2
[PATCH] Ignore -o (output_name) when in server mode
Reported by ehrhardt@de.ibm.com. It doesn't make a lot of sense to allow directories inside the session private directory, and we currently do not handle multiple directories inside the generated dir. So just ignore that option and inform the user. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'blktrace.c')
-rw-r--r--blktrace.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/blktrace.c b/blktrace.c
index 1ff4d08..8933547 100644
--- a/blktrace.c
+++ b/blktrace.c
@@ -1872,8 +1872,14 @@ int main(int argc, char *argv[])
page_size = getpagesize();
- if (net_mode == Net_server)
+ if (net_mode == Net_server) {
+ if (output_name) {
+ fprintf(stderr, "-o ignored in server mode\n");
+ output_name = NULL;
+ }
+
return net_server();
+ }
while (optind < argc) {
if (resize_devices(argv[optind++]) != 0)