summaryrefslogtreecommitdiffstats
path: root/booster
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-09-22 00:20:26 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-22 06:14:33 -0700
commit248c6f76d5bee281d7f78e135591d8c3ab964b6b (patch)
tree36acc27b007491c8620247e129f01d407acedf0d /booster
parentfb34f7fd81d3260d548ee0f6b5d656fdb1ec61f1 (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 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