Changeset df4def70b2e17409817d2db70c5929d52cb489e7

Show
Ignore:
Timestamp:
12/23/10 04:20:52 (2 years ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
93fe0427c1ab0a650b7c294142492205b3e60b9c
Parents:
d4946efe30b6cc3d3b901c8ec150f9810c020490
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2010-12-23T04:20:52Z+0200
Message:

ladishd: data integrity checks

Files:
1 added
6 modified

Legend:

Unmodified
Added
Removed
  • daemon/cmd_save_studio.c

    r5bb20eda rdf4def7  
    221221  } 
    222222 
     223  ladish_check_integrity(); 
     224 
    223225  if (!ladish_studio_compose_filename(cmd_ptr->studio_name, &filename, &bak_filename)) 
    224226  { 
  • daemon/common.h

    r45c73b3 rdf4def7  
    6060extern bool g_quit; 
    6161 
     62void ladish_check_integrity(void); 
     63 
    6264#endif /* #ifndef COMMON_H__CFDC869A_31AE_4FA3_B2D3_DACA8488CA55__INCLUDED */ 
  • daemon/main.c

    rd4946ef rdf4def7  
    383383    loader_run(); 
    384384    ladish_studio_run(); 
     385    ladish_check_integrity(); 
    385386  } 
    386387 
  • daemon/room_save.c

    r5bb20eda rdf4def7  
    5454  log_info("Saving project '%s' in room '%s' to '%s'", room_ptr->project_name, room_ptr->name, room_ptr->project_dir); 
    5555 
     56  ladish_check_integrity(); 
     57 
    5658  time(&timestamp); 
    5759  ctime_r(&timestamp, timestamp_str); 
  • daemon/save.c

    r0a6d730 rdf4def7  
    673673  struct ladish_write_context context; 
    674674 
     675  ladish_check_integrity(); 
     676 
    675677  context.fd = fd; 
    676678  context.indent = indent + 1; 
     
    735737{ 
    736738  struct ladish_write_context context; 
     739 
     740  ladish_check_integrity(); 
    737741 
    738742  context.fd = fd; 
     
    940944  struct ladish_write_jack_context context; 
    941945 
     946  ladish_check_integrity(); 
     947 
    942948  if (!ladish_write_indented_string(fd, indent, "<clients>\n")) 
    943949  { 
  • wscript

    r54aebc4 rdf4def7  
    365365        'recent_store.c', 
    366366        'recent_projects.c', 
     367        'check_integrity.c', 
    367368        ]: 
    368369        daemon.source.append(os.path.join("daemon", source))