libparted 3.6
Loading...
Searching...
No Matches
fatio.h
Go to the documentation of this file.
1/*
2 libparted
3 Copyright (C) 1998-2000, 2007, 2009-2014, 2019-2023 Free Software
4 Foundation, Inc.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef FATIO_H_INCLUDED
21#define FATIO_H_INCLUDED
22
23#include "fat.h"
24
25extern int fat_read_fragments (PedFileSystem* fs, char* buf, FatFragment frag,
26 FatFragment count);
27extern int fat_write_fragments (PedFileSystem* fs, char* buf, FatFragment frag,
28 FatFragment count);
29extern int fat_write_sync_fragments (PedFileSystem* fs, char* buf,
30 FatFragment frag, FatFragment count);
31
32extern int fat_read_fragment (PedFileSystem* fs, char* buf, FatFragment frag);
33extern int fat_write_fragment (PedFileSystem* fs, char* buf, FatFragment frag);
34extern int fat_write_sync_fragment (PedFileSystem* fs, char* buf,
35 FatFragment frag);
36
37extern int fat_read_clusters (PedFileSystem* fs, char* buf, FatCluster cluster,
38 FatCluster count);
39extern int fat_write_clusters (PedFileSystem* fs, char* buf, FatCluster cluster,
40 FatCluster count);
41extern int fat_write_sync_clusters (PedFileSystem* fs, char* buf,
42 FatCluster cluster, FatCluster count);
43
44extern int fat_read_cluster (PedFileSystem* fs, char *buf, FatCluster cluster);
45extern int fat_write_cluster (PedFileSystem* fs, char *buf, FatCluster cluster);
46extern int fat_write_sync_cluster (PedFileSystem* fs, char *buf,
47 FatCluster cluster);
48
49#endif /* FATIO_H_INCLUDED */
int32_t FatFragment
Definition: fat.h:42
uint32_t FatCluster
Definition: fat.h:41
int fat_read_fragment(PedFileSystem *fs, char *buf, FatFragment frag)
Definition: fatio.c:48
int fat_write_sync_fragment(PedFileSystem *fs, char *buf, FatFragment frag)
Definition: fatio.c:84
int fat_write_cluster(PedFileSystem *fs, char *buf, FatCluster cluster)
Definition: fatio.c:124
int fat_write_clusters(PedFileSystem *fs, char *buf, FatCluster cluster, FatCluster count)
Definition: fatio.c:110
int fat_write_sync_cluster(PedFileSystem *fs, char *buf, FatCluster cluster)
Definition: fatio.c:141
int fat_read_clusters(PedFileSystem *fs, char *buf, FatCluster cluster, FatCluster count)
Definition: fatio.c:90
int fat_write_fragments(PedFileSystem *fs, char *buf, FatFragment frag, FatFragment count)
Definition: fatio.c:54
int fat_write_sync_fragments(PedFileSystem *fs, char *buf, FatFragment frag, FatFragment count)
Definition: fatio.c:73
int fat_read_cluster(PedFileSystem *fs, char *buf, FatCluster cluster)
Definition: fatio.c:104
int fat_write_fragment(PedFileSystem *fs, char *buf, FatFragment frag)
Definition: fatio.c:67
int fat_write_sync_clusters(PedFileSystem *fs, char *buf, FatCluster cluster, FatCluster count)
Definition: fatio.c:130
int fat_read_fragments(PedFileSystem *fs, char *buf, FatFragment frag, FatFragment count)
Definition: fatio.c:35
Structure describing file system.
Definition: filesys.h:68