parted: fix building issues on Android 6.0]]>
parted: fix building issues on Android 5.0 Now bionic is more complete. Remove duplicate definitions.]]>
parted: install the executable to /system/bin]]>
parted: Integrate into Android build system Added Android.mk for parted and support libs. Most porting magic done in handcrafted config.h; however a few hacks necessary in linux.c due to missing syscall.h in BIONIC. All the stuff here is either new Makefiles, a hand-created config.h, and various items generated by running automake/autoconf; for example most of the headers here generated from .h.in files already in the build. Change-Id: I4595fdffbbd6f90bc23fe56f8aafb78524db1f22 Signed-off-by: Andrew Boie]]>
parted: Add gnulib This is present in the parted release tarball but not the git repository and is required to run parted. Its use is approved in the IP plan request for parted. Android.mk added to build with Android. Source: http://ftp.gnu.org/gnu/parted/parted-3.1.tar.xz Signature: -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABCAAGBQJPUQeUAAoJEH/Z/MsAC+7uwS0P/iplXKYgLCZ7PXhAy2QWSEgC yEDNUN2hdK5RqXPzmyzTEObflRRkVQV8nWLBg9r5jCXKBKl0OEiBDSd9jwbdUSwI 6ueSsbrLLpwnQkqBsh7F9zwIJ2xDsPYmhOqxTbXpITn8fv9MAMPFm0+pGYgIPC4o JITcP+8ufjjQpdecv/EmiM+3rrcMxgVi7/F158uj+ih4mxl7L4APG2hIib+Xdd8x lqzVogAQoW6n5uoQo/F2zcGv/NPMH7LqwH435VEzc3FTEKQ4ArZ6o/hYasMALW2F iXyjxQKDPBmiXOkKwmhRCBQtFVk1rpy6JSw07ljL2sZlScnKvq3AA9ufomdlgtIR vBDRjkJeB1W12sk75eQRiP1RS3+TT1rpo9kvE4a1iZkMWrHPvaCDKM48MdN/Nvb6 nLafTM2FsHPEZ9HJCmEY4LRH0zmTJQy8KW5XSHFJgEhk22Jk5S951uTkM1sEbvHL RRZHIGs/RZwetIUvFFEE87hZJ6OWO0XVStUnA+ik255XgN8Ik5o4K50hI3qU0/e3 3faMq6MpBYfQn5z1SO99/TE70hjyi8Q5E+SpuF3qn4cfhYi3zn8e6OaGNLVOXcWU 5/9WI5v9a5br/74RmIElsieetnMvlpbe9feAvsziQooNPe584qlQq7SXVegcXGNu MUrTB6SjxheBtLqH0PlX =0NA7 -----END PGP SIGNATURE----- Change-Id: Ia4570a65fbfcdb4a9ef44388b756996bc736fe18 Signed-off-by: Andrew Boie]]>
remove .gitignore We actually want to check in changes to some of the files here. Change-Id: I9ac620ce306c2ff2e2ba3af8f18576193f43135d Signed-off-by: Andrew Boie]]>
version 3.1 * NEWS: Record release date.]]>
maint: bump library version to 2.0.0 * libparted/Makefile.am (CURRENT): Increment, since I removed ped_realloc.]]>
maint: update README-release to reflect we now have two libraries * README-release: Two sets of library version triples to adjust. * bootstrap: Tiny fix from gnulib.]]>
lib-fs-resize: remove unused probe-related code * libparted/fs/r/hfs/probe.c: Remove probe-related functions. There are not used. * libparted/fs/r/fat/fat.c: Likewise. * libparted/fs/r/hfs/probe.h: ...and declarations.]]>
libparted: avoid unwarranted failed assertion during mklabel This could happen when running "parted -s $dev mklabel $type" for nearly any $type, assuming the underlying disk's sector size is larger than 512 bytes. This particular failure was noticed by running tests/t9050-partition-table-types.sh with a simulated sector size of 1024, as is done as part of a top-level "make check", but so far, this failure has shown up only on RHEL-6.2. That test attempts to exercise an ugly part of partition table creation: during creation, parted checks for an existing partition table by iterating through its list of known types and attempting to read the disk, looking for a preexisting table. Knowing this, the test takes all pairs of partition table types, and first creates a type of type A, and then creates on top of that (erasing the original) a table of type B. * libparted/labels/mac.c (_disk_analyse_ghost_size): Remove bogus assertion. If the number of the sector with a matching signature is too large, simply reject it by returning 0. * NEWS (Bug fixes): Mention this.]]>
doc: improve NEWS * NEWS: Expand/adjust wording in two entries.]]>
tests: sanitize PATH; do not discard mkswap output * tests/init.cfg (sanitize_path_): New function, from coreutils. Use it. * tests/t9050-partition-table-types.sh: Do not discard mkswap output and diagnostics. This test would fail (e.g., on OpenSUSE 12.1), when run with PATH not including /sbin. Reported by Bruno Haible.]]>
tests: skip failing use of mkfs.hfs unless using newer, fixed version The old, segfaulting version does not recognize the -v option, while the new one does. Use that to skip the test when it seems that fsck.hfs is broken. * tests/t3000-resize-fs.sh: Skip part of this root-only test when fsck.hfs is the always-segfaulting version.]]>
build,test: update gnulib, bootstrap and init.sh * bootstrap: Update. * tests/init.sh: Update. * gnulib: Update. * doc/po4a.mk: Updating gnulib pulls in newer syntax-check rules, including one that rejects @lower_case@ variables in Makefiles. Fix the sole violation: s/@mandir@/$(mandir)/]]>
build: avoid non-srcdir build failure * libparted/fs/Makefile.am: s!fsresize.sym!$(srcdir)/fsresize.sym!]]>
maint: placate syntax-check wrt tests/fs-resize.c * tests/fs-resize.c (main): Remove unused #includes. Do use set_program_name, to placate syntax-check.]]>
doc: mention HFS+/FAT file system resizing in NEWS * NEWS (New features): Mention it.]]>
tests: test FAT and HFS file system resizing * tests/t3000-resize-fs.sh: New test. * tests/Makefile.am (TESTS): Add it. (check_PROGRAMS): Add fs-resize. (fs_resize_LDADD): Define, so it links with both libraries.]]>
tests: add FS-resize test driver * tests/fs-resize.c: New file, to test FAT/HFS resizing.]]>
lib-fs-resize: use linker script to expose only selected functions * libparted/fs/Makefile.am (libparted_fs_resize_la_LDFLAGS): Define. (EXTRA_DIST): Distribute the new file. (libparted_fs_resize_la_DEPENDENCIES): Make the library depend on it. * libparted/fs/fsresize.sym: New file.]]>
maint: remove r/hfs/DOC,HISTORY,TODO; add VERSION for new library]]>
lib-fs-resize: rewrite ped_file_system_clobber Before, it would probe for an existing file system type and then, according to what it found, call the corresponding]]>_clobber function. Now that we have restored only HFS and FAT FS-writing support, only those few types have a corresponding _clobber function. We would obviously fail to clear common types of file systems, and even if we were to restore all previous _clobber functions, none of those were able to handle sector sizes larger than 512. Not worth it. * libparted/fs/r/filesys.c: Include pt-tools.h. (MIN): Define. (ped_file_system_clobber): Rewrite not to use hfs*_clobber or fat_clobber. Instead, simply clear the first three and last two sectors of the specified "device". * libparted/fs/Makefile.am (INCLUDES): Add -I$(top_srcdir)/libparted/labels for new use of a ptt_* function.
lib-fs-resize: add wrappers for open,close,resize,get_resize_constraint * libparted/fs/r/filesys.c: Implement ped_file_system_resize, ped_file_system_open, ped_file_system_close and ped_file_system_get_resize_constraint. * libparted/fs/r/hfs/hfs.c: Give a few functions global scope, so we can use them from the above. * libparted/fs/Makefile.am: Use automake's subdir-objects option. This avoids conflicts with multiple *.o file names (e.g., fat.o), now that two directories provide that name. (AM_CFLAGS): Disable $(WERROR_CFLAGS), for now.]]>
maint: update copyrights in r/]]>
lib-fs-resize: re-add HFS and FAT file-system-related code This just adds the code, without hooking it up yet. * po/POTFILES.in: Add all libparted/fs/r/**.c files.]]>
maint: remove now-unused fat-related functions * libparted/fs/fat/bootsector.c (fat_boot_sector_generate) (fat_boot_sector_write, fat_info_sector_write): Remove functions. (fat_boot_sector_set_boot_code): Likewise. * libparted/fs/fat/bootsector.h: Remove declarations. * libparted/fs/fat/fat.c (fat_set_frag_sectors, fat_free_buffers): Remove function. * libparted/fs/fat/fat.h: Remove declarations.]]>
tests: set PARTED_TEST_NAME, for valgrind * tests/Makefile.am (PARTED_TEST_NAME): Define. * tests/t0211-gpt-rewrite-header.sh: Clarify a comment.]]>
libparted: gpt: avoid heap-read-overrun when rewriting 9-PTE table Now that parted can rewrite a corrupt-or-misaligned 9-PTE table, we have to be careful to allocate space for slightly more data when the byte-count required for a PTE table is smaller than the whole number of sectors would imply. I.e., when the PTE table size is not a multiple of the sector size, there is a fraction of that final sector for which we do not read data, but we do write. Ensure we have space for the buffer we'll write and that it is initialized (to 0's). * libparted/labels/gpt.c (gpt_write): Allocate the right amount of space. Use calloc, not malloc+memset.]]>
maint: adjust the URL that will appear in the generated announcement * cfg.mk (url_dir_list): Use this http://ftp.gnu.org/gnu/$(PACKAGE) for the first link listed in the generated announcement. announce-gen now provides the faster mirror link automatically.]]>