summaryrefslogtreecommitdiffstats
path: root/booster
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-09-22 00:22:12 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-22 06:13:28 -0700
commit0def744b2e66e81ac37532b26716e83d3b8bc9dd (patch)
tree3a8435b25a4ed38dc713c1f5c94fa5276cacc839 /booster
parent8301f05f77aa08f04e249c19576a7c111e586109 (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
Diffstat (limited to 'booster')
-rw-r--r--booster/src/booster.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/booster/src/booster.c b/booster/src/booster.c
index ff4da3a1..14900656 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