libparted 3.6
Loading...
Searching...
No Matches
filesys.in.h
Go to the documentation of this file.
1/*
2 libparted - a library for manipulating disk partitions
3 Copyright (C) 1999-2001, 2006-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
27#ifndef PED_FILESYS_H_INCLUDED
28#define PED_FILESYS_H_INCLUDED
29
34
35#include <parted/geom.h>
36#include <parted/constraint.h>
37#include <parted/timer.h>
38
39struct _PedFileSystemOps {
40 PedGeometry* (*probe) (PedGeometry* geom);
41};
42
46struct _PedFileSystemType {
48 const char* const name;
49 PedFileSystemOps* const ops;
50};
51
60 const char* alias;
61 int deprecated;
62};
63
64
68struct _PedFileSystem {
71 int checked;
74 void* type_specific;
75
76};
77
80
82 const char* alias, int deprecated);
84 const char* alias);
85
89 _GL_ATTRIBUTE_PURE;
90
93 _GL_ATTRIBUTE_PURE;
94
97 const PedFileSystemType* fs_type,
98 PedGeometry* geom);
99
103 PedTimer *timer);
105
106#endif /* PED_FILESYS_H_INCLUDED */
107
uint8_t type
Definition: dos.c:2
void ped_file_system_alias_unregister(PedFileSystemType *type, const char *alias)
Definition: filesys.c:98
PedFileSystemType * ped_file_system_type_get_next(const PedFileSystemType *fs_type)
Get the next PedFileSystemType after fs_type.
Definition: filesys.c:162
PedFileSystem * ped_file_system_open(PedGeometry *geom)
This function opens the file system stored on geom, if it can find one.
Definition: filesys.c:142
PedConstraint * ped_file_system_get_resize_constraint(const PedFileSystem *fs)
Return a constraint that represents all of the possible ways the file system fs can be resized with p...
Definition: filesys.c:310
PedFileSystemType * ped_file_system_type_get(const char *name)
Get a PedFileSystemType by its name.
Definition: filesys.c:127
void ped_file_system_type_register(PedFileSystemType *type)
Definition: filesys.c:48
void ped_file_system_alias_register(PedFileSystemType *type, const char *alias, int deprecated)
Definition: filesys.c:78
int ped_file_system_close(PedFileSystem *fs)
Close file system fs.
Definition: filesys.c:197
PedGeometry * ped_file_system_probe_specific(const PedFileSystemType *fs_type, PedGeometry *geom)
Attempt to find a file system and return the region it occupies.
Definition: filesys.c:193
int ped_file_system_resize(PedFileSystem *fs, PedGeometry *geom, PedTimer *timer)
Resize fs to new geometry geom.
Definition: filesys.c:277
PedFileSystemAlias * ped_file_system_alias_get_next(const PedFileSystemAlias *fs_alias)
Get the next PedFileSystemAlias after fs_alias.
Definition: filesys.c:176
PedFileSystemType * ped_file_system_probe(PedGeometry *geom)
Attempt to detect a file system in region geom.
Definition: filesys.c:258
void ped_file_system_type_unregister(PedFileSystemType *type)
Definition: filesys.c:59
char name[16]
Definition: pc98.c:13
Definition: constraint.h:29
Structure describing a file system alias.
Definition: filesys.h:57
PedFileSystemType * fs_type
Definition: filesys.h:59
int deprecated
Definition: filesys.h:61
PedFileSystemAlias * next
Definition: filesys.h:58
const char * alias
Definition: filesys.h:60
Definition: filesys.h:39
Structure describing type of file system.
Definition: filesys.h:46
PedFileSystemOps *const ops
Definition: filesys.h:49
PedFileSystemType * next
Definition: filesys.h:47
const char *const name
name of the file system type
Definition: filesys.h:48
Structure describing file system.
Definition: filesys.h:68
void * type_specific
Definition: filesys.h:74
int checked
1 if the file system has been checked.
Definition: filesys.h:71
PedGeometry * geom
where the file system actually is
Definition: filesys.h:70
PedFileSystemType * type
the file system type
Definition: filesys.h:69
Geometry of the partition.
Definition: geom.h:35
Definition: timer.h:39