libparted 3.6
Loading...
Searching...
No Matches
context.h
Go to the documentation of this file.
1/*
2 libparted
3 Copyright (C) 1999-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 PED_FAT_CONTEXT_H_INCLUDED
21#define PED_FAT_CONTEXT_H_INCLUDED
22
23#include "count.h"
24
28};
30
34
35 PedSector frag_sectors; /* should equal old_fs and
36 new_fs's frag_sectors */
37
40
44
46
48
50};
52
55
56extern void fat_op_context_destroy (FatOpContext* ctx);
57
59 FatFragment frag);
61 FatCluster clst);
62
64 FatFragment frag);
66 FatCluster clst);
67
69
70#endif /* PED_FAT_CONTEXT_H_INCLUDED */
_FatDirection
Definition: context.h:25
@ FAT_DIR_FORWARD
Definition: context.h:26
@ FAT_DIR_BACKWARD
Definition: context.h:27
FatCluster fat_op_context_map_static_cluster(const FatOpContext *ctx, FatCluster clst)
Definition: context.c:151
FatFragment fat_op_context_map_fragment(const FatOpContext *ctx, FatFragment frag)
Definition: context.c:164
int fat_op_context_create_initial_fat(FatOpContext *ctx)
Definition: context.c:198
enum _FatDirection FatDirection
Definition: context.h:29
FatOpContext * fat_op_context_new(PedFileSystem *new_fs, PedFileSystem *old_fs)
Definition: context.c:76
FatCluster fat_op_context_map_cluster(const FatOpContext *ctx, FatCluster clst)
Definition: context.c:170
void fat_op_context_destroy(FatOpContext *ctx)
Definition: context.c:120
FatFragment fat_op_context_map_static_fragment(const FatOpContext *ctx, FatFragment frag)
Definition: context.c:128
int32_t FatFragment
Definition: fat.h:42
uint32_t FatCluster
Definition: fat.h:41
long long PedSector
We can address 2^63 sectors.
Definition: device.h:31
Definition: context.h:31
PedFileSystem * old_fs
Definition: context.h:32
FatFragment buffer_offset
Definition: context.h:41
FatCluster new_root_dir[32]
Definition: context.h:49
FatFragment start_move_delta
Definition: context.h:39
FatDirection start_move_dir
Definition: context.h:38
FatFragment buffer_frags
Definition: context.h:42
PedFileSystem * new_fs
Definition: context.h:33
FatFragment frags_duped
Definition: context.h:45
FatFragment * remap
Definition: context.h:47
PedSector frag_sectors
Definition: context.h:35
FatFragment * buffer_map
Definition: context.h:43
Structure describing file system.
Definition: filesys.h:68