]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Wed, 18 Sep 2013 12:50:54 +0000 (14:50 +0200)]
libfdisk: fix cylinders and sector buffer usage
- sector buffer has to be correctly deallocated
- round to cylinders when use cylinder units in dos driver
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Sep 2013 10:50:35 +0000 (12:50 +0200)]
libfdisk: fix sectorbuffer usage in dos driver
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Sep 2013 13:58:09 +0000 (15:58 +0200)]
fdisk: fix 'r' in BSD menu
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Sep 2013 13:14:51 +0000 (15:14 +0200)]
libfdisk: update test_ranges() code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Sep 2013 13:13:15 +0000 (15:13 +0200)]
fdisk: remove unnecessary test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Sep 2013 12:43:30 +0000 (14:43 +0200)]
fdisk: bloody revolution in the man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Sep 2013 11:17:58 +0000 (13:17 +0200)]
libfdisk: use fdisk_warnx() in fdisk_ask_partnum()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Sep 2013 10:22:55 +0000 (12:22 +0200)]
fdisk: separate disks by \n in -l output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Sep 2013 07:46:24 +0000 (09:46 +0200)]
sfdisk: fix y/n mismatch
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Sep 2013 07:42:53 +0000 (09:42 +0200)]
fdisk: add debug message, use colors for -l
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Sep 2013 15:04:57 +0000 (17:04 +0200)]
fdisk: fix -l
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Sep 2013 14:48:44 +0000 (16:48 +0200)]
libfdisk: remove "gpt support is new" warning
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Sep 2013 14:26:52 +0000 (16:26 +0200)]
fdisk: remove unused code, coding style changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 9 Sep 2013 09:24:24 +0000 (11:24 +0200)]
libfdisk: make default geom usage more robust
.. to avoid SIGFPE
References: https://bugzilla.redhat.com/show_bug.cgi?id=
1005566
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Sep 2013 15:36:35 +0000 (17:36 +0200)]
fdisk: rewrite dump first sector add dump disklabel command
Expert command (m for help): D
PMBR: offset = 0, size = 512 bytes.
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
000001c0 01 00 ee fe ff ff 01 00 00 00 ff 9f 0f 00 00 00
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
GPT Header: offset = 512, size = 512 bytes.
00000200 45 46 49 20 50 41 52 54 00 00 01 00 00 02 00 00
00000210 ae 36 81 28 00 00 00 00 01 00 00 00 00 00 00 00
00000220 ff 9f 0f 00 00 00 00 00 00 08 00 00 00 00 00 00
00000230 de 9f 0f 00 00 00 00 00 e0 9d d8 d5 d6 da 1a 44
00000240 98 57 e4 11 64 88 ce 3b 02 00 00 00 00 00 00 00
00000250 80 00 00 00 80 00 00 00 4b c7 c9 54 00 00 00 00
00000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
GPT Entries: offset = 1024, size = 16384 bytes.
00000400 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4
00000410 bc ae 48 5e 22 e5 ca 4c aa 98 14 6d c9 1d 72 f4
00000420 00 08 00 00 00 00 00 00 de 9f 0f 00 00 00 00 00
00000430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Sep 2013 15:36:04 +0000 (17:36 +0200)]
libfdisk: (gpt) support for disklabel dump
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Sep 2013 15:35:15 +0000 (17:35 +0200)]
libfdisk: add fdisk_locate_disklabel()
The function returns offset and size of disklabel elements.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Sep 2013 11:43:26 +0000 (13:43 +0200)]
libfdisk: (gpt) use generic 'created partition' message
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Sep 2013 11:29:58 +0000 (13:29 +0200)]
libfdisk: use fdisk_colon() and fdisk_sinfo()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Sep 2013 11:28:02 +0000 (13:28 +0200)]
libfdisk: extend fdisk_info() functionality
- add per message flags
- add fdisk_colon() for "foo bar: bla bla..." messages
- add fdisk_sinfo() as smart version of fdisk_info()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 3 Sep 2013 10:18:33 +0000 (12:18 +0200)]
fdisk: use fdisk_{info,warn} on more places
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 2 Sep 2013 11:15:09 +0000 (13:15 +0200)]
libfdisk: (gpt) more robust PMBR partition size check
According UEFI specification at least one (does not mean that the
first) partition is 0xFF, it makes sense to check the size of the
partition rather than check the first partition.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 2 Sep 2013 08:54:30 +0000 (10:54 +0200)]
fdisk: add -L to colorize output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Aug 2013 14:12:16 +0000 (16:12 +0200)]
fdisk: improve info output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Aug 2013 13:47:50 +0000 (15:47 +0200)]
fdisk: use fdisk_info() to print geometry
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Aug 2013 13:20:01 +0000 (15:20 +0200)]
fdisk: -l refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Aug 2013 11:34:16 +0000 (13:34 +0200)]
fdisk: mark -s option as deprecated
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Aug 2013 11:26:24 +0000 (13:26 +0200)]
fdisk: main() refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Aug 2013 11:06:15 +0000 (13:06 +0200)]
libfdisk: add fdisk_has_user_device_properties()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Aug 2013 08:46:37 +0000 (10:46 +0200)]
fdisk: cleanup header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Jul 2013 10:35:16 +0000 (12:35 +0200)]
libfdisk: provide more details about GPT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Jul 2013 09:57:44 +0000 (11:57 +0200)]
libfdisk: move sync() and reread PT code from fdisk to libfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Jul 2013 09:38:05 +0000 (11:38 +0200)]
fdisk: cleanup write table code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Jul 2013 09:31:12 +0000 (11:31 +0200)]
fdisk: move remaining actions to menu callbacks
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 12 Jul 2013 08:44:35 +0000 (10:44 +0200)]
fdisk: move expect actions to menu callback
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Jul 2013 16:03:54 +0000 (18:03 +0200)]
fdisk: consolidate code in fdisk.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Jul 2013 15:38:13 +0000 (17:38 +0200)]
libfdisk: cleanup SGI functions names
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Jul 2013 15:08:45 +0000 (17:08 +0200)]
fdisk: cleanup sgi menu callbackswq
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Jul 2013 14:56:00 +0000 (16:56 +0200)]
fdisk: move "create label" actions to menu callback
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 15:39:22 +0000 (17:39 +0200)]
fdisk: remove common.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 15:33:09 +0000 (17:33 +0200)]
libfdisk: explicitly add COPYING file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 15:30:08 +0000 (17:30 +0200)]
libfdisk: add bsd driver
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 15:10:58 +0000 (17:10 +0200)]
fdisk: (bsd) final code clean up
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 15:08:37 +0000 (17:08 +0200)]
fdisk: (bsd) remove xbsd_ prefix
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 15:07:40 +0000 (17:07 +0200)]
fdisk: (bsd) minor code clean up
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 15:00:11 +0000 (17:00 +0200)]
fdisk: (bsd) rewrite list disklabel function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 13:35:27 +0000 (15:35 +0200)]
fdisk: (bsd) coding style, remove unnecessary #ifdef
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 13:30:49 +0000 (15:30 +0200)]
fdisk: (bsd) fix add/link partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 13:12:10 +0000 (15:12 +0200)]
fdisk: (bsd) remove dead code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 12:59:49 +0000 (14:59 +0200)]
fdisk: (bsd) *OSF --> *BSD
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 12:54:25 +0000 (14:54 +0200)]
fdisk: (bsd) implement regular bsd menu callback
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 12:31:02 +0000 (14:31 +0200)]
fdisk: (bsd) remove generic actions from bsd_command_prompt()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 12:17:58 +0000 (14:17 +0200)]
fdisk: allow to exchange context pointer in menu callbacks
... to make it possible to switch to nested contexts (nested partition
tables).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 11:12:05 +0000 (13:12 +0200)]
fdisk: (bsd) remove printf() from the driver code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 11:01:24 +0000 (13:01 +0200)]
fdisk: (bsd) move bsdbuffer to fdisk_bsd_label struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 Jul 2013 10:24:53 +0000 (12:24 +0200)]
fdisk: (bsd) move global label variables to fdisk_bsd_label struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 28 Jun 2013 09:37:54 +0000 (11:37 +0200)]
fdisk: (bsd) write/read PT code cleanup
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 28 Jun 2013 08:16:06 +0000 (10:16 +0200)]
libblkid: fix kboff usage in BSD prober
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Jun 2013 12:21:43 +0000 (14:21 +0200)]
fdisk: (bsd) add bsd_get_partition_status()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Jun 2013 12:21:07 +0000 (14:21 +0200)]
fdisk: ask for partition in chars
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Jun 2013 12:18:57 +0000 (14:18 +0200)]
libfdisk: allow to address partition by chars
For example BSD uses letters rather tahn numbers to address partition,
the fist partition is 'a', last partition is 'p'.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Jun 2013 09:26:00 +0000 (11:26 +0200)]
fdisk: improve menus to make it more usable for BSD label
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Jun 2013 08:54:19 +0000 (10:54 +0200)]
fdisk: (bsd) cleanup driver initialization
- assume DOS partition only for nested BSD (cxt->parent is set)
- don't create BSD label in label probe function, require
fdisk_create_disklabel() call
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Jun 2013 08:52:34 +0000 (10:52 +0200)]
libfdisk: improve nested context initialization
- all label prober() function in fdisk_new_nested_context()
- don't reset device properties for nested contexts
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Jun 2013 11:29:50 +0000 (13:29 +0200)]
libfdisk: (dos) cosmetic changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Jun 2013 11:18:50 +0000 (13:18 +0200)]
fdisk: (bsd) clean up header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Jun 2013 09:46:09 +0000 (11:46 +0200)]
fdisk: (bsd) use macros from pt-mbr.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Jun 2013 09:32:19 +0000 (11:32 +0200)]
fdisk: (bsd) use pt-bsd.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Jun 2013 09:32:06 +0000 (11:32 +0200)]
libblkid: move bsd definitions to pt-bsd.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Jun 2013 09:11:59 +0000 (11:11 +0200)]
fdisk: (bsd) clean up BSD_LABEL* macros
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Jun 2013 08:21:31 +0000 (10:21 +0200)]
libfdisk: move mbr code to the library
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Jun 2013 06:54:01 +0000 (08:54 +0200)]
fdisk: (dos) use libfdisk to ask for partition type
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 14:57:56 +0000 (16:57 +0200)]
fdisk: cleanup warning messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 14:40:01 +0000 (16:40 +0200)]
fdisk: remove nowarn global variable
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 14:22:51 +0000 (16:22 +0200)]
fdisk: (dos) cleanup public function names
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 14:14:23 +0000 (16:14 +0200)]
fdisk: (dos) remove unnecessary header file stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 13:58:36 +0000 (15:58 +0200)]
fdisk: cleanup header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 13:55:02 +0000 (15:55 +0200)]
fdisk: (dos) add dos menu callback
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 13:31:21 +0000 (15:31 +0200)]
libfdisk: add generic function to set disklabel ID
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 12:40:34 +0000 (14:40 +0200)]
libfdisk: add generic function to get disklabel ID
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 12:08:02 +0000 (14:08 +0200)]
fdisk: (gpt) enlarge columns in list output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 11:15:09 +0000 (13:15 +0200)]
fdisk: (dos) remove remaining printf() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Jun 2013 11:06:55 +0000 (13:06 +0200)]
fdisk: (dos) clean up list PT functions
- use tt.c to list partitions
- list extended partitions in expert mode
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 21 Jun 2013 11:11:59 +0000 (13:11 +0200)]
fdisk: (dos) fix possible mem-leaks
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 21 Jun 2013 10:45:30 +0000 (12:45 +0200)]
fdisk: (dos) move macro is_dos_compatible()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 21 Jun 2013 10:44:03 +0000 (12:44 +0200)]
fdisk: (dos) remove remaining global variables
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 21 Jun 2013 10:37:14 +0000 (12:37 +0200)]
fdisk: (dos) remove global variables for extended partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 20 Jun 2013 09:36:25 +0000 (11:36 +0200)]
fdisk: (dos) don't check for CHS in move-begin command
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 20 Jun 2013 09:30:39 +0000 (11:30 +0200)]
fdisk: (dos) remove global ptes[]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 19 Jun 2013 13:42:47 +0000 (15:42 +0200)]
fdisk: add mbr_get_partition()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 19 Jun 2013 12:42:45 +0000 (14:42 +0200)]
fdisk: (dos) remove inline function from header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 19 Jun 2013 12:39:40 +0000 (14:39 +0200)]
fdisk: (dos) remove unnecessary function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 19 Jun 2013 12:36:59 +0000 (14:36 +0200)]
fdisk: (dos) move pte specific function to dos.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 19 Jun 2013 12:32:48 +0000 (14:32 +0200)]
fdisk: use functions from pt-mbr.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 18 Jun 2013 13:27:24 +0000 (15:27 +0200)]
fdisk: (dos) use pt-mbr.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 18 Jun 2013 13:22:31 +0000 (15:22 +0200)]
fdisk: rename CHS dos_partition struct members
... to make the code more compatible with include/pt-mbr.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 18 Jun 2013 13:11:57 +0000 (15:11 +0200)]
libblkid: rename sys_type to sys_ind
This makes struct dos_partition more compatible with the current fdisk
code.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 18 Jun 2013 13:06:48 +0000 (15:06 +0200)]
include/pt-mbr: add functio to store le
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 18 Jun 2013 13:03:26 +0000 (15:03 +0200)]
libblkid: move MBR definitions to include/pt-mbr.h
Karel Zak [Tue, 18 Jun 2013 12:52:25 +0000 (14:52 +0200)]
fdisk: (dos) rename struct partition to dos_partition
Signed-off-by: Karel Zak <kzak@redhat.com>