/[fuse.before_github]/perl/trunk/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/trunk/Fuse.xs

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

revision 43 by dpavlin, Tue Dec 27 12:47:00 2005 UTC revision 44 by dpavlin, Mon Jan 2 22:52:05 2006 UTC
# Line 541  int _PLfuse_write (const char *file, con Line 541  int _PLfuse_write (const char *file, con
541          return rv;          return rv;
542  }  }
543    
544  int _PLfuse_statfs (const char *file, struct statfs *st) {  /* FIXME check for old fuse API (< 21?) and use statfs here */
545    int _PLfuse_statfs (const char *file, struct statvfs *st) {
546          int rv;          int rv;
547          char *rvstr;          char *rvstr;
548          FUSE_CONTEXT_PRE;          FUSE_CONTEXT_PRE;
# Line 555  int _PLfuse_statfs (const char *file, st Line 556  int _PLfuse_statfs (const char *file, st
556          SPAGAIN;          SPAGAIN;
557          if(rv > 5) {          if(rv > 5) {
558                  st->f_bsize    = POPi;                  st->f_bsize    = POPi;
559                  st->f_bfree    = POPi;                  st->f_bfree = st->f_bavail = POPi;
560                  st->f_blocks   = POPi;                  st->f_blocks   = POPi;
561                  st->f_ffree    = POPi;                  st->f_ffree = st->f_favail  = POPi;
562                  st->f_files    = POPi;                  st->f_files    = POPi;
563                  st->f_namelen  = POPi;                  st->f_namemax  = POPi;
564                    /* zero all other */
565                    st->f_frsize = 4096;
566                    st->f_fsid = 0;
567                    st->f_flag = 0;
568    
569                  if(rv > 6)                  if(rv > 6)
570                          rv = POPi;                          rv = POPi;
571                  else                  else

Legend:
Removed from v.43  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.26