Home | History | Annotate | Download | only in ext2ed

Lines Matching refs:offset

34 int low_read (unsigned char *buffer,unsigned long length,unsigned long offset)
52 if (offset > file_system_info.file_system_size) { /* Check that the offset is within limits */
53 sprintf (temp,"Seek offset %ld is out of range",offset);
60 if ( (fseek (device_handle,offset,SEEK_SET))==-1) { /* Seek to the required offset */
61 wprintw (command_win,"Error - Failed to seek to offset %ld in device %s\n",offset,device_name);
67 wprintw (command_win,"Error - Failed to read from offset %ld in device %s\n",offset,device_name);
74 int low_write (unsigned char *buffer,unsigned long length,unsigned long offset)
104 if (offset > file_system_info.file_system_size) {
105 sprintf (temp,"Seek offset %ld is out of range",offset);
113 if (!log_changes (buffer,length,offset))
116 if ( (fseek (device_handle,offset,SEEK_SET))==-1) {
117 wprintw (command_win,"Error - Failed to seek to offset %ld in device %s\n",offset,device_name);
123 wprintw (command_win,"Error - Failed to write to offset %ld in device %s\n",offset,device_name);
131 int log_changes (unsigned char *buffer,unsigned long length,unsigned long offset)
156 fprintf (fp,"Offset: %lu\nLength: %lu\n",offset,length);
165 if (!low_read (original,length,offset)) {
204 printf ("Error - No offset set\n");
228 wprintw (command_win,"Error - No offset set\n");