diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-09-22 00:22:12 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-22 06:13:28 -0700 |
commit | 0def744b2e66e81ac37532b26716e83d3b8bc9dd (patch) | |
tree | 3a8435b25a4ed38dc713c1f5c94fa5276cacc839 | |
parent | 8301f05f77aa08f04e249c19576a7c111e586109 (diff) |
booster: implement F_DUPFD command in fcntl.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 277 (running dd on booster returns EINVAL)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=277
-rw-r--r-- | booster/src/booster.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |