/[fuse.before_github]/perl-llin/Fuse.xs
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /perl-llin/Fuse.xs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 26 by dpavlin, Mon Jan 2 22:24:03 2006 UTC revision 28 by dpavlin, Mon Jan 2 22:39:32 2006 UTC
# Line 30  static inline void create_perl_context() Line 30  static inline void create_perl_context()
30  #include <fuse/fuse.h>  #include <fuse/fuse.h>
31    
32  #undef DEBUGf  #undef DEBUGf
33  #if 0  #if 1
34  #define DEBUGf(f, a...) fprintf(stderr, "%s:%d (%i): " f,__BASE_FILE__,__LINE__,sp-PL_stack_base ,##a )  #define DEBUGf(f, a...) fprintf(stderr, "%s:%d (%i): " f,__BASE_FILE__,__LINE__,sp-PL_stack_base ,##a )
35  #else  #else
36  #define DEBUGf(a...)  #define DEBUGf(a...)
# Line 554  int _PLfuse_statfs (const char *file, st Line 554  int _PLfuse_statfs (const char *file, st
554          PUTBACK;          PUTBACK;
555          rv = call_sv(_PLfuse_callbacks[17],G_ARRAY);          rv = call_sv(_PLfuse_callbacks[17],G_ARRAY);
556          SPAGAIN;          SPAGAIN;
557          if(rv > 5) {          DEBUGf("statfs got %i params\n",rv);
558            if(rv == 6 || rv == 7) {
559                  st->f_bsize    = POPi;                  st->f_bsize    = POPi;
560                  st->f_bfree = st->f_bavail = POPi;                  st->f_bfree = st->f_bavail = POPi;
561                  st->f_blocks   = POPi;                  st->f_blocks   = POPi;
# Line 566  int _PLfuse_statfs (const char *file, st Line 567  int _PLfuse_statfs (const char *file, st
567                  st->f_fsid = 0;                  st->f_fsid = 0;
568                  st->f_flag = 0;                  st->f_flag = 0;
569    
570                  if(rv > 6)                  if(rv == 7)
571                          rv = POPi;                          rv = POPi;
572                  else                  else
573                          rv = 0;                          rv = 0;

Legend:
Removed from v.26  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26