Commit Graph

315 Commits

Author SHA1 Message Date
Brian C. Lane
e4f4556ff6 - Run the CI tests using rpmbuild
- t6000-dm: Stop using private lvm root
2019-03-01 10:45:52 -08:00
Igor Gnatenko
0bd0e13f0d Rebuild for readline 8.0 2019-02-17 09:30:52 +01:00
Brian C. Lane
21f562c24e - Add missing patches from Wang Dong
- fix crash due to improper partition number (dongdwdw)
- fix wrong error label jump in mkpart (dongdwdw)
- clean the disk information when commands fail (dongdwdw)
- Remove PED_ASSERT from ped_partition_set_name (bcl)
- Added support for Windows recovery partition (Hans-Joachim.Baader)
2019-01-31 11:35:57 -08:00
Igor Gnatenko
901c30f0f2 Remove obsolete BuildRoot tag
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-29 05:35:55 +01:00
Igor Gnatenko
185ade9225 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:24 +01:00
Igor Gnatenko
c7c469766d
Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-27 19:39:40 +01:00
Brian C. Lane
8f615e462d - Read NVMe model names from sysfs (dann.frazier)
- Fix warnings from GCC 7's -Wimplicit-fallthrough (dann.frazier)
- ped_unit_get_name: Resolve conflicting attributes 'const' and 'pure' (dann.frazier)
- Add udf to t1700-probe-fs and to the manpage (bcl)
- libparted: Add support for MBR id, GPT GUID and detection of UDF filesystem (pali.rohar)
- Fix potential command line buffer overflow (xu.simon)
- t6100-mdraid-partitions: Use v0.90 metadata for the test (bcl)
- parted.c: Make sure dev_name is freed (bcl)
- parted.c: Always free peek_word (bcl)
- Fix the length of several strncpy calls (bcl)
2018-10-16 15:38:03 -07:00
Brian C. Lane
c0bbbd4bbe - drop ldconfig, it no longer needs to be called on un/install (bcl)
- Fix msdos-overlap py3 conversion (bcl)
2018-07-19 16:44:11 -07:00
Fedora Release Engineering
30d99a722c - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 15:31:44 +00:00
Jason Tibbitts
14abe5ec64 Remove needless use of %defattr 2018-07-10 02:15:58 -05:00
Brian C. Lane
d6652ea632 - Use python3 in buildroot
- Add make to BuildRequires
- Switch gpt-header-move and msdos-overlap to python3 (bcl)
- Modify gpt-header-move and msdos-overlap to work with py2 or py3 (bcl)
- Fix atari label false positives (psusi)
- Lift 512 byte restriction on fat resize (psusi)
- build: Remove unused traces of dynamic loading (cjwatson)
- Fix resizepart iec unit end sector (psusi)
- mkpart: Allow negative start value when FS-TYPE is not given (mail)
- Fix set and disk_set to not crash when no flags are supported (psusi)
- tests: fix t6100-mdraid-partitions (psusi)
- Fix make check (psusi)
- linux: Include <sys/sysmacros.h> for major() macro. (rjones)
2018-06-27 14:44:42 -07:00
Brian C. Lane
3166d30c65 - Use gpg2 for signature checking 2018-06-07 09:47:30 -07:00
Richard W.M. Jones
749ef2e667 Fix for missing major/minor() macros in glibc 2.27. 2018-03-24 17:47:51 +00:00
Brian C. Lane
639e36f434 - Add gcc BuildRequires for future minimal buildroot support 2018-02-19 16:46:16 -08:00
Igor Gnatenko
d16b395769
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 09:11:26 +01:00
Fedora Release Engineering
b4c887cad2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 18:21:27 +00:00
Brian C. Lane
abca6a9a06 - Add support for NVDIMM devices (sparschauer)
- libparted/labels: link with libiconv if needed (arnout)
2017-12-19 11:55:37 -08:00
Brian C. Lane
633c511c8c - atari.c: Drop xlocale.h
Resloves: rhbz#1476934
2017-07-31 15:34:53 -07:00
Fedora Release Engineering
4e3bf318ee - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 02:13:10 +00:00
Brian C. Lane
a0d503db4c - libparted: Fix udev cookie leak in _dm_resize_partition (bcl)
Resolves: rhbz#1455564
2017-06-06 11:23:16 -07:00
Brian C. Lane
d75d85cc43 - Updating to upstream patches
- tests/t1701-rescue-fs wait for the device to appear. (bcl)
- Increase timeout for rmmod scsi_debug and make it a framework failure (bcl)
- libparted/dasd: add test cases for the new fdasd functions (dongdwdw)
- libparted/dasd: add an exception for changing DASD-LDL partition table (dongdwdw)
- libpartd/dasd: improve flag processing for DASD-LDL (dongdwdw)
- parted/ui: remove unneccesary information of command line (dongdwdw)
- parted: check the name of partition first when to name a partition (dongdwdw)
- Add support for RAM drives (sparschauer)
- Fix crash when localized (psusi)
- libparted: Fix typo in hfs error message (sebras)
- libparted: Fix MacOS boot support (laurent)
- mac: copy partition type and name correctly (saproj)
- libparted: Add support for atari partition tables (glaubitz)
- libparted:tests: Move get_sector_size() to common.c (glaubitz)
- tests: Update t0220 and t0280 for the swap flag. (bcl)
- libparted: set swap flag on GPT partitions (aschnell)
- libparted/dasd: add test cases for the new fdasd functions (dongdwdw)
- libparted/dasd: add new fdasd functions (dongdwdw)
- libparted/dasd: update and improve fdasd functions (dongdwdw)
- libparted/dasd: unify vtoc handling for cdl/ldl (dongdwdw)
- libparted: Don't warn if no HDIO_GET_IDENTITY ioctl (sparschauer)
- libparted: Fix starting CHS in protective MBR (petr.uzel)
- tests: Stop timing t9040 (#1172675) (bcl)
2017-05-02 09:41:50 -07:00
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