Lines Matching refs:newSnapshotFD
337 back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD, in back_up_files() argument
443 err = write_snapshot_file(newSnapshotFD, newSnapshot); in back_up_files()
1359 int newSnapshotFD; in backup_helper_test_files() local
1394 newSnapshotFD = creat(SCRATCH_DIR "before.snap", 0666); in backup_helper_test_files()
1395 if (newSnapshotFD == -1) { in backup_helper_test_files()
1403 err = back_up_files(-1, &dataStream, newSnapshotFD, files_before, keys_before, 5); in backup_helper_test_files()
1410 close(newSnapshotFD); in backup_helper_test_files()
1463 newSnapshotFD = creat(SCRATCH_DIR "after.snap", 0666); in backup_helper_test_files()
1464 if (newSnapshotFD == -1) { in backup_helper_test_files()
1472 err = back_up_files(oldSnapshotFD, &dataStream, newSnapshotFD, files_after, keys_after, 6); in backup_helper_test_files()
1480 close(newSnapshotFD); in backup_helper_test_files()
1490 int newSnapshotFD; in backup_helper_test_null_base() local
1512 newSnapshotFD = creat(SCRATCH_DIR "null_base.snap", 0666); in backup_helper_test_null_base()
1513 if (newSnapshotFD == -1) { in backup_helper_test_null_base()
1521 err = back_up_files(-1, &dataStream, newSnapshotFD, files, keys, 1); in backup_helper_test_null_base()
1528 close(newSnapshotFD); in backup_helper_test_null_base()
1538 int newSnapshotFD; in backup_helper_test_missing_file() local
1564 newSnapshotFD = creat(SCRATCH_DIR "null_base.snap", 0666); in backup_helper_test_missing_file()
1565 if (newSnapshotFD == -1) { in backup_helper_test_missing_file()
1573 err = back_up_files(-1, &dataStream, newSnapshotFD, files, keys, 1); in backup_helper_test_missing_file()
1580 close(newSnapshotFD); in backup_helper_test_missing_file()