Recent commits on external-parted (git) - Android-x86 - OSDN https://zh.osdn.net/projects/android-x86/scm/git/external-parted/ Android-x86 https://static-cdn.osdn.net/thumb/g/5/887/36x36_0.png /projects/android-x86/ 89f934: parted: fix building issues on Android 6.0 https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/89f9348783818fc25426e7282d6ad96d0ad50baa Chih-Wei Huang Commit: 89f9348783818fc25426e7282d6ad96d0ad50baa
parted: fix building issues on Android 6.0
]]>
64886b: parted: fix building issues on Android 5.0 Now bionic is... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/64886b2cf7b31ad66036859246301ecf700549fa Chih-Wei Huang Commit: 64886b2cf7b31ad66036859246301ecf700549fa
parted: fix building issues on Android 5.0

Now bionic is more complete. Remove duplicate definitions.
]]>
e76640: parted: install the executable to /system/bin https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/e766400b3f19751cc28b8fb945642e13bb03d4ab Chih-Wei Huang Commit: e766400b3f19751cc28b8fb945642e13bb03d4ab
parted: install the executable to /system/bin
]]>
afecc0: parted: Integrate into Android build system Added Androi... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/afecc0c7770c41d8aad1bf5b544b03512a90e7e8 ]]> Andrew Boie Commit: afecc0c7770c41d8aad1bf5b544b03512a90e7e8
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 
]]>
2a2ee7: parted: Add gnulib This is present in the parted release... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/2a2ee733978bd3120658fd3fd140529bae360fbe ]]> Andrew Boie Commit: 2a2ee733978bd3120658fd3fd140529bae360fbe
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 
]]>
750522: remove .gitignore We actually want to check in changes t... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/750522e7106017dea3a83b3407778aba236050af ]]> Andrew Boie Commit: 750522e7106017dea3a83b3407778aba236050af
remove .gitignore

We actually want to check in changes to some of the files here.

Change-Id: I9ac620ce306c2ff2e2ba3af8f18576193f43135d
Signed-off-by: Andrew Boie 
]]>
a0b1ec: version 3.1 * NEWS: Record release date. https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/a0b1ec20e52394a7720f44b4b42dc185e72bb71e Jim Meyering Commit: a0b1ec20e52394a7720f44b4b42dc185e72bb71e
version 3.1

* NEWS: Record release date.
]]>
82327a: maint: bump library version to 2.0.0 * libparted/Makefil... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/82327a394035770c736eaef188b10c3489e4ae99 Jim Meyering Commit: 82327a394035770c736eaef188b10c3489e4ae99
maint: bump library version to 2.0.0

* libparted/Makefile.am (CURRENT): Increment, since I removed
ped_realloc.
]]>
ab9b08: maint: update README-release to reflect we now have two l... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/ab9b086119d164ad70b8f8c767f2c758b2aa7ed1 Jim Meyering Commit: ab9b086119d164ad70b8f8c767f2c758b2aa7ed1
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.
]]>
4e6ad5: lib-fs-resize: remove unused probe-related code * libpar... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/4e6ad5461660c1dc3d97a0d76e7dabea0aebd26f Jim Meyering Commit: 4e6ad5461660c1dc3d97a0d76e7dabea0aebd26f
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.
]]>
4559c5: libparted: avoid unwarranted failed assertion during mkla... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/4559c510f02a691d90329fd646e8eefe2e73e6d2 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. ]]> Jim Meyering Commit: 4559c510f02a691d90329fd646e8eefe2e73e6d2
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.
]]>
187e7c: doc: improve NEWS * NEWS: Expand/adjust wording in two e... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/187e7cba48094505f00532698dfb04ab40575231 Jim Meyering Commit: 187e7cba48094505f00532698dfb04ab40575231
doc: improve NEWS

* NEWS: Expand/adjust wording in two entries.
]]>
c92748: tests: sanitize PATH; do not discard mkswap output * tes... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/c92748d1bedc53fe0a49ae1eead78315c99e1ec3 Jim Meyering Commit: c92748d1bedc53fe0a49ae1eead78315c99e1ec3
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.
]]>
1f8079: tests: skip failing use of mkfs.hfs unless using newer, f... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/1f8079c668638f939eac1fe6a4a6fbedab0ac773 Jim Meyering Commit: 1f8079c668638f939eac1fe6a4a6fbedab0ac773
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.
]]>
4fd8e7: build,test: update gnulib, bootstrap and init.sh * boots... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/4fd8e74e4d3fe136fe0c4db83d5d249500e54744 Jim Meyering Commit: 4fd8e74e4d3fe136fe0c4db83d5d249500e54744
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)/
]]>
763c1c: build: avoid non-srcdir build failure * libparted/fs/Mak... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/763c1cf287d2b264eb5c988e52ffd32ded594e42 Jim Meyering Commit: 763c1cf287d2b264eb5c988e52ffd32ded594e42
build: avoid non-srcdir build failure

