/[BackupPC]/trunk/bin/BackupPC_incPartsUpdate
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 /trunk/bin/BackupPC_incPartsUpdate

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

revision 218 by dpavlin, Sun Oct 16 17:48:05 2005 UTC revision 228 by dpavlin, Mon Oct 24 16:41:13 2005 UTC
# Line 215  while (my $row = $sth->fetchrow_hashref) Line 215  while (my $row = $sth->fetchrow_hashref)
215                  my $max_size = $Conf{'MaxArchiveSize'} || die "problem with MaxArchieSize parametar";                  my $max_size = $Conf{'MaxArchiveSize'} || die "problem with MaxArchieSize parametar";
216                  $max_size *= 1024;      # convert to bytes                  $max_size *= 1024;      # convert to bytes
217    
218                    # maximum file size on ISO image is 4Gb
219                    # this will require Linux kernel 2.6.8 or newer
220                    my $max_iso_file_size = 2^32 - 2048;
221                    if ( $max_size > $max_iso_file_size ) {
222                            $max_size = $max_iso_file_size;
223                    }
224    
225                  my $parts = int( ($size + $max_size - 1) / $max_size );                  my $parts = int( ($size + $max_size - 1) / $max_size );
226    
227                  if (-d "$tar_dir/$tar_file" && $parts != $row->{'parts'}) {                  if (-d "$tar_dir/$tar_file" && $parts != $row->{'parts'}) {

Legend:
Removed from v.218  
changed lines
  Added in v.228

  ViewVC Help
Powered by ViewVC 1.1.26