|
libparted 3.6
|
Files | |
| file | filesys.h |
Data Structures | |
| struct | _PedFileSystem |
| Structure describing file system. More... | |
| struct | _PedFileSystemAlias |
| Structure describing a file system alias. More... | |
| struct | _PedFileSystemOps |
| struct | _PedFileSystemType |
| Structure describing type of file system. More... | |
Macros | |
| #define | _(String) |
| #define | _(String) |
| #define | BUFFER_SIZE 4096 /* in sectors */ |
| #define | MIN(a, b) |
| #define | STREQ(a, b) |
Typedefs | |
| typedef int(* | close_fn_t) (PedFileSystem *) |
| typedef PedFileSystem *(* | open_fn_t) (PedGeometry *) |
| typedef struct _PedFileSystem | PedFileSystem |
| typedef struct _PedFileSystem | PedFileSystem |
| typedef struct _PedFileSystemAlias | PedFileSystemAlias |
| typedef struct _PedFileSystemAlias | PedFileSystemAlias |
| typedef const struct _PedFileSystemOps | PedFileSystemOps |
| typedef const struct _PedFileSystemOps | PedFileSystemOps |
| typedef struct _PedFileSystemType | PedFileSystemType |
| typedef struct _PedFileSystemType | PedFileSystemType |
| typedef PedConstraint *(* | resize_constraint_fn_t) (PedFileSystem const *fs) |
| typedef int(* | resize_fn_t) (PedFileSystem *fs, PedGeometry *geom, PedTimer *timer) |
| #define _ | ( | String | ) |
| #define _ | ( | String | ) |
| #define BUFFER_SIZE 4096 /* in sectors */ |
| #define MIN | ( | a, | |
| b ) |
| #define STREQ | ( | a, | |
| b ) |
| typedef int(* close_fn_t) (PedFileSystem *) |
| typedef PedFileSystem *(* open_fn_t) (PedGeometry *) |
| typedef struct _PedFileSystem PedFileSystem |
| typedef struct _PedFileSystem PedFileSystem |
| typedef struct _PedFileSystemAlias PedFileSystemAlias |
| typedef struct _PedFileSystemAlias PedFileSystemAlias |
| typedef const struct _PedFileSystemOps PedFileSystemOps |
| typedef const struct _PedFileSystemOps PedFileSystemOps |
| typedef struct _PedFileSystemType PedFileSystemType |
| typedef struct _PedFileSystemType PedFileSystemType |
| typedef PedConstraint *(* resize_constraint_fn_t) (PedFileSystem const *fs) |
| typedef int(* resize_fn_t) (PedFileSystem *fs, PedGeometry *geom, PedTimer *timer) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Get the next PedFileSystemAlias after fs_alias.
NULL if fs_alias is the last item in the list.
|
extern |
|
extern |
| int ped_file_system_close | ( | PedFileSystem * | fs | ) |
Close file system fs.
1 on success, 0 on failure | 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 ped_file_system_resize().
This takes into account the amount of used space on the filesystem fs and the capabilities of the resize algorithm. Hints:
NULL on failure | PedFileSystem * ped_file_system_open | ( | PedGeometry * | geom | ) |
This function opens the file system stored on geom, if it can find one.
It is often called in the following manner:
| PED_EXCEPTION_ERROR | if file system could not be detected |
| PED_EXCEPTION_ERROR | if the file system is bigger than its volume |
| PED_EXCEPTION_NO_FEATURE | if opening of a file system stored on geom is not implemented |
NULL on failure.
|
extern |
Attempt to detect a file system in region geom.
This function tries to be clever at dealing with ambiguous situations, such as when one file system was not completely erased before a new file system was created on top of it.
NULL on failure
|
extern |
Attempt to find a file system and return the region it occupies.
| fs_type | The file system type to probe for. |
| geom | The region to be searched. |
NULL if fs_type file system wasn't detected | int ped_file_system_resize | ( | PedFileSystem * | fs, |
| PedGeometry * | geom, | ||
| PedTimer * | timer ) |
Resize fs to new geometry geom.
geom should satisfy the ped_file_system_get_resize_constraint(). (This isn't asserted, so it's not a bug not to... just it's likely to fail ;) If timer is non-NULL, it is used as the progress meter.
| PED_EXCEPTION_NO_FEATURE | if resizing of file system fs is not implemented yet |
0 on failure
|
extern |
Get a PedFileSystemType by its name.
NULL if none found.
|
extern |
Get the next PedFileSystemType after fs_type.
NULL if fs_type is the last item in the list.
|
extern |
|
extern |