* libparted/fs/Makefile.am: s!fsresize.sym!$(srcdir)/fsresize.sym!
]]>
4973f8: maint: placate syntax-check wrt tests/fs-resize.c * test... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/4973f84fdc85bdc12616ec4b27447cbf1b2cc474 Jim Meyering Commit: 4973f84fdc85bdc12616ec4b27447cbf1b2cc474
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.
]]>
42f3d8: doc: mention HFS+/FAT file system resizing in NEWS * NEW... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/42f3d8e9b9aa686a4849be8837b0837e19f84445 Jim Meyering Commit: 42f3d8e9b9aa686a4849be8837b0837e19f84445
doc: mention HFS+/FAT file system resizing in NEWS

* NEWS (New features): Mention it.
]]>
d9c1e1: tests: test FAT and HFS file system resizing * tests/t30... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/d9c1e1a5686943db044e6f24cae7d09a5a9e095c Jim Meyering Commit: d9c1e1a5686943db044e6f24cae7d09a5a9e095c
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.
]]>
5bfc7f: tests: add FS-resize test driver * tests/fs-resize.c: Ne... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/5bfc7fd8e38da8bee87abf323e68f8be5937e728 Christoph Hellwig Commit: 5bfc7fd8e38da8bee87abf323e68f8be5937e728
tests: add FS-resize test driver

* tests/fs-resize.c: New file, to test FAT/HFS resizing.
]]>
07f333: lib-fs-resize: use linker script to expose only selected ... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/07f333334f2a46a241296dd9356f947634f1182c Jim Meyering Commit: 07f333334f2a46a241296dd9356f947634f1182c
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.
]]>
908195: maint: remove r/hfs/DOC,HISTORY,TODO; add VERSION for new... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/90819565ebd4bf42f70e2b6b19e7ea5172fce4c5 Jim Meyering Commit: 90819565ebd4bf42f70e2b6b19e7ea5172fce4c5
maint: remove r/hfs/DOC,HISTORY,TODO; add VERSION for new library
]]>
f5308e: lib-fs-resize: rewrite ped_file_system_clobber Before, i... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/f5308e408980443b20cb35696b09e1f6e6e60966 _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. ]]> Jim Meyering Commit: f5308e408980443b20cb35696b09e1f6e6e60966
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.
]]>
4792ba: lib-fs-resize: add wrappers for open,close,resize,get_res... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/4792baed9f00107cedd162271a9ef75195c63fe2 Jim Meyering Commit: 4792baed9f00107cedd162271a9ef75195c63fe2
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.
]]>
485425: maint: update copyrights in r/ https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/485425f356b68cc4b2427a9c6099682fe78b38f2 Jim Meyering Commit: 485425f356b68cc4b2427a9c6099682fe78b38f2
maint: update copyrights in r/
]]>
9c1cf7: lib-fs-resize: re-add HFS and FAT file-system-related cod... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/9c1cf7e01ebd786e3fb25e101be209bf0843b77a Jim Meyering Commit: 9c1cf7e01ebd786e3fb25e101be209bf0843b77a
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.
]]>
50dd04: maint: remove now-unused fat-related functions * libpart... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/50dd04e2b369699dd44a8f65ac5915c43e57c66f Jim Meyering Commit: 50dd04e2b369699dd44a8f65ac5915c43e57c66f
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.
]]>
4fa3a6: tests: set PARTED_TEST_NAME, for valgrind * tests/Makefi... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/4fa3a6b22cece434126953cb8d686359a9416cef Jim Meyering Commit: 4fa3a6b22cece434126953cb8d686359a9416cef
tests: set PARTED_TEST_NAME, for valgrind

* tests/Makefile.am (PARTED_TEST_NAME): Define.
* tests/t0211-gpt-rewrite-header.sh: Clarify a comment.
]]>
905811: libparted: gpt: avoid heap-read-overrun when rewriting 9-... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/905811b14ae10a0d292b9da58469ff788e1cdd73 Jim Meyering Commit: 905811b14ae10a0d292b9da58469ff788e1cdd73
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.
]]>
7be12a: maint: adjust the URL that will appear in the generated a... https://zh.osdn.net/projects/android-x86/scm/git/external-parted/commits/7be12a2568c57355a800752abfefdf7e55c9cbfe Jim Meyering Commit: 7be12a2568c57355a800752abfefdf7e55c9cbfe
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.
]]>