~ubuntu-branches/debian/sid/glusterfs/sid

« back to all changes in this revision

Viewing changes to api/src/glfs.c

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2014-01-03 12:26:31 UTC
  • mfrom: (1.3.23)
  • Revision ID: package-import@ubuntu.com-20140103122631-juk6hhl6fqkmtvpl
Tags: 3.4.2-1
* New upstream release.
* Overwrite debian-watch-may-check-gpg-signature warning. There is no GPG
  signature available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
317
317
        return -1;
318
318
}
319
319
 
 
320
int glfs_setfsuid (uid_t fsuid)
 
321
{
 
322
        return syncopctx_setfsuid (&fsuid);
 
323
}
 
324
 
 
325
int glfs_setfsgid (gid_t fsgid)
 
326
{
 
327
        return syncopctx_setfsgid (&fsgid);
 
328
}
 
329
 
 
330
int glfs_setfsgroups (size_t size, const gid_t *list)
 
331
{
 
332
        return syncopctx_setfsgroups(size, list);
 
333
}
320
334
 
321
335
struct glfs *
322
336
glfs_from_glfd (struct glfs_fd *glfd)
594
608
int
595
609
glfs_fini (struct glfs *fs)
596
610
{
597
 
        int  ret = -1;
598
 
        xlator_t *subvol = NULL;
 
611
        int             ret = -1;
 
612
        int             countdown = 100;
 
613
        xlator_t        *subvol = NULL;
599
614
        glusterfs_ctx_t *ctx = NULL;
600
 
        call_pool_t *call_pool = NULL;
601
 
        int countdown = 100;
 
615
        call_pool_t     *call_pool = NULL;
602
616
 
603
617
        ctx = fs->ctx;
604
618
 
619
633
        }
620
634
        /* leaked frames may exist, we ignore */
621
635
 
 
636
        /*We deem glfs_fini as successful if there are no pending frames in the call
 
637
         *pool*/
 
638
        ret = (call_pool->cnt == 0)? 0: -1;
 
639
 
622
640
        subvol = glfs_active_subvol (fs);
623
641
        if (subvol) {
624
642
                /* PARENT_DOWN within glfs_subvol_done() is issued only