Commit Graph

294 Commits

Author SHA1 Message Date
Fedora Release Engineering
fd44e26140 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 01:17:52 +00:00
Igor Gnatenko
745a7d2412 Rebuild for readline 7.x
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-12 17:30:36 +01:00
Brian C. Lane
c6a1bfceda - tests: t3310-flags.sh: skip pc98 when sector size != 512 (bcl)
- tests: Set optimal blocks to 64 for scsi_debug devices (bcl)
- tests: t3310-flags.sh: Add tests for remaining table types (mike.fleetwood)
- tests: t3310-flags.sh: Add test for dvh table flags (mike.fleetwood)
- tests: t3310-flags.sh: Add test for mac table flags (mike.fleetwood)
- libparted: Remove commented local variable from bsd_partition_set_flag()
  (mike.fleetwood)
- libparted: Fix to report success when setting lvm flag on bsd table
  (mike.fleetwood)
- tests: t3310-flags.sh: Add test for bsd table flags (mike.fleetwood)
- tests: t3310-flags.sh: Stop excluding certain flags from being tested
  (mike.fleetwood)
- tests: t3310-flags.sh: Query libparted for all flags to be tested
  (mike.fleetwood)
- libparted: only IEC units are treated as exact (petr.uzel)
- docs: Improve partition description in parted.texi (gareth.randall)
- Add support for NVMe devices (petr.uzel)
- libparted/dasd: correct the offset where the first partition begins
  (dongdwdw)
2016-10-04 16:53:44 -07:00
Brian C. Lane
7e779bb347 - Cleanup mkpart manpage entry (#1183077)
- doc: Add information about quoting
2016-06-15 17:28:00 -07:00
Brian C. Lane
bdb87d14b5 - libparted: Fix probing AIX disks on other arches
- partprobe: Open the device once for probing
2016-05-26 12:05:08 -07:00
Brian C. Lane
6ad4b6c092 - libparted: Remove fdasd geometry code from alloc_metadata (#1244833) (bcl)
- parted: Display details of partition alignment failure (#726856) (bcl)
- docs: Add list of filesystems for fs-type (#1311596) (bcl)
- Use disk geometry as basis for ext2 sector sizes. (Steven.Lang)
- parted: fix the rescue command (psusi)
2016-04-12 16:51:26 -07:00
Brian C. Lane
3c4e97cf6e - Use BLKSSZGET to get device sector size in _device_probe_geometry() 2016-03-29 15:10:13 -07:00
Brian C. Lane
4d35fa8c43 - lib-fs-resize: Prevent crash resizing FAT with very deep directories
- Add libparted/fs/.libs/ to LD_LIBRARY_PATH during make check
2016-03-07 11:55:00 -08:00
Brian C. Lane
e0ee88ed50 - Cleanup library path usage in specfile
pkgconfig wasn't finding libparted.pc because it was under /usr/lib64/
- Explicitly reference the library files instead of use wildcards.
- Move libparted-fs-resize.so to the -devel package where it belongs.
- Add a pkgconfig file for the filesystem resize library
- tests: Add udevadm settle to wait_for_ loop
- tests: Add wait to t9042
- tests: Fix t1700 failing on a host with a 4k xfs file
2016-03-02 13:09:35 -08:00
Brian C. Lane
ed6adbba63 - fdasd.c Safeguard against geometry misprobing.patch (#1305931) 2016-02-09 17:49:45 -08:00
Fedora Release Engineering
b6f7bbc110 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 11:57:39 +00:00
Brian C. Lane
7f3a5f1056 - parted: fix build error on s390 2015-10-29 16:36:00 -07:00
Brian C. Lane
b965023a70 - dasd: enhance device probing
- fdasd: geometry handling updated from upstream s390-tools
2015-10-27 17:02:48 -07:00
Brian C. Lane
7f6b65822f - tests: Fix patch 0012 test for extended partition length
- UI: Avoid memory leaks
- libparted: Fix memory leaks.patch
- libparted: Fix possible memory leaks.patch
- libparted: Stop converting . in-sys-path-to /
- libparted: Use read-only when probing devices on linux
- tests: Use wait_for_dev_to_ functions
2015-08-07 15:53:08 -07:00
Brian C. Lane
0380a6b2b7 - parted: Fix crash with name command and no disklabel (#1226067) 2015-07-14 14:54:14 -07:00
Dennis Gilmore
5ca1687d00 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 00:46:52 +00:00
Brian C. Lane
441cefc372 - tests: Make sure the extended partition length is 2 (#1135493)
- libparted: BLKPG_RESIZE_PARTITION uses bytes not sectors (#1135493)
2015-06-05 15:46:45 -07:00
Brian C. Lane
123da5f5e2 - Add python2 as a BuildRequires, used in some of the tests 2015-04-28 15:47:30 -07:00
Brian C. Lane
42e67f88fc - Update manpage NAME so whatis will work (bcl)
- libparted: device mapper uses 512b sectors (bcl)
- tests: Add a test for device-mapper partition sizes (bcl)
- parted: don't crash in disk_set when disk label not found (psusi)
2015-04-28 14:53:11 -07:00
Brian C. Lane
00c01769a8 - tests: Change minimum size to 256MiB for t1700-probe-fs 2014-11-07 11:22:44 -08:00
Brian C. Lane
0417c3cdb2 - Update to current master commit ac74b83 to fix fat16 resize (#1159083)
- tests: t3000-resize-fs.sh: Add requirement on mkfs.vfat (mike.fleetwood)
- tests: t3000-resize-fs.sh: Add FAT16 resizing test (mike.fleetwood)
- lib-fs-resize: Prevent crash resizing FAT16 file systems (mike.fleetwood)
- libparted: also link to UUID_LIBS (heirecka)
2014-10-31 13:38:24 -07:00
Peter Robinson
186d87b0a3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 14:54:54 +00:00
Brian C. Lane
2edf16c913 - Use a better patch to find the UTF8 locale for t0251 2014-08-13 13:59:06 -07:00
Brian C. Lane
06fca52438 - Rebase on upstream stable release v3.2
- Drop upstream patches.
- Patch t0251 to use en_US.UTF-8 if possible. Fedora doesn't have C.UTF-8
2014-07-30 14:19:13 -07:00
Tom Callaway
419aff7905 fix license handling 2014-07-30 11:00:02 -04:00
Brian C. Lane
3dcf9083a3 - Rebase on upstream Alpha source release
- drop included patches (all but one)
- add Phillip Susi's GPG key
- make sure gcc warnings as errors remains disabled since we use git for patches
2014-07-28 12:50:21 -07:00
Brian C. Lane
13386670d0 - Rebase on parted master commit 081ed98
- libparted: Add support for partition resize
- parted: add resizepart command
2014-07-14 14:44:27 -07:00
Brian C. Lane
73aa139585 - Rebase on parted master commit 1da239e2ebd2
- libparted: Fix bug with dupe and empty name
2014-06-13 09:52:56 -07:00
Dennis Gilmore
2b6c439fa4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-06 18:45:40 -05:00
Peter Robinson
47e47bd8ef Move dev docs to devel, Drop duplicated/outdated docs 2014-06-01 00:10:54 +01:00
Brian C. Lane
64daa79b38 - Use mkfs.xfs to create files (#1101112) 2014-05-27 08:47:07 -07:00
Brian C. Lane
5dcb73843d - Add some missing patches from master and the loop label fixes
- tests: test loop labels (psusi)
- libparted: don't trash filesystem when writing loop label (psusi)
- libparted: give correct partition device name on loop labels (psusi)
- partprobe: do not skip loop labels (psusi)
- libparted: don't create partition on loop label (psusi)
- libparted: fix loop labels to not vanish (psusi)
- libparted: remove all old partitions, even if new label allows less (psusi)
- libparted: remove old partitions *first* before adding new ones (psusi)
- libparted: don't detect fat and ntfs boot sectors as dos MBR (psusi)
- Fix filesystem detection on non 512 byte sectors (psusi)
- tests: fix t2310-dos-extended-2-sector-min-offset.sh (psusi)
- libparted: remove last_usable_if_grown (psusi)
2014-05-22 15:03:30 -07:00
Brian C. Lane
3e3c91556c - Fix partition naming patch for big endian systems. 2014-05-16 16:20:42 -07:00
Brian C. Lane
f0247c09aa - Fix a problem with GPT Partition names using. They are UCS-2LE not UTF-16 2014-05-16 13:15:33 -07:00
Brian C. Lane
30cb53c629 - Fix t1700 probe patch -- remove loop before making new fs 2014-04-18 08:41:56 -07:00
Brian C. Lane
42ecfc7b6b - Use force for xfs in t1700 and a larger file
- Make t4100 xfs filesystem larger and sparse
- Fix part dupe with empty name
- check name when duplicating
- Add ntfs vfat hfsplus to t1700 probe test
2014-04-17 16:46:07 -07:00
Brian C. Lane
47b8266825 - Use little endian packingl in gpt tests
- Fix integer overflows with DVH disk label
2014-04-09 17:17:15 -07:00
Brian C. Lane
0b7af917e2 - Rebase on new upstream master commit cc382c3
- Drop patches incorporated into upstream
- Still adds the various DASD patches
2014-04-08 11:46:37 -07:00
Brian C. Lane
191b34d33b - Drop hfs_esp patch. Idea didn't work. 2014-02-27 13:23:51 -08:00
Brian C. Lane
7d372625f4 - tests: Restrict gpt header munge to little-endian systems
- Add perl Digest::CRC as a build requirement so more tests will run
2013-09-11 11:39:51 -07:00
Brian C. Lane
7e490f036c - libparted: Flush parent device on open (#962611) 2013-09-04 14:00:30 -07:00
Brian C. Lane
a248769183 - Rebasing Fedora patches with upstream master since v3.1 release
- Summary of important changes from upstream:
  - add support for a new Linux-specific GPT partition type code
  - partprobe: remove partitions when there is no partition table
  - libparted: refactor device-mapper partition sync code
  - libparted: remove extraneous blkpg add partition ped exception
  - libparted: don't probe every dm device in probe_all
- New Fedora changes:
  - libparted: Add Intel Rapid Start Technology partition flag.
  - libparted: Add UEFI System Partition flag.
  - libparted: Add hfs_esp partition flag to GPT.
  - libparted: Recognize btrfs filesystem
  - tests: Add btrfs and xfs to the fs probe test
2013-08-28 13:55:15 -07:00
Dennis Gilmore
1f3d038aae - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 11:35:57 -05:00
Brian C. Lane
cdd78567ae - libparted: mklabel to support EDEV DASD (#953146)
- tests: rewrite t6001-psep.sh to use /dev/mapper
2013-04-17 16:11:15 -07:00
Dennis Gilmore
15ebd4fc37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 03:51:32 -06:00
Brian C. Lane
ff8e232bc4 - libparted: mklabel to support EAV DASD (#707032)
- libparted: Avoid dasd as default disk type while probe (#707032)
2012-12-12 16:25:48 -08:00
Brian C. Lane
7c73c61a4c - don't canonicalize /dev/md/ paths (#872361) 2012-11-02 10:16:31 -07:00
Brian C. Lane
68f2aab138 - change partition UUID to use partX-UUID (#858704)
- fixup losetup usage in tests
- add support for implicit FBA DASD partitions (#707027)
- add support for EAV DASD partitions (#707032)
2012-10-16 16:53:14 -07:00
Brian C. Lane
1ca859a3e8 - reallocate buf after _disk_analyse_block_size (#835601) 2012-09-04 16:59:04 -07:00
Brian C. Lane
5c7b01233e - use dm_udev_wait to synchronize with udev
- use largest_partnum in dm_reread_part_table (#803108)
- preserve the uuid on dm partitions (#832145)
2012-08-07 12:39:09 -07:00
Dennis Gilmore
0a9f435399 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-20 03:39:57 -05:00
Brian C. Lane
f380659c9f - Fix crash on ppc64 with GPT (#829960) (rwmj) 2012-06-08 14:56:55 -07:00
Brian C. Lane
4ec2a17ec3 - Added Provides: bundled(gnulib) (#821782) 2012-05-15 10:20:59 -07:00
Brian C. Lane
6c34102208 - libparted: check PMBR before GPT partition table (#805272)
- tests: add a test for the new behavior
2012-03-21 11:40:18 -07:00
Brian C. Lane
67735861c5 - Rebase to upstream parted v3.1
- removed merged patches
- add new libparted-fs-resize library
2012-03-13 15:58:23 -07:00
Brian C. Lane
c4a50494de - Update patch for copying flags so that it is generic
- Copy pmbr_boot flag in gpt_duplicate
2012-02-03 14:31:21 -08:00
Brian C. Lane
c45765537f - gpt: add commands to manipulate pMBR boot flag (#754850)
- parted: when printing, also print the new disk flags
- tests: update tests for new disk flags output
- tests: add test for GPT PMBR pmbr_boot flag
- doc: update parted documentation
2012-02-02 13:13:05 -08:00
Dennis Gilmore
e28225b4fb - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 06:00:56 -06:00
Brian C. Lane
68bb9e0f50 - Fix ped_disk_duplicate on GPT so that it copies the partition flags (#747947)
- Add new test to check ped_disk_duplicate on msdos, gpt, bsd disk labels
- Add e2fsprogs and dosfstools so that skipped tests will be run
2011-10-31 16:15:41 -07:00
Brian C. Lane
8e3b457f0f Fix handling of zero-length gpt partitions (#728949)
Fix bug in nilfs2 probe with short partitions (#728949)
Fix bug in hfs probe code (#714758)
Make pc98 detection depend on specific signatures (#646053)
2011-10-07 16:28:22 -07:00
Richard W.M. Jones
61bbdc442a (Re-)apply patch to fix Linux 3.0 problem. 2011-06-29 14:39:46 +01:00
Brian C. Lane
3cb85c39f2 Update to parted v3.0
This changes the spec to run autoreconf so that patches to .am files
will be picked up without having to resort to hand-patching .in files.
This should make parted more maintainable in the future.

Add patch to Fix snap radius and don't allow values < 1 (#665496)
Add tests for the snap radius fix.
2011-06-28 13:33:03 -07:00
Richard W.M. Jones
ec61764348 Apply patch which may fix Linux 3.0 problem. 2011-06-05 19:49:47 +01:00
Brian C. Lane
4b10e84f4f Updating to latest upstream v2.4
Drop patches included in upstream
2011-05-26 15:50:30 -07:00
Brian C. Lane
51e87b09cc Add upstream patched for legacy_boot and PED_ASSERT
- Add support for legacy_boot flag for GPT partitions (680562)
- Remove PED_ASSERT for dos geometry calculations (585468)
2011-03-11 17:28:01 -08:00
Brian C. Lane
d57e6a5058 - Tell GCC to stop treating unused variable warnings as errors 2011-02-09 09:18:23 -08:00
Dennis Gilmore
3ae94e9f73 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 08:44:48 -06:00
Brian C. Lane
edc1956dce - Document the align-check command
Resolves: #642476
- Default to 1MiB partition alignment
  Resolves: #618255
2010-12-20 15:40:39 -08:00
Peter Jones
b616963f90 Handle mac labels with differing physical/logical sector sizes better 2010-12-17 11:24:35 -05:00
Peter Jones
c504c93135 Switch to using git to apply patches.
It makes hacking on the result easier.
2010-12-17 11:23:45 -05:00
Jesse Keating
56e09f520d - Rebuilt for gcc bug 634757 2010-09-29 14:58:27 -07:00
Brian C. Lane
dfb1e1bc53 Add patch to handle syncing partition using blkext majors (#634980)
Removed unused _device_get_partition_range function
change back to gnupg for verifying the signature

Resolves: rhbz#634980
Related: rhbz#629719
2010-09-17 14:22:03 -07:00
Hans de Goede
d688a67d24 - Rebase to new upstream 2.3 release
- Drop all patches (all upstreamed)
- Recognize scsi disks with a high major as such (#611691)
2010-07-20 12:57:24 +00:00
Hans de Goede
a2fe9262bf - Rebase to new upstream 2.3 release
- Drop all patches (all upstreamed)
- Recognize scsi disks with a high major as such (#611691)
2010-07-20 10:09:23 +00:00
Hans de Goede
c6c0fcdea5 - Also recognize recovery partitions with id 27 / on gpt (#589451) 2010-05-06 09:12:29 +00:00
Hans de Goede
47ebe5127b - Properly check dm_task_run return value (#585158)
- Fix mkpartfs (ext2) on partitions >2TB (#585159)
2010-04-23 11:15:49 +00:00
Hans de Goede
98510fcf39 - Add a flag for detecting diagnostics / recovery partitions (#583626) 2010-04-19 12:03:29 +00:00
Hans de Goede
211df98dc5 - Parted should not canonicalize symlinks under /dev/mapper (#577824) 2010-04-06 15:16:50 +00:00
Hans de Goede
740a497422 - New upstream version 2.2 (#577478)
- Drop all our patches (all upstreamed)
2010-03-30 12:56:19 +00:00
Hans de Goede
febb3b2fab - Copy needs_clobber value in ped_disk_duplicate() (#561976) 2010-02-18 14:43:51 +00:00
Hans de Goede
eb899f72ea Enable verbose make output (to be picked up the next release 2010-02-14 09:22:18 +00:00
Hans de Goede
1a97476e88 - Don't crash when reading a DASD disk with PV's on there (#563419)
- Don't overwrite the pmbr when merely printing a gpt table (#563211)
2010-02-10 14:01:25 +00:00
Hans de Goede
23df9b3cb9 - If a drive does not have alignment information available default to an
alignment of 1MiB (#559639)
2010-01-31 13:02:42 +00:00
Hans de Goede
4d23b7c8d8 - Fix various memory leaks in error paths (#556012)
- Add %check section to the specfile, invoking make check
2010-01-17 15:57:08 +00:00
Hans de Goede
33fde2056a - New upstream release 2.1
- Drop all our patches (all merged upstream)
2010-01-11 14:03:07 +00:00
Hans de Goede
c11ab73298 - Fix crash when partitioning loopback devices (#546622)
- Drop no-cylinder-align patch:
- its functionality is superseeded by the per disk flags
- its only user (pyparted) has been updated to use those
- this is not upstream so we don't want other programs to start using it
2009-12-20 10:19:49 +00:00
Hans de Goede
ce6563fae4 - Allow partitioning of loopback devices (#546622)
- Add libparted function to query maximum partition length and start
    addresses for a given disk (#533417)
- Add per disk flags functions from upstream, this is the way upstream has
    implemented the disable cylinder alignment functionality
- Add --align cmdline option to specify how to align new partitions see the
    parted man page for details (#361951)
- Make the default alignment for new partitions optimal (#361951)
- When cylinder alignment is disabled, allow use of the last (incomplete)
    cylinder of the disk (#533328)
- Don't crash when printing partition tables in Russian (#543029)
- Make parted work correctly with new lvm (#525095)
2009-12-18 09:42:14 +00:00
Hans de Goede
9aaca8c090 - Fix parted not building on s390 2009-11-11 21:08:51 +00:00
Hans de Goede
b7679338df - Fix error when creating a fresh dasd disk on a dasd device with a
corrupted dasd label (#533808)
2009-11-09 17:46:21 +00:00
Hans de Goede
54768cc1d5 - Fix a compiler warning which is causing build errors (#532425) 2009-11-06 08:45:49 +00:00
Hans de Goede
7061b8af36 - Fix error when creating a fresh dasd disk (#532425)
- Rewrite dasd disk duplication patches, as the old old ones conflicted
    with fixing creating a fresh dasd disk
2009-11-03 12:07:15 +00:00
Hans de Goede
b8f160a800 - Fix a segfault introduced by -18 when operating on plain files 2009-10-30 11:58:36 +00:00
Hans de Goede
40d8282e48 - Add functions to query device / partition table alignments (#528030) 2009-10-29 19:05:51 +00:00
Hans de Goede
5caeecc0e0 - Only change the partition type to 82 when setting the swap flag on dos
labels, not when resetting it
2009-10-08 09:14:01 +00:00
Hans de Goede
128ba94266 - Correctly handle GPT labels on big endian machines 2009-10-06 20:57:12 +00:00
Hans de Goede
788f613dc1 - ped_partition_is_busy() should not throw exceptions (#527035)
- msdos_partition_is_flag_available() should return 1 for swap flag
    (#513729)
2009-10-06 18:53:21 +00:00
Joel Andres Granados Moreno
d8621345e2 Patches for the 'commit to os' function in linux. 2009-08-31 12:34:18 +00:00
Karsten Hopp
eb24deea49 - volkey is only 4 chars, don't overflow destination buffer with 84 chars 2009-08-28 10:36:11 +00:00
Joel Andres Granados Moreno
369118c8bc Add libuuid for s390 builds 2009-08-21 14:01:47 +00:00
Ville Skyttä
3f292e2efe - Use xz compressed upstream tarball.
https://www.redhat.com/archives/fedora-devel-list/2009-August/msg00563.html
2009-08-12 15:47:38 +00:00