~ubuntu-branches/ubuntu/trusty/glusterfs/trusty

« back to all changes in this revision

Viewing changes to xlators/cluster/afr/src/afr-inode-read.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2010-02-09 18:53:10 UTC
  • mfrom: (1.2.4 upstream) (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100209185310-ww8p82lsbosorg2u
* New upstream release.
* Uploading to unstable.
* Bump Standards-Version to 3.8.4 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 
104
104
out:
105
105
        if (unwind) {
106
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno);
 
106
                AFR_STACK_UNWIND (access, frame, op_ret, op_errno);
107
107
        }
108
108
 
109
109
        return 0;
166
166
        op_ret = 0;
167
167
out:
168
168
        if (op_ret == -1) {
169
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno);
 
169
                AFR_STACK_UNWIND (access, frame, op_ret, op_errno);
170
170
        }
171
171
        return 0;
172
172
}
224
224
                if (buf)
225
225
                        buf->st_ino = local->cont.stat.ino;
226
226
 
227
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, buf);
 
227
                AFR_STACK_UNWIND (stat, frame, op_ret, op_errno, buf);
228
228
        }
229
229
 
230
230
        return 0;
289
289
        op_ret = 0;
290
290
out:
291
291
        if (op_ret == -1) {
292
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, NULL);
 
292
                AFR_STACK_UNWIND (stat, frame, op_ret, op_errno, NULL);
293
293
        }
294
294
 
295
295
        return 0;
348
348
                if (buf)
349
349
                        buf->st_ino = local->cont.fstat.ino;
350
350
 
351
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, buf);
 
351
                AFR_STACK_UNWIND (fstat, frame, op_ret, op_errno, buf);
352
352
        }
353
353
 
354
354
        return 0;
415
415
        op_ret = 0;
416
416
out:
417
417
        if (op_ret == -1) {
418
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, NULL);
 
418
                AFR_STACK_UNWIND (fstat, frame, op_ret, op_errno, NULL);
419
419
        }
420
420
 
421
421
        return 0;
428
428
int32_t
429
429
afr_readlink_cbk (call_frame_t *frame, void *cookie,
430
430
                  xlator_t *this, int32_t op_ret, int32_t op_errno,
431
 
                  const char *buf)
 
431
                  const char *buf, struct stat *sbuf)
432
432
{
433
433
        afr_private_t * priv     = NULL;
434
434
        afr_local_t *   local    = NULL;
470
470
 
471
471
out:
472
472
        if (unwind) {
473
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, buf);
 
473
                if (sbuf)
 
474
                        sbuf->st_ino = local->cont.readlink.ino;
 
475
 
 
476
                AFR_STACK_UNWIND (readlink, frame, op_ret, op_errno, buf, sbuf);
474
477
        }
475
478
 
476
479
        return 0;
525
528
        }
526
529
 
527
530
        loc_copy (&local->loc, loc);
 
531
 
528
532
        local->cont.readlink.size       = size;
 
533
        local->cont.readlink.ino        = loc->inode->ino;
529
534
 
530
535
        STACK_WIND_COOKIE (frame, afr_readlink_cbk,
531
536
                           (void *) (long) call_child,
535
540
        op_ret = 0;
536
541
out:
537
542
        if (op_ret == -1) {
538
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, NULL);
 
543
                AFR_STACK_UNWIND (readlink, frame, op_ret, op_errno, NULL, NULL);
539
544
        }
540
545
        return 0;
541
546
}
645
650
                if (op_ret >= 0 && dict)
646
651
                        __filter_xattrs (dict);
647
652
 
648
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, dict);
 
653
                AFR_STACK_UNWIND (getxattr, frame, op_ret, op_errno, dict);
649
654
        }
650
655
 
651
656
        return 0;
718
723
        op_ret = 0;
719
724
out:
720
725
        if (op_ret == -1) {
721
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, NULL);
 
726
                AFR_STACK_UNWIND (getxattr, frame, op_ret, op_errno, NULL);
722
727
        }
723
728
        return 0;
724
729
}
800
805
                if (buf)
801
806
                        buf->st_ino = local->cont.readv.ino;
802
807
 
803
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, vector, count, buf,
804
 
                                  iobref);
 
808
                AFR_STACK_UNWIND (readv, frame, op_ret, op_errno,
 
809
                                  vector, count, buf, iobref);
805
810
        }
806
811
 
807
812
        return 0;
872
877
        op_ret = 0;
873
878
out:
874
879
        if (op_ret == -1) {
875
 
                AFR_STACK_UNWIND (frame, op_ret, op_errno, NULL, 0, NULL,
 
880
                AFR_STACK_UNWIND (readv, frame, op_ret, op_errno, NULL, 0, NULL,
876
881
                                  NULL);
877
882
        }
878
883
        return 0;