summaryrefslogtreecommitdiff
path: root/usr/src/cmd/rmformat/rmf_slice.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2019-01-02 13:20:05 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2019-01-02 13:20:05 +0000
commite8cde0f3c5e7729d1fff5b7c87826a6650863a18 (patch)
tree88e4f45c89a249664d35d557dfacd7f1c324b3ca /usr/src/cmd/rmformat/rmf_slice.c
parentd6c0c21a61cacd3b34ad4c75bc7a2dc58a36a9c7 (diff)
parent3ab8de02e091bc75fc50aafc5cbe32c053451d88 (diff)
downloadillumos-joyent-release-20190103.tar.gz
[illumos-gate merge]release-20190103
commit 3ab8de02e091bc75fc50aafc5cbe32c053451d88 10164 crle: passing argument 2 to restrict-qualified parameter aliases with argument 1 commit cd8e64e261b359d5d54dad750f50660d3b874238 10161 libstand: set spa in zfs_probe commit e88f57b4cab0ed8f8a773d404d6781e20a4c26d7 10072 ip: timeout takes void (*)(void *) as callback commit e74ff6533275aaaa8989786dfbba24b3281e3530 10049 mboot: mboot is no longer needed commit 7931524763ef94dc16989451dddd206563d03bb4 9689 zfs range lock code should not be zpl-specific Conflicts: usr/src/uts/common/fs/zfs/zvol.c
Diffstat (limited to 'usr/src/cmd/rmformat/rmf_slice.c')
-rw-r--r--usr/src/cmd/rmformat/rmf_slice.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr/src/cmd/rmformat/rmf_slice.c b/usr/src/cmd/rmformat/rmf_slice.c
index dccd09b609..ec8d5209e0 100644
--- a/usr/src/cmd/rmformat/rmf_slice.c
+++ b/usr/src/cmd/rmformat/rmf_slice.c
@@ -25,8 +25,8 @@
/*
* rmf_slice.c :
- * This file contains the functions for parsing a slice file
- * for rmformat.
+ * This file contains the functions for parsing a slice file
+ * for rmformat.
*/
#include <sys/types.h>
@@ -786,7 +786,7 @@ str2sector(char *str)
int32_t
valid_slice_file(smedia_handle_t handle, int32_t fd, char *file_name,
- struct extvtoc *vt)
+ struct extvtoc *vt)
{
struct stat status;
int32_t ret_val;
@@ -852,17 +852,17 @@ valid_slice_file(smedia_handle_t handle, int32_t fd, char *file_name,
* in fdisk table.
* Following table describes how is it handled
* SPARC:
- * SCSI/ATAPI, floppy, pcmcia : don't check for fdisk.
+ * SCSI/ATAPI, floppy, pcmcia : don't check for fdisk.
* DKIOCGGEOM is sufficient.
* x86 : floppy, pcmcia : Don't check for fdisk. DKIOCGGEOM is sufficient.
- * SCSI/ATAPI : Check for fdisk.
+ * SCSI/ATAPI : Check for fdisk.
* if not present, assume that the solaris
* partition covers 100% of the medium
- * (minus one cylinder).
+ * (minus one cylinder).
*
- * if present :
+ * if present :
* check for active solaris partition.
- * if not found, take the first solaris
+ * if not found, take the first solaris
* partition.
* If there are no solaris partitions, its an error, stop.
*/
@@ -1114,7 +1114,7 @@ Solaris partition\n"));
static int32_t
get_fdisk(smedia_handle_t handle, int32_t fd, int32_t offset,
- struct fdisk_info *fdisk)
+ struct fdisk_info *fdisk)
{
struct mboot *boot_sec;
struct ipart *part;
@@ -1220,7 +1220,7 @@ get_fdisk(smedia_handle_t handle, int32_t fd, int32_t offset,
/*
* wrrite_defualt_label(int32_t fd)
- * fd = file descriptor for the device.
+ * fd = file descriptor for the device.
*
* For sparc solaris
* Create a vtoc partition with
@@ -1351,7 +1351,7 @@ write_default_label(smedia_handle_t handle, int32_t fd)
return;
}
- tmp_fd = open("/usr/lib/fs/ufs/mboot", O_RDONLY);
+ tmp_fd = open("/boot/pmbr", O_RDONLY);
if (tmp_fd <= 0) {
return;
}
@@ -1499,9 +1499,9 @@ write_default_label(smedia_handle_t handle, int32_t fd)
* zip/jaz media. So, the meta data on the disk should be erased.
*
* If there is a valid fdisk table,
- * erase first 64K of each partition.
+ * erase first 64K of each partition.
* If there is a valid vtoc,
- * erase first 64k of each slice.
+ * erase first 64k of each slice.
* Then erase the 0th sector (the home for vtoc and fdisk) of the disk.
* Note that teh vtoc on x86 resides in one of the fdisk partition.
* So delay the erasing of the solaris partition until the vtoc is read.