/[fuse-comp]/fuse-comp.pl
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 /fuse-comp.pl

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

revision 14 by dpavlin, Mon Jul 9 13:04:25 2007 UTC revision 17 by dpavlin, Mon Jul 9 13:45:53 2007 UTC
# Line 204  sub x_write { Line 204  sub x_write {
204          return -ENOSYS() unless open($fh,'+<',$pending->{$file}->{path});          return -ENOSYS() unless open($fh,'+<',$pending->{$file}->{path});
205          if($rv = seek( $fh ,$off,SEEK_SET)) {          if($rv = seek( $fh ,$off,SEEK_SET)) {
206                  $rv = print( $fh $buf );                  $rv = print( $fh $buf );
207                  warn "## ", $pending->{$file}->{path}, " $off ",length( $buf ), "\n" if $debug;                  warn "## write ", $pending->{$file}->{path}, " $off ",length( $buf ), "\n" if $debug;
208          }          }
209          $rv = -ENOSYS() unless $rv;          $rv = -ENOSYS() unless $rv;
210          close($fh);          close($fh);
# Line 255  sub x_truncate { Line 255  sub x_truncate {
255                  rename $path, $no_gz || confess "can't rename $path -> $no_gz: $!";                  rename $path, $no_gz || confess "can't rename $path -> $no_gz: $!";
256          }          }
257          warn "## truncate( $file $size ) $path [", -s $path, "]\n";          warn "## truncate( $file $size ) $path [", -s $path, "]\n";
258            $pending->{$file}->{write}++;
259          return $rv;          return $rv;
260  }  }
261  sub x_utime { return utime($_[1],$_[2],fixup($_[0])) ? 0:-$!; }  sub x_utime { return utime($_[1],$_[2],fixup($_[0])) ? 0:-$!; }

Legend:
Removed from v.14  
changed lines
  Added in v.17

  ViewVC Help
Powered by ViewVC 1.1.26