dosfstools  4.2
About: dosfstools are utilities to create, check and label (MS-DOS) FAT filesystems.
  Fossies Dox: dosfstools-4.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

io.h File Reference
#include <fcntl.h>
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void fs_open (const char *path, int rw)
void fs_read (off_t pos, int size, void *data)
int fs_test (off_t pos, int size)
void fs_write (off_t pos, int size, void *data)
int fs_close (int write)
int fs_changed (void)

Function Documentation

◆ fs_changed()

int fs_changed ( void  )

Definition at line 183 of file io.c.

References changes, and did_change.

Referenced by main().

◆ fs_close()

int fs_close ( int  write)

Definition at line 163 of file io.c.

References changes, _change::data, did_change, fd, fs_flush(), _change::next, and pdie().

Referenced by main().

◆ fs_open()

void fs_open ( const char *  path,
int  rw 

Definition at line 59 of file io.c.

References changes, did_change, fd, last, and rw.

Referenced by handle_label(), handle_volid(), and main().

◆ fs_read()

void fs_read ( off_t  pos,
int  size,
void *  data 

Read data from the partition, accounting for any pending updates that are queued for writing.

[in]posByte offset, relative to the beginning of the partition, at which to read
[in]sizeNumber of bytes to read
[out]dataWhere to put the data read

Definition at line 78 of file io.c.

References changes, _change::data, die(), fd, min(), _change::next, pdie(), _change::pos, and _change::size.

Referenced by add_file(), alloc_rootdir_entry(), check_backup_boot(), check_dirty_bits(), find_volume_de(), fix_first_cluster(), read_boot(), read_fat(), read_fsinfo(), scan_dir(), scan_free_entry(), and write_boot_label_or_serial().

◆ fs_test()

int fs_test ( off_t  pos,
int  size 

Definition at line 101 of file io.c.

References alloc(), fd, pdie(), _change::pos, and _change::size.

Referenced by fix_bad(), read_boot(), and test_file().

◆ fs_write()