summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS10
-rw-r--r--cgdisk.812
-rw-r--r--current.spec8
-rw-r--r--diskio-unix.cc3
-rw-r--r--fixparts.84
-rw-r--r--gdisk.84
-rw-r--r--sgdisk.84
-rw-r--r--support.h2
8 files changed, 32 insertions, 15 deletions
diff --git a/NEWS b/NEWS
index b890f60..1db240f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,14 @@
-0.8.7 (?/?/2013):
+0.8.7 (7/8/2013):
-----------------
+- Modified Mac version so that it can work on /dev/rdisk* devices as well
+ as /dev/disk* devices. The result is that, when using the /dev/rdisk*
+ devices, the partition table can sometimes be re-read without removing
+ the disk or rebooting.
+
+- Added "-a" option to cgdisk to use a ">" symbol to the left of the
+ selected partition rather than ncurses highlighting.
+
- Modified "converting MBR to GPT" message to clarify that the conversion
is being held in memory, since some people have mistakenly assumed that a
"gdisk -l" operation will change an MBR disk to a GPT disk without
diff --git a/cgdisk.8 b/cgdisk.8
index 66655d3..a00bd40 100644
--- a/cgdisk.8
+++ b/cgdisk.8
@@ -1,10 +1,11 @@
.\" Copyright 2011-2013 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU General Public License
-.TH "CGDISK" "8" "0.8.6" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "CGDISK" "8" "0.8.7" "Roderick W. Smith" "GPT fdisk Manual"
.SH "NAME"
cgdisk \- Curses-based GUID partition table (GPT) manipulator
.SH "SYNOPSIS"
.BI "cgdisk "
+[ \-a ]
.I device
.SH "DESCRIPTION"
@@ -105,6 +106,13 @@ instance) to simplify creating such gaps.
.PP
+Only one command-line option is accepted, aside from the device filename:
+\fI\-a\fR. This option alters the highlighting of partitions and blocks of
+free space: Instead of using ncurses, when \fI\-a\fR is used \fBcgdisk\fR
+uses a ">" symbol to the left of the selected partition or free space.
+This option is intended for use on limited display devices such as
+teletypes and screen readers.
+
Interactions with \fBcgdisk\fR occur with its interactive text\-mode menus.
The display is broken into two interactive parts:
@@ -268,7 +276,7 @@ Write data. Use this command to save your changes.
.SH "BUGS"
-As of January 2013 (version 0.8.6), \fBcgdisk\fR should be considered
+As of July 2013 (version 0.8.7), \fBcgdisk\fR should be considered
beta software. Although the underlying partition manipulation code is much
older, the \fBcgdisk\fR ncurses user interface is brand new with GPT fdisk
version 0.8.0. Known bugs and limitations include:
diff --git a/current.spec b/current.spec
index 13308e4..933e193 100644
--- a/current.spec
+++ b/current.spec
@@ -1,11 +1,11 @@
Summary: GPT partitioning and MBR repair software
Name: gptfdisk
-Version: 0.8.6
+Version: 0.8.7
Release: 1%{?dist}
License: GPLv2
URL: http://www.rodsbooks.com/gdisk
Group: Applications/System
-Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.6.tar.gz
+Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.7.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
@@ -80,5 +80,5 @@ provides a few additional partition manipulation features.
%changelog
-* Wed Jan 9 2013 R Smith <rodsmith@rodsbooks.com> - 0.8.6
-- Created spec file for 0.8.6 release
+* Mon Jul 8 2013 R Smith <rodsmith@rodsbooks.com> - 0.8.7
+- Created spec file for 0.8.7 release
diff --git a/diskio-unix.cc b/diskio-unix.cc
index fcd10e5..1bdb77b 100644
--- a/diskio-unix.cc
+++ b/diskio-unix.cc
@@ -73,7 +73,7 @@ int DiskIO::OpenForRead(void) {
if (fstat64(fd, &st) == 0) {
if (S_ISDIR(st.st_mode))
cerr << "The specified path is a directory!\n";
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__APPLE__)
else if (S_ISCHR(st.st_mode))
cerr << "The specified path is a character device!\n";
#endif
@@ -104,6 +104,7 @@ int DiskIO::OpenForWrite(void) {
#ifdef __APPLE__
// MacOS X requires a shared lock under some circumstances....
if (fd < 0) {
+ cerr << "Warning: Devices opened with shared lock will not have their\npartition table automatically reloaded!\n";
fd = open(realFilename.c_str(), O_WRONLY | O_SHLOCK);
} // if
#endif
diff --git a/fixparts.8 b/fixparts.8
index 259fab2..bfac9f8 100644
--- a/fixparts.8
+++ b/fixparts.8
@@ -1,6 +1,6 @@
.\" Copyright 2011-2013 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU General Public License
-.TH "FIXPARTS" "8" "0.8.6" "Roderick W. Smith" "FixParts Manual"
+.TH "FIXPARTS" "8" "0.8.7" "Roderick W. Smith" "FixParts Manual"
.SH "NAME"
fixparts \- MBR partition table repair utility
.SH "SYNOPSIS"
@@ -202,7 +202,7 @@ see a summary of available options.
.PP
.SH "BUGS"
-As of January 2013 (version 0.8.6), \fBfixparts\fR
+As of July 2013 (version 0.8.7), \fBfixparts\fR
should be considered beta software. Known bugs and limitations include:
.TP
diff --git a/gdisk.8 b/gdisk.8
index e574dc9..d37904f 100644
--- a/gdisk.8
+++ b/gdisk.8
@@ -1,6 +1,6 @@
.\" Copyright 2011-2013 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU General Public License
-.TH "GDISK" "8" "0.8.6" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "GDISK" "8" "0.8.7" "Roderick W. Smith" "GPT fdisk Manual"
.SH "NAME"
gdisk \- Interactive GUID partition table (GPT) manipulator
.SH "SYNOPSIS"
@@ -561,7 +561,7 @@ entering data. When only one option is possible, \fBgdisk\fR
usually bypasses the prompt entirely.
.SH "BUGS"
-As of January 2013 (version 0.8.6), \fBgdisk\fR
+As of July 2013 (version 0.8.7), \fBgdisk\fR
should be considered beta software. Known bugs and limitations include:
.TP
diff --git a/sgdisk.8 b/sgdisk.8
index 0790b36..244b95c 100644
--- a/sgdisk.8
+++ b/sgdisk.8
@@ -1,6 +1,6 @@
.\" Copyright 2011-2013 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU General Public License
-.TH "SGDISK" "8" "0.8.6" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "SGDISK" "8" "0.8.7" "Roderick W. Smith" "GPT fdisk Manual"
.SH "NAME"
sgdisk \- Command\-line GUID partition table (GPT) manipulator for Linux and Unix
.SH "SYNOPSIS"
@@ -490,7 +490,7 @@ sgdisk, but may with gdisk)
Disk replication operation (-R) failed
.SH "BUGS"
-As of January 2013 (version 0.8.6), \fBsgdisk\fR
+As of July 2013 (version 0.8.7), \fBsgdisk\fR
should be considered beta software. Known bugs and limitations include:
.TP
diff --git a/support.h b/support.h
index 95550cd..bf60fd5 100644
--- a/support.h
+++ b/support.h
@@ -8,7 +8,7 @@
#ifndef __GPTSUPPORT
#define __GPTSUPPORT
-#define GPTFDISK_VERSION "0.8.6.3"
+#define GPTFDISK_VERSION "0.8.7"
#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__)
// Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64