Up to [cvs.NetBSD.org] / src / sbin / gpt
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.76 / (download) - annotate - [select for diffs], Thu Apr 7 13:57:44 2022 UTC (13 months, 3 weeks ago) by kre
Branch: MAIN
CVS Tags: netbsd-10-base,
netbsd-10,
HEAD
Changes since 1.75: +25 -10
lines
Diff to previous 1.75 (colored)
Note that biosboot without -A clears the PMBR "active" flag. While here, fix some grammar and make the selection options for biosboot a little clearer. Ride nia@'s Dd bump.
Revision 1.75 / (download) - annotate - [select for diffs], Thu Apr 7 09:06:01 2022 UTC (13 months, 4 weeks ago) by nia
Branch: MAIN
Changes since 1.74: +4 -4
lines
Diff to previous 1.74 (colored)
gpt.8: Clarify that "windows" partition types are also used for FAT32 ("msdos" in NetBSD terms), and UDF partitions. Use the same name as Wikipedia, "Microsoft basic data".
Revision 1.74 / (download) - annotate - [select for diffs], Mon Jul 27 20:54:18 2020 UTC (2 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Changes since 1.73: +5 -4
lines
Diff to previous 1.73 (colored)
catch up with source rename of fbsd-zfs -> zfs
Revision 1.73 / (download) - annotate - [select for diffs], Sun May 24 20:59:16 2020 UTC (3 years ago) by wiz
Branch: MAIN
Changes since 1.72: +7 -7
lines
Diff to previous 1.72 (colored)
Fix typo in macro. Sort option descriptions.
Revision 1.72 / (download) - annotate - [select for diffs], Sun May 24 18:42:20 2020 UTC (3 years ago) by jmcneill
Branch: MAIN
Changes since 1.71: +4 -2
lines
Diff to previous 1.71 (colored)
Add -H flag to ignore existing MBR (Hybrid MBR/GPT mode).
Revision 1.71 / (download) - annotate - [select for diffs], Sun May 24 14:42:44 2020 UTC (3 years ago) by jmcneill
Branch: MAIN
Changes since 1.70: +12 -4
lines
Diff to previous 1.70 (colored)
Exit gracefully when auto-expanding a partition and it is already the correct size. Add a -q flag to "resize" and "resizedisk" commands to skip printing warnings in the already resize paths.
Revision 1.63.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:20 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.63.2.1: +26 -7
lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)
Mostly merge changes from HEAD upto 20200411
Revision 1.70 / (download) - annotate - [select for diffs], Fri Jul 26 07:22:05 2019 UTC (3 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
netbsd-9-base,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
is-mlppp-base,
is-mlppp
Changes since 1.69: +7 -7
lines
Diff to previous 1.69 (colored)
Remove outdated note about sysinst restrictions
Revision 1.69 / (download) - annotate - [select for diffs], Tue Jun 25 04:53:40 2019 UTC (3 years, 11 months ago) by jnemeth
Branch: MAIN
Changes since 1.68: +21 -2
lines
Diff to previous 1.68 (colored)
Add an "uuid" command to generate a new UUID for a portion. The primary intention is for use for after cloning disks to prevent collisions.
Revision 1.63.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:33 2019 UTC (3 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.63: +25 -9
lines
Diff to previous 1.63 (colored)
Sync with HEAD
Revision 1.68 / (download) - annotate - [select for diffs], Thu Apr 4 13:55:40 2019 UTC (4 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.67: +7 -4
lines
Diff to previous 1.67 (colored)
Allow specifying the partition via -b startsec for the biosboot cmd.
Revision 1.67 / (download) - annotate - [select for diffs], Tue Mar 26 14:55:02 2019 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.66: +6 -3
lines
Diff to previous 1.66 (colored)
Allow -b to specify a partition for "gpt unset" as well.
Revision 1.66 / (download) - annotate - [select for diffs], Mon Mar 25 20:15:49 2019 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.65: +12 -4
lines
Diff to previous 1.65 (colored)
Allow -b startsec to specify the partition to change for the set subcommand as well. Add another option, -N, as a quick way to remove all attributes.
Revision 1.65 / (download) - annotate - [select for diffs], Sun Mar 24 13:45:35 2019 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.64: +5 -3
lines
Diff to previous 1.64 (colored)
Make the "show" subcommand accept -b startsec to identify a partition (very usefull for scripts and other robotic callers).
Revision 1.64 / (download) - annotate - [select for diffs], Sun Mar 24 13:31:00 2019 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.63: +3 -3
lines
Diff to previous 1.63 (colored)
Add support for specifying the partition to resize via -b startsec (similar to label and other subcommands). Do not fully add gpt_find functionality here, as resizing multiple partitions in one go does not make sense.
Revision 1.28.4.2 / (download) - annotate - [select for diffs], Mon Aug 13 16:12:12 2018 UTC (4 years, 9 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.28.4.1: +228 -92
lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)
Catch up to current for the following, requested by sborrill in ticket #1629: sbin/gpt/gpt_private.h up to 1.2 sbin/gpt/header.c up to 1.9 sbin/gpt/main.c up to 1.11 sbin/gpt/drvctl.c delete sbin/gpt/Makefile up to 1.18 sbin/gpt/add.c up to 1.44 sbin/gpt/backup.c up to 1.18 sbin/gpt/biosboot.c up to 1.30 sbin/gpt/create.c up to 1.23 sbin/gpt/destroy.c up to 1.10 sbin/gpt/gpt.8 up to 1.63 sbin/gpt/gpt.c up to 1.75 sbin/gpt/gpt.h up to 1.38 sbin/gpt/gpt_uuid.c up to 1.15 sbin/gpt/gpt_uuid.h up to 1.7 sbin/gpt/label.c up to 1.29 sbin/gpt/map.c up to 1.14 sbin/gpt/map.h up to 1.6 sbin/gpt/migrate.c up to 1.33 sbin/gpt/recover.c up to 1.18 sbin/gpt/remove.c up to 1.22 sbin/gpt/resize.c up to 1.23 sbin/gpt/resizedisk.c up to 1.17 sbin/gpt/restore.c up to 1.18 sbin/gpt/set.c up to 1.14 sbin/gpt/show.c up to 1.41 sbin/gpt/type.c up to 1.15 sbin/gpt/unset.c up to 1.14 Many changes including: - Significant refactoring - PR/51230: Add the ability to set the active flag in the PMBR - Let individual commands decide if ioctl(DIOCMWEDGES) should be done - Add a "header" subcommand that displays information about the size of the disk along with information from the GPT header if it exists - Add listing commands for type, set and unset - Add help and formatting for set and unset - Change show to print all the attribute info in one line. - Improve documentation, including booting and exit status - Check device parameter to avoid segfaults
Revision 1.52.4.3 / (download) - annotate - [select for diffs], Mon May 7 04:00:18 2018 UTC (5 years ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2
Changes since 1.52.4.2: +8 -2
lines
Diff to previous 1.52.4.2 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)
Pull up following revision(s) (requested by martin in ticket #797): sbin/gpt/gpt.8: 1.60-1.63 sbin/gpt/header.c: 1.9 Make the "gpt header" command return EXIT_FAILURE when no GPT is present. This helps sysinst to tell a GPT labeled disk from others. Very lazy version of a change proposed by kre. -- Sort sections. -- Bump date for new EXIT STATUS section. -- Spello. (it is "existence"). ispell also says that we should s/parseable/parsable/ but I'm not sure about that one, so I left it. I also left a correct spelling that no-one has bothered to mangle!
Revision 1.52.4.2 / (download) - annotate - [select for diffs], Fri May 4 16:24:46 2018 UTC (5 years, 1 month ago) by martin
Branch: netbsd-8
Changes since 1.52.4.1: +80 -21
lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored)
Pull up following revision(s) (requested by mrg in ticket #785): sbin/gpt/gpt.c: revision 1.74 sbin/gpt/map.c: revision 1.14 sbin/gpt/gpt.8: revision 1.53 sbin/gpt/gpt.8: revision 1.54 sbin/gpt/gpt.8: revision 1.55 sbin/gpt/gpt.8: revision 1.56 sbin/gpt/gpt.8: revision 1.57 sbin/gpt/gpt.8: revision 1.59 Add note about bootme flag: The bootme flag is used to indicate which partiotion should be booted by UEFI boot code. Fix a typo, and make a couple of minor wording improvements. I resisted the (very weak) impulse to Americanise some spellings ... Use Fx/Nx. clarify that alignment is the number of bytes to align to. Explain what suffixes are accepted when specifying a size. Spelling add information about how to boot from gpt. mostly taken from the wiki. if a new map entry doesn't fit, be more verbose about the sizes.
Revision 1.57.2.3 / (download) - annotate - [select for diffs], Wed May 2 07:20:02 2018 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.57.2.2: +8 -2
lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)
Synch with HEAD
Revision 1.63 / (download) - annotate - [select for diffs], Tue May 1 21:16:02 2018 UTC (5 years, 1 month ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502
Branch point for: phil-wifi
Changes since 1.62: +2 -2
lines
Diff to previous 1.62 (colored)
Spello. (it is "existence"). ispell also says that we should s/parseable/parsable/ but I'm not sure about that one, so I left it. I also left a correct spelling that no-one has bothered to mangle!
Revision 1.62 / (download) - annotate - [select for diffs], Tue May 1 21:04:01 2018 UTC (5 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.61: +2 -2
lines
Diff to previous 1.61 (colored)
Bump date for new EXIT STATUS section.
Revision 1.61 / (download) - annotate - [select for diffs], Tue May 1 21:03:37 2018 UTC (5 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.60: +7 -7
lines
Diff to previous 1.60 (colored)
Sort sections.
Revision 1.60 / (download) - annotate - [select for diffs], Tue May 1 08:17:13 2018 UTC (5 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.59: +7 -1
lines
Diff to previous 1.59 (colored)
Make the "gpt header" command return EXIT_FAILURE when no GPT is present. This helps sysinst to tell a GPT labeled disk from others. Very lazy version of a change proposed by kre.
Revision 1.57.2.2 / (download) - annotate - [select for diffs], Mon Apr 16 01:59:51 2018 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.57.2.1: +22 -3
lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)
Sync with HEAD, resolve some conflicts
Revision 1.59 / (download) - annotate - [select for diffs], Wed Apr 11 07:13:18 2018 UTC (5 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-0422,
pgoyette-compat-0415
Changes since 1.58: +22 -3
lines
Diff to previous 1.58 (colored)
add information about how to boot from gpt. mostly taken from the wiki.
Revision 1.52.4.1 / (download) - annotate - [select for diffs], Mon Apr 9 12:54:00 2018 UTC (5 years, 1 month ago) by bouyer
Branch: netbsd-8
CVS Tags: netbsd-8-0-RC1
Changes since 1.52: +10 -1
lines
Diff to previous 1.52 (colored)
Pull up following revision(s) (requested by mlelstv in ticket #710): sbin/gpt/main.c: revision 1.11 sbin/gpt/gpt.h: revision 1.37 sbin/gpt/set.c: revision 1.14 sbin/gpt/type.c: revision 1.14 sbin/gpt/unset.c: revision 1.14 sbin/gpt/gpt.8: revision 1.58 Check device parameter to avoid segfaults. Augment synopsis for -l option.
Revision 1.57.2.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:40 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.57: +10 -1
lines
Diff to previous 1.57 (colored)
Synch with HEAD, resolve conflicts
Revision 1.58 / (download) - annotate - [select for diffs], Mon Mar 19 09:06:20 2018 UTC (5 years, 2 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322
Changes since 1.57: +10 -1
lines
Diff to previous 1.57 (colored)
Check device parameter to avoid segfaults. Agument synopsis for -l option.
Revision 1.57 / (download) - annotate - [select for diffs], Mon Jan 15 12:20:47 2018 UTC (5 years, 4 months ago) by sborrill
Branch: MAIN
CVS Tags: pgoyette-compat-base,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.56: +29 -2
lines
Diff to previous 1.56 (colored)
Explain what suffixes are accepted when specifying a size.
Revision 1.56 / (download) - annotate - [select for diffs], Tue Oct 3 06:55:04 2017 UTC (5 years, 8 months ago) by mlelstv
Branch: MAIN
Changes since 1.55: +3 -2
lines
Diff to previous 1.55 (colored)
clarify that alignment is the number of bytes to align to.
Revision 1.55 / (download) - annotate - [select for diffs], Sat Aug 5 20:21:08 2017 UTC (5 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.54: +23 -12
lines
Diff to previous 1.54 (colored)
Use Fx/Nx.
Revision 1.54 / (download) - annotate - [select for diffs], Fri Aug 4 02:43:56 2017 UTC (5 years, 10 months ago) by kre
Branch: MAIN
Changes since 1.53: +7 -8
lines
Diff to previous 1.53 (colored)
Fix a typo, and make a couple of minor wording improvements. I resisted the (very weak) impulse to Americanise some spellings ...
Revision 1.53 / (download) - annotate - [select for diffs], Thu Aug 3 14:39:31 2017 UTC (5 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.52: +4 -2
lines
Diff to previous 1.52 (colored)
Add note about bootme flag: The bootme flag is used to indicate which partiotion should be booted by UEFI boot code.
Revision 1.50.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:13 2017 UTC (6 years, 1 month ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.50: +11 -3
lines
Diff to previous 1.50 (colored) next main 1.51 (colored)
Sync with HEAD
Revision 1.48.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:02 2017 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.48.2.1: +11 -3
lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)
Sync with HEAD
Revision 1.52 / (download) - annotate - [select for diffs], Thu Feb 16 03:32:17 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.51: +10 -2
lines
Diff to previous 1.51 (colored)
Add -T timestamp for reproducible builds.
Revision 1.51 / (download) - annotate - [select for diffs], Fri Jan 27 10:21:16 2017 UTC (6 years, 4 months ago) by abhinav
Branch: MAIN
Changes since 1.50: +2 -2
lines
Diff to previous 1.50 (colored)
Fix spelling of partition.
Revision 1.48.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:48:55 2016 UTC (6 years, 7 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.48: +2 -3
lines
Diff to previous 1.48 (colored)
Sync with HEAD
Revision 1.50 / (download) - annotate - [select for diffs], Tue Nov 1 16:15:51 2016 UTC (6 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.49: +2 -3
lines
Diff to previous 1.49 (colored)
remove dup line
Revision 1.49 / (download) - annotate - [select for diffs], Sun Sep 11 21:38:16 2016 UTC (6 years, 8 months ago) by sevan
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.48: +9 -6
lines
Diff to previous 1.48 (colored)
Document the version gpt first appeared. Replace contractions. Bump date.
Revision 1.48 / (download) - annotate - [select for diffs], Thu Jun 9 19:04:43 2016 UTC (6 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Changes since 1.47: +7 -7
lines
Diff to previous 1.47 (colored)
Rename 'a' to set the active PMBR flag to 'A'
Revision 1.47 / (download) - annotate - [select for diffs], Thu Jun 9 16:48:14 2016 UTC (6 years, 11 months ago) by kre
Branch: MAIN
Changes since 1.46: +2 -2
lines
Diff to previous 1.46 (colored)
Fix rendering of biosboot command synopsis.
Revision 1.46 / (download) - annotate - [select for diffs], Thu Jun 9 15:12:54 2016 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.45: +17 -5
lines
Diff to previous 1.45 (colored)
PR/51230: Add the ability to set the active flag in the PMBR.
Revision 1.45 / (download) - annotate - [select for diffs], Fri Dec 25 12:16:03 2015 UTC (7 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.44: +2 -2
lines
Diff to previous 1.44 (colored)
Simplify usage for gpt show.
Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 25 10:59:56 2015 UTC (7 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.43: +9 -3
lines
Diff to previous 1.43 (colored)
Add a -a flag to the show command, so we can display the full GPT with all information in one go.
Revision 1.43 / (download) - annotate - [select for diffs], Sun Dec 6 09:36:57 2015 UTC (7 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.42: +3 -3
lines
Diff to previous 1.42 (colored)
Bump date for previous. Remove trailing whitespace.
Revision 1.42 / (download) - annotate - [select for diffs], Sun Dec 6 00:39:26 2015 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.41: +26 -8
lines
Diff to previous 1.41 (colored)
Add listing commands for type, set and unset. Add help and formatting for set and unset. Change show to print all the attribute info in one line.
Revision 1.41 / (download) - annotate - [select for diffs], Wed Dec 2 12:36:53 2015 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.40: +10 -6
lines
Diff to previous 1.40 (colored)
Allow backup and restore to operate on files.
Revision 1.40 / (download) - annotate - [select for diffs], Tue Dec 1 22:49:25 2015 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.39: +22 -27
lines
Diff to previous 1.39 (colored)
Reflect reality better; we don't handle multiple devices anymore, and the partitions option is only for the commands that support it.
Revision 1.39 / (download) - annotate - [select for diffs], Tue Dec 1 09:05:33 2015 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.38: +23 -13
lines
Diff to previous 1.38 (colored)
Firs step of refactoring, remove all globals, factor out some common code, handle alternate usage but not advertise it.
Revision 1.38 / (download) - annotate - [select for diffs], Mon Nov 30 19:59:34 2015 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.37: +30 -29
lines
Diff to previous 1.37 (colored)
- automatically sync the wedge information unless -n is specified. - document the general options in the traditional way. - split the main program into a separate file.
Revision 1.37 / (download) - annotate - [select for diffs], Tue Nov 3 02:19:24 2015 UTC (7 years, 7 months ago) by jnemeth
Branch: MAIN
Changes since 1.36: +8 -2
lines
Diff to previous 1.36 (colored)
Add a "header" subcommand that displays information about the size of the disk along with information from the GPT header if it exists.
Revision 1.28.4.1 / (download) - annotate - [select for diffs], Tue Jun 2 19:49:38 2015 UTC (8 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Changes since 1.28: +132 -10
lines
Diff to previous 1.28 (colored)
Pull up following revision(s) (requested by jnemeth in ticket #774): sbin/gpt/Makefile: revisions 1.9-1.13 sbin/gpt/add.c: revisions 1.25-1.27 sbin/gpt/backup.c: revisions 1.2-1.8 sbin/gpt/biosboot.c: revisions 1.8-1.14 sbin/gpt/create.c: revisions 1.8-1.12 sbin/gpt/destroy.c: revisions 1.5-1.6 sbin/gpt/drvctl.c: revision 1.1 sbin/gpt/gpt.8: revisions 1.29-1.36 sbin/gpt/gpt.c: revisions 1.29-1.40 sbin/gpt/gpt.h: revisions 1.12-1.18 sbin/gpt/gpt_uuid.c: revisions 1.1-1.10 sbin/gpt/gpt_uuid.h: revisions 1.1-1.3 sbin/gpt/label.c: revisions 1.15-1.18 sbin/gpt/map.c: revision 1.7 sbin/gpt/migrate.c: revisions 1.15-1.21 sbin/gpt/recover.c: revision 1.5 sbin/gpt/remove.c: revisions 1.13-1.16 sbin/gpt/resize.c: revisions 1.9-1.11 sbin/gpt/resizedisk.c: revisions 1.1-1.6 sbin/gpt/restore.c: revisions 1.2-1.7 sbin/gpt/set.c: revisions 1.3-1.5 sbin/gpt/show.c: revision 1.16-1.21 sbin/gpt/type.c: revisions 1.1-1.6 sbin/gpt/unset.c: revisions 1.3-1.5 - record the sector size of the disk - correct confusion with end_cylinder and end_sector in MBRs -- - dump all partitions, not just ones that are in use - while here, squash a memory leak It shouldn't be necessary to backup unused partitions, however the partition GUID is created at the time the GPT is created and is never changed. It shouldn't matter if the GUID of an unused partition changes, but there may be some special case where it does. Since it isn't a big deal to record the unused partitions, might as well do it. -- Initial cut of gpt restore. This functions correctly in testing, but isn't all that pretty. It has minimal error testing and may leak memory. It also only works with empty disks. If passed "-F" flag, it will blank the disk for you. -- document the new restore subcommand -- - make gpt_gpt() available for use directly by subcommands - create new resizedisk disk subcommand for relocating backup GPT -- Fix compile error observed on i386. Use PRIu64. -- no C99isms in tool code -- - handle a GPT that isn't an exact multiple of a sector - adjust PMBR size, in case new disk is a different size - don't leak as much memory - clean up error handling somewhat -- PR/44218 - David Young -- add "type" subcommand to change a partition type -- PR/47990 - Dr. Wolfgang Stukenbrock -- add "-L <label>" as selector option -- minor toolification: need libprop... -- more toolification -- more toolification changes -- remove compat defines. -- Add internal uuid support, since the linux+macos versions of the library are different than than *bsd ones, and others might not have it at all. -- Check size of correct buffer. Note, just being pedantic as the buffer being checked is the same size as the one that should have been checked. -- correctly show partition type in the new world order -- actually return the uuid when parsing one that is in numeric format -- using random values for hdr->hdr_guid does not work very well -- oops, forgot to update end of data area -- It's HAVE_NBTOOL_CONFIG_H, not HAVE_NBTOOLS_CONFIG_H -- Fix tools build on !NetBSD. -- include <sys/endian.h> for both the non-tools build, and the tools build on a host where the file exists. Fixes a build problem on FreeBSD, reported by Herbert J. Skuhra, where tools/compat's configure detected that be32dec() and friends were available in the host's <sys/endian.h>, so tools/compat did not provide its own versions. -- "0" is not guaranteed to be unique -- provide a copy of the kernel uuid generator (with portable API calls) for tools. -- Allow specifying sector and media size on the command line. -- Remove trailing whitespace. -- Make gpt(8) generate v4 (random) uuids. Don't needlessly leak your date/time and MAC address when you edit the disk. Read from /dev/urandom rather than calling arc4random or anything, since this is a tool. (Cygwin seems to have /dev/urandom, but yell if this breaks the build on your exotic platform because it lacks /dev/urandom.) ok apb -- Paranoia: choke noisily on EOF from /dev/urandom. -- Report the argument instead of (null) when opendisk fails. -- handle constness -- handle constness better -- Add some more common partition types. -- Bump date for previous. -- Fix handling of -t option for the type command. Match any type, when no option is given, just like for the label command. -- Factor out the getdisksize() drvctl method, and provide an alternative that directly uses the disk ioctl's instead of relying on the drvctl device driver which is currently not mandatory.
Revision 1.36 / (download) - annotate - [select for diffs], Sat Dec 6 21:53:55 2014 UTC (8 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.35: +2 -2
lines
Diff to previous 1.35 (colored)
Bump date for previous.
Revision 1.35 / (download) - annotate - [select for diffs], Sat Dec 6 12:24:22 2014 UTC (8 years, 5 months ago) by mlelstv
Branch: MAIN
Changes since 1.34: +45 -6
lines
Diff to previous 1.34 (colored)
Add some more common partition types.
Revision 1.34 / (download) - annotate - [select for diffs], Sat Oct 4 07:15:54 2014 UTC (8 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.33: +2 -2
lines
Diff to previous 1.33 (colored)
Remove trailing whitespace.
Revision 1.33 / (download) - annotate - [select for diffs], Sat Oct 4 01:00:42 2014 UTC (8 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.32: +15 -2
lines
Diff to previous 1.32 (colored)
Allow specifying sector and media size on the command line.
Revision 1.32 / (download) - annotate - [select for diffs], Mon Sep 29 05:56:43 2014 UTC (8 years, 8 months ago) by jnemeth
Branch: MAIN
Changes since 1.31: +18 -6
lines
Diff to previous 1.31 (colored)
PR/47990 - Dr. Wolfgang Stukenbrock -- add "-L <label>" as selector option
Revision 1.31 / (download) - annotate - [select for diffs], Sun Sep 28 08:14:51 2014 UTC (8 years, 8 months ago) by jnemeth
Branch: MAIN
Changes since 1.30: +14 -2
lines
Diff to previous 1.30 (colored)
PR/44218 - David Young -- add "type" subcommand to change a partition type
Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 23 07:47:54 2014 UTC (8 years, 8 months ago) by jnemeth
Branch: MAIN
Changes since 1.29: +30 -2
lines
Diff to previous 1.29 (colored)
- make gpt_gpt() available for use directly by subcommands - create new resizedisk disk subcommand for relocating backup GPT
Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 20 22:36:09 2014 UTC (8 years, 8 months ago) by jnemeth
Branch: MAIN
Changes since 1.28: +20 -2
lines
Diff to previous 1.28 (colored)
document the new restore subcommand
Revision 1.11.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:25 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.11: +173 -24
lines
Diff to previous 1.11 (colored) next main 1.12 (colored)
Rebase to HEAD as of a few days ago.
Revision 1.8.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:37:28 2014 UTC (9 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.8.2.2: +173 -24
lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)
sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.28 / (download) - annotate - [select for diffs], Thu Dec 19 07:49:50 2013 UTC (9 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
netbsd-7-base
Branch point for: netbsd-7
Changes since 1.27: +2 -2
lines
Diff to previous 1.27 (colored)
Bump date for previous.
Revision 1.27 / (download) - annotate - [select for diffs], Thu Dec 19 06:46:51 2013 UTC (9 years, 5 months ago) by jnemeth
Branch: MAIN
Changes since 1.26: +11 -1
lines
Diff to previous 1.26 (colored)
Add the backup subcommand. It dumps the contents of the partition tables as a plist, which is readable by the restore subcommand. XXX restore subcommand forthcoming
Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 9 09:22:44 2013 UTC (9 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.25: +3 -3
lines
Diff to previous 1.25 (colored)
Fix typo.
Revision 1.25 / (download) - annotate - [select for diffs], Mon Dec 9 08:03:17 2013 UTC (9 years, 5 months ago) by jnemeth
Branch: MAIN
Changes since 1.24: +60 -2
lines
Diff to previous 1.24 (colored)
Add two new subcommands, "set" and "unset". These were inspired by FreeBSD's gpart(8), but the code is all mine. The purpose of these is to set and unset partition attributes.
Revision 1.24 / (download) - annotate - [select for diffs], Mon Dec 9 01:35:02 2013 UTC (9 years, 5 months ago) by jnemeth
Branch: MAIN
Changes since 1.23: +2 -1
lines
Diff to previous 1.23 (colored)
For the "show -i <entry>" subcommand, print Start and Size both in terms of number of sectors and bytes.
Revision 1.23 / (download) - annotate - [select for diffs], Sun Dec 8 09:32:51 2013 UTC (9 years, 5 months ago) by jnemeth
Branch: MAIN
Changes since 1.22: +20 -7
lines
Diff to previous 1.22 (colored)
For the add and resize subcommands, change the -s option. If there is no suffix, or the suffix is 's' or 'S', size is in sectors (as before) otherwise size is in bytes.
Revision 1.22 / (download) - annotate - [select for diffs], Fri Dec 6 02:31:31 2013 UTC (9 years, 6 months ago) by jnemeth
Branch: MAIN
Changes since 1.21: +2 -3
lines
Diff to previous 1.21 (colored)
Don't attempt to create/resize an unaligned partition if the attempt to create/resize an aligned one failed. This simplifies the code and prevents surprises. If the user wants an unaligned partition in the case where an aligned one fails, they can simply retry the command without the "-a" option. This change was requested by wiz@, and after some thought I agree with it.
Revision 1.21 / (download) - annotate - [select for diffs], Sat Nov 30 19:43:53 2013 UTC (9 years, 6 months ago) by jnemeth
Branch: MAIN
Changes since 1.20: +16 -9
lines
Diff to previous 1.20 (colored)
Add two new options: -g which shows the GUID for a partition -i which shows all the gory details for a particular option XXX the output format of -i is subject to change
Revision 1.20 / (download) - annotate - [select for diffs], Fri Nov 22 03:51:06 2013 UTC (9 years, 6 months ago) by jnemeth
Branch: MAIN
Changes since 1.19: +2 -2
lines
Diff to previous 1.19 (colored)
bump date
Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 22 03:50:05 2013 UTC (9 years, 6 months ago) by jnemeth
Branch: MAIN
Changes since 1.18: +14 -14
lines
Diff to previous 1.18 (colored)
In the manpage: - s/-b number/-b blocknr/ - s/-s count/-s sectors/ - s/-p count/-p partitions/ In the program: - s/-b lba/-b blocknr/ - s/-s lba/-s sectors/ This makes the documentation in the manpage and the program consistent and makes it more clear what the parameters are. Also, "-s lba" was just plain wrong since LBA stands for Logical Block Address[ing], and the -s option didn't represent any kind of address, but rather a size.
Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 20 08:11:36 2013 UTC (9 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.17: +2 -2
lines
Diff to previous 1.17 (colored)
shrunk.
Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 20 08:08:47 2013 UTC (9 years, 6 months ago) by jnemeth
Branch: MAIN
Changes since 1.16: +18 -2
lines
Diff to previous 1.16 (colored)
Add a resize command. This command was inspired by FreeBSD's gpart(8), but the code was written by myself.
Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 19 05:07:40 2013 UTC (9 years, 6 months ago) by jnemeth
Branch: MAIN
Changes since 1.15: +3 -2
lines
Diff to previous 1.15 (colored)
update synopsis for add subcommand
Revision 1.15 / (download) - annotate - [select for diffs], Tue Nov 19 05:03:41 2013 UTC (9 years, 6 months ago) by jnemeth
Branch: MAIN
Changes since 1.14: +14 -2
lines
Diff to previous 1.14 (colored)
Add two new options to the "add" subcommand: -a alignment -- attempt to align the start and size of the partition -l label -- supply a label for the partition These options were inspired by FreeBSD's gpart(8) command, but the code was written by me.
Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 24 06:59:03 2013 UTC (9 years, 7 months ago) by jnemeth
Branch: MAIN
Changes since 1.13: +37 -5
lines
Diff to previous 1.13 (colored)
- markup - typo; the label command labels partitions, not remove them - migrate -s isn't applicable to NetBSD - add information about the space required for migration - add a "gpt show -l" example
Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 20 21:13:23 2013 UTC (9 years, 7 months ago) by jnemeth
Branch: MAIN
Changes since 1.12: +2 -2
lines
Diff to previous 1.12 (colored)
revert typo fix; teach me to blindly take changes from upstream
Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 19 01:19:03 2013 UTC (9 years, 7 months ago) by jnemeth
Branch: MAIN
Changes since 1.11: +2 -2
lines
Diff to previous 1.11 (colored)
type fix: accommodate. -> accomodate.
Revision 1.8.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:07:34 2012 UTC (11 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.8.2.1: +2 -2
lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored)
sync with head.
Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon May 7 03:15:12 2012 UTC (11 years, 1 month ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Changes since 1.9: +3 -3
lines
Diff to previous 1.9 (colored) next main 1.10 (colored)
Pull up following revision(s) (requested by jakllsch in ticket #210): sbin/gpt/gpt.8: revision 1.10 sbin/gpt/gpt.8: revision 1.11 fix a path Bump date to date of previous change.
Revision 1.11 / (download) - annotate - [select for diffs], Wed May 2 15:42:58 2012 UTC (11 years, 1 month ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Changes since 1.10: +2 -2
lines
Diff to previous 1.10 (colored)
Bump date to date of previous change.
Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:40 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.8: +35 -3
lines
Diff to previous 1.8 (colored)
sync with head
Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 9 12:30:28 2012 UTC (11 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored)
fix a path
Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 11 13:26:45 2011 UTC (11 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.8: +34 -2
lines
Diff to previous 1.8 (colored)
Add an EXAMPLE section showing how to add a swap file system using gpt. Bump date.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Sep 19 10:40:35 2011 UTC (11 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.7: +9 -2
lines
Diff to previous 1.7 (colored)
Minimally document gpt recover. Bump date.
Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 27 01:01:07 2011 UTC (12 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: cherry-xenmp-base,
cherry-xenmp
Changes since 1.6: +25 -2
lines
Diff to previous 1.6 (colored)
Document biosboot. Xref boot(8) and installboot(8).
Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu Feb 17 11:59:24 2011 UTC (12 years, 3 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.5: +3 -1
lines
Diff to previous 1.5 (colored) next main 1.6 (colored)
Sync with HEAD
Revision 1.6 / (download) - annotate - [select for diffs], Wed Feb 9 05:11:15 2011 UTC (12 years, 3 months ago) by schnoebe
Branch: MAIN
CVS Tags: bouyer-quota2-nbase,
bouyer-quota2-base
Changes since 1.5: +3 -1
lines
Diff to previous 1.5 (colored)
List all the aliases supported for GPT partition types.
Revision 1.3.28.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:02 2009 UTC (14 years ago) by jym
Branch: jym-xensuspend
Changes since 1.3: +10 -37
lines
Diff to previous 1.3 (colored) next main 1.4 (colored)
Sync with HEAD. Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 11 18:02:00 2009 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base
Branch point for: bouyer-quota2
Changes since 1.4: +9 -36
lines
Diff to previous 1.4 (colored)
Don't workaround ancient macro argument limit with .Xo/.Xc.
Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 9 19:24:27 2009 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.3: +2 -2
lines
Diff to previous 1.3 (colored)
Fix preamble to match order set out by mdoc(7). Discussed with wiz.
Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 24 19:46:58 2006 UTC (16 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
mjf-devfs2-base,
mjf-devfs2,
mjf-devfs-base,
mjf-devfs,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: jym-xensuspend
Changes since 1.2: +2 -2
lines
Diff to previous 1.2 (colored)
fix spelling of accommodate; from Zapher.
Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 17 09:32:34 2006 UTC (16 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.1: +4 -2
lines
Diff to previous 1.1 (colored)
Serial comma. Add RCS Id. Remove superfluous quotes.
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Oct 15 22:34:17 2006 UTC (16 years, 7 months ago) by christos
Branch: FreeBSD
CVS Tags: GPT20061015
Changes since 1.1: +0 -0
lines
Diff to previous 1.1 (colored)
Import the gpt tool from FreeBSD
Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 15 22:34:17 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Initial revision