]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - disk-utils/fdisk.h
fdisk: add 'T' command to discard sectors
[thirdparty/util-linux.git] / disk-utils / fdisk.h
index f66404d04c2fc979b5a39f76b858aebaea4d250a..72d36531f8cd47b061b580e1f57bcf08efdb2a3e 100644 (file)
@@ -1,3 +1,13 @@
+/*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Copyright (C) 2014-2023 Karel Zak <kzak@redhat.com>
+ */
 #ifndef UTIL_LINUX_FDISK_H
 #define UTIL_LINUX_FDISK_H
 /*
 #define FDISKPROG_DEBUG_ASK    (1 << 5)
 #define FDISKPROG_DEBUG_ALL    0xFFFF
 
+extern int pwipemode;
+extern struct fdisk_table *original_layout;
+extern int device_is_used;
+extern int is_interactive;
+
 UL_DEBUG_DECLARE_MASK(fdisk);
 #define DBG(m, x)       __UL_DBG(fdisk, FDISKPROG_DEBUG_, m, x)
 #define ON_DBG(m, x)    __UL_DBG_CALL(fdisk, FDISKPROG_DEBUG_, m, x)
 
-extern int get_user_reply(struct fdisk_context *cxt,
-                         const char *prompt,
+extern int get_user_reply(const char *prompt,
                          char *buf, size_t bufsz);
 extern int process_fdisk_menu(struct fdisk_context **cxt);
 
@@ -47,4 +61,10 @@ extern void change_partition_type(struct fdisk_context *cxt);
 
 extern void toggle_dos_compatibility_flag(struct fdisk_context *cxt);
 
+extern void follow_wipe_mode(struct fdisk_context *cxt);
+
+extern void resize_partition(struct fdisk_context *cxt);
+
+extern void discard_sectors(struct fdisk_context *cxt);
+
 #endif /* UTIL_LINUX_FDISK_H */