Пример #1
0
void type_dir___writedata (char *command_line)


{
	low_write (file_info.buffer,file_system_info.block_size,file_info.global_block_offset);
	return;
}
Пример #2
0
void type_dir___writedata (char *command_line)

/*

We need to override this since the data is not in type_data. Instead, we have to write the buffer which corresponds
to the current block.

*/

{
	low_write (file_info.buffer,file_system_info.block_size,file_info.global_block_offset);
	return;
}
Пример #3
0
int write_type_data (void)

{
	if (device_handle==NULL) {
		wprintw (command_win,"Error - No device opened\n");
		refresh_command_win ();
		return (0);		
	}

	if (device_offset==-1) {
		wprintw (command_win,"Error - No offset set\n");
		refresh_command_win ();
		return (0);
	}
	
	if (low_write (type_data.u.buffer,file_system_info.block_size,device_offset)==0)
		return (0);
		
	return (1);
}