From 248c6f76d5bee281d7f78e135591d8c3ab964b6b Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 22 Sep 2009 00:20:26 +0000 Subject: booster: implement F_DUPFD command in fcntl. Signed-off-by: Anand V. Avati BUG: 277 (running dd on booster returns EINVAL) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=277 --- booster/src/booster.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/booster/src/booster.c b/booster/src/booster.c index ff4da3a1b64..14900656843 100644 --- a/booster/src/booster.c +++ b/booster/src/booster.c @@ -2559,6 +2559,8 @@ fcntl (int fd, int cmd, ...) gf_log ("booster", GF_LOG_DEBUG, "fcntl: fd %d, cmd %d", fd, cmd); switch (cmd) { case F_DUPFD: + ret = dup (fd); + break; /* * FIXME: Consider this case when implementing F_DUPFD, F_GETFD * etc flags in libglusterfsclient. Commenting it out for -- cgit