From owner-svn-src-all@freebsd.org Sun Jun 21 13:34:11 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A677434F96C; Sun, 21 Jun 2020 13:34:11 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49qYRR3vnXz3yx2; Sun, 21 Jun 2020 13:34:11 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 816851E196; Sun, 21 Jun 2020 13:34:11 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 05LDYBb0058411; Sun, 21 Jun 2020 13:34:11 GMT (envelope-from hselasky@FreeBSD.org) Received: (from hselasky@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 05LDY91F058399; Sun, 21 Jun 2020 13:34:09 GMT (envelope-from hselasky@FreeBSD.org) Message-Id: <202006211334.05LDY91F058399@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hselasky set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky Date: Sun, 21 Jun 2020 13:34:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbin... X-SVN-Group: head X-SVN-Commit-Author: hselasky X-SVN-Commit-Paths: in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbin/boot0cfg X-SVN-Commit-Revision: 362466 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2020 13:34:11 -0000 Author: hselasky Date: Sun Jun 21 13:34:08 2020 New Revision: 362466 URL: https://svnweb.freebsd.org/changeset/base/362466 Log: Improve wording to be more precise and clear. No functional change intended. s/Master Boot/Main Boot/ (also called MBR) MFC after: 1 week Sponsored by: Mellanox Technologies Modified: head/contrib/file/magic/Magdir/filesystems head/contrib/tcpdump/smbutil.c head/lib/geom/part/gpart.8 head/stand/efi/include/efipart.h head/stand/i386/boot0/boot0.S head/sys/dev/hptmv/vdevice.h head/sys/geom/part/g_part_mbr.c head/usr.bin/fortune/datfiles/freebsd-tips head/usr.bin/mkimg/mbr.c head/usr.sbin/boot0cfg/boot0cfg.8 head/usr.sbin/boot0cfg/boot0cfg.c Modified: head/contrib/file/magic/Magdir/filesystems ============================================================================== --- head/contrib/file/magic/Magdir/filesystems Sun Jun 21 11:48:55 2020 (r362465) +++ head/contrib/file/magic/Magdir/filesystems Sun Jun 21 13:34:08 2020 (r362466) @@ -269,8 +269,8 @@ !:strength +65 >2 string OSBS OS/BS MBR # added by Joerg Jenderek at Feb 2013 according to https://thestarman.pcministry.com/asm/mbr/ -# and https://en.wikipedia.org/wiki/Master_Boot_Record -# test for nearly all MS-DOS Master Boot Record initial program loader (IPL) is now done by +# and https://en.wikipedia.org/wiki/Main_Boot_Record +# test for nearly all MS-DOS Main Boot Record initial program loader (IPL) is now done by # characteristic assembler instructions: xor ax,ax;mov ss,ax;mov sp,7c00 >0 search/2 \x33\xc0\x8e\xd0\xbc\x00\x7c MS-MBR # Microsoft Windows 95A and early ( https://thestarman.pcministry.com/asm/mbr/STDMBR.htm ) @@ -436,7 +436,7 @@ >>>>>>>387 string Copyright\ (c)\ 1984,1998 >>>>>>>>411 string Caldera\ Inc.\0 \b, DR-DOS MBR (IBMBIO.LDR) # -# tests for different MS-DOS Master Boot Records (MBR) moved and merged +# tests for different MS-DOS Main Boot Records (MBR) moved and merged # #>0x145 string Default:\ F \b, FREE-DOS MBR #>0x14B string Default:\ F \b, FREE-DOS 1.0 MBR @@ -1087,7 +1087,7 @@ >11 ubyte x \b+ >11 use DOS-filename -# https://en.wikipedia.org/wiki/Master_boot_record#PTE +# https://en.wikipedia.org/wiki/Main_boot_record#PTE # display standard partition table 0 name partition-table #>0 ubyte x PARTITION-TABLE Modified: head/contrib/tcpdump/smbutil.c ============================================================================== --- head/contrib/tcpdump/smbutil.c Sun Jun 21 11:48:55 2020 (r362465) +++ head/contrib/tcpdump/smbutil.c Sun Jun 21 13:34:08 2020 (r362466) @@ -1339,7 +1339,7 @@ static const nt_err_code_struct nt_errors[] = { { 0xC00000A6, "STATUS_CANT_OPEN_ANONYMOUS" }, { 0xC00000A7, "STATUS_BAD_VALIDATION_CLASS" }, { 0xC00000A8, "STATUS_BAD_TOKEN_TYPE" }, - { 0xC00000A9, "STATUS_BAD_MASTER_BOOT_RECORD" }, + { 0xC00000A9, "STATUS_BAD_MAIN_BOOT_RECORD" }, { 0xC00000AA, "STATUS_INSTRUCTION_MISALIGNMENT" }, { 0xC00000AB, "STATUS_INSTANCE_NOT_AVAILABLE" }, { 0xC00000AC, "STATUS_PIPE_NOT_AVAILABLE" }, Modified: head/lib/geom/part/gpart.8 ============================================================================== --- head/lib/geom/part/gpart.8 Sun Jun 21 11:48:55 2020 (r362465) +++ head/lib/geom/part/gpart.8 Sun Jun 21 13:34:08 2020 (r362466) @@ -582,7 +582,7 @@ Requires the .Cm GEOM_PART_GPT kernel option. .It Cm MBR -Master Boot Record is used on PCs and removable media. +Main Boot Record is used on PCs and removable media. Requires the .Cm GEOM_PART_MBR kernel option. @@ -852,7 +852,7 @@ for MBR and .Qq Li "!0657fd6d-a4ab-43c4-84e5-0933c84b4f4f" for GPT. .It Cm mbr -A partition that is sub-partitioned by a Master Boot Record (MBR). +A partition that is sub-partitioned by a Main Boot Record (MBR). This type is known as .Qq Li "!024dee41-33e7-11d3-9d69-0008c781f39f" by GPT. @@ -1020,7 +1020,7 @@ option. The GEOM PART class knows how to safely embed bootstrap code into specific partitioning scheme metadata without causing any damage. .Pp -The Master Boot Record (MBR) uses a 512-byte bootstrap code image, embedded +The Main Boot Record (MBR) uses a 512-byte bootstrap code image, embedded into the partition table's metadata area. There are two variants of this bootstrap code: .Pa /boot/mbr @@ -1256,7 +1256,7 @@ present as independent partition. .Em NOTE : This may break a mirrored volume and lead to data damage. .It Va kern.geom.part.mbr.enforce_chs : No 0 -Specify how the Master Boot Record (MBR) module does alignment. +Specify how the Main Boot Record (MBR) module does alignment. If this variable is set to a non-zero value, the module will automatically recalculate the user-specified offset and size for alignment with the CHS geometry. Modified: head/stand/efi/include/efipart.h ============================================================================== --- head/stand/efi/include/efipart.h Sun Jun 21 11:48:55 2020 (r362465) +++ head/stand/efi/include/efipart.h Sun Jun 21 13:34:08 2020 (r362466) @@ -18,7 +18,7 @@ Module Name: efipart.h Abstract: - Info about disk partitions and Master Boot Records + Info about disk partitions and Main Boot Records @@ -62,7 +62,7 @@ typedef struct { UINT8 Unknown[2]; MBR_PARTITION_RECORD Partition[MAX_MBR_PARTITIONS]; UINT16 Signature; -} MASTER_BOOT_RECORD; +} MAIN_BOOT_RECORD; #pragma pack() Modified: head/stand/i386/boot0/boot0.S ============================================================================== --- head/stand/i386/boot0/boot0.S Sun Jun 21 11:48:55 2020 (r362465) +++ head/stand/i386/boot0/boot0.S Sun Jun 21 13:34:08 2020 (r362466) @@ -53,7 +53,7 @@ /* * BOOT BLOCK STRUCTURE * - * This code implements a Master Boot Record (MBR) for an Intel/PC disk. + * This code implements a Main Boot Record (MBR) for an Intel/PC disk. * It is 512 bytes long and it is normally loaded by the BIOS (or another * bootloader) at 0:0x7c00. This code depends on %cs:%ip being 0:0x7c00 * @@ -68,7 +68,7 @@ * (called 'packet') or CHS mode, whether to force a drive number, * and whether to write back the user's selection back to disk. * - * As in every Master Boot Record, the partition table is at 0x1be, + * As in every Main Boot Record, the partition table is at 0x1be, * made of four 16-byte entries each containing: * * OFF SIZE DESCRIPTION Modified: head/sys/dev/hptmv/vdevice.h ============================================================================== --- head/sys/dev/hptmv/vdevice.h Sun Jun 21 11:48:55 2020 (r362465) +++ head/sys/dev/hptmv/vdevice.h Sun Jun 21 13:34:08 2020 (r362466) @@ -260,13 +260,13 @@ struct fdisk_partition_table ULONG numsect; /* number of sectors in partition */ }; -typedef struct _Master_Boot_Record +typedef struct _Main_Boot_Record { UCHAR bootinst[446]; /* space to hold actual boot code */ struct fdisk_partition_table parts[4]; USHORT signature; /* set to 0xAA55 to indicate PC MBR format */ } -Master_Boot_Record, *PMaster_Boot_Record; +Main_Boot_Record, *PMain_Boot_Record; #ifndef SUPPORT_ARRAY /* TODO: move it later */ Modified: head/sys/geom/part/g_part_mbr.c ============================================================================== --- head/sys/geom/part/g_part_mbr.c Sun Jun 21 11:48:55 2020 (r362465) +++ head/sys/geom/part/g_part_mbr.c Sun Jun 21 13:34:08 2020 (r362466) @@ -54,7 +54,7 @@ FEATURE(geom_part_mbr, "GEOM partitioning class for MB SYSCTL_DECL(_kern_geom_part); static SYSCTL_NODE(_kern_geom_part, OID_AUTO, mbr, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, - "GEOM_PART_MBR Master Boot Record"); + "GEOM_PART_MBR Main Boot Record"); static u_int enforce_chs = 0; SYSCTL_UINT(_kern_geom_part_mbr, OID_AUTO, enforce_chs, Modified: head/usr.bin/fortune/datfiles/freebsd-tips ============================================================================== --- head/usr.bin/fortune/datfiles/freebsd-tips Sun Jun 21 11:48:55 2020 (r362465) +++ head/usr.bin/fortune/datfiles/freebsd-tips Sun Jun 21 13:34:08 2020 (r362466) @@ -40,7 +40,7 @@ Handy bash(1) prompt: PS1="\u@\h \w \!$ " Having trouble using fetch through a firewall? Try setting the environment variable FTP_PASSIVE_MODE to yes, and see fetch(3) for more details. % -If other operating systems have damaged your Master Boot Record, you can +If other operating systems have damaged your Main Boot Record, you can reinstall it with gpart(8). See "man gpart" for details. % Modified: head/usr.bin/mkimg/mbr.c ============================================================================== --- head/usr.bin/mkimg/mbr.c Sun Jun 21 11:48:55 2020 (r362465) +++ head/usr.bin/mkimg/mbr.c Sun Jun 21 13:34:08 2020 (r362466) @@ -112,7 +112,7 @@ mbr_write(lba_t imgsz __unused, void *bootcode) static struct mkimg_scheme mbr_scheme = { .name = "mbr", - .description = "Master Boot Record", + .description = "Main Boot Record", .aliases = mbr_aliases, .metadata = mbr_metadata, .write = mbr_write, Modified: head/usr.sbin/boot0cfg/boot0cfg.8 ============================================================================== --- head/usr.sbin/boot0cfg/boot0cfg.8 Sun Jun 21 11:48:55 2020 (r362465) +++ head/usr.sbin/boot0cfg/boot0cfg.8 Sun Jun 21 13:34:08 2020 (r362466) @@ -68,7 +68,7 @@ boot manager on the specified and allows various operational parameters to be configured. .Pp On PCs, a boot manager typically occupies sector 0 of a disk, which is -known as the Master Boot Record (MBR). +known as the Main Boot Record (MBR). The MBR contains both code (to which control is passed by the PC BIOS) and data (an embedded table of defined slices). .Pp Modified: head/usr.sbin/boot0cfg/boot0cfg.c ============================================================================== --- head/usr.sbin/boot0cfg/boot0cfg.c Sun Jun 21 11:48:55 2020 (r362465) +++ head/usr.sbin/boot0cfg/boot0cfg.c Sun Jun 21 13:34:08 2020 (r362466) @@ -45,7 +45,7 @@ __FBSDID("$FreeBSD$"); #include #include -#define MBRSIZE 512 /* master boot record size */ +#define MBRSIZE 512 /* main boot record size */ #define OFF_VERSION 0x1b0 /* offset: version number, only boot0version */ #define OFF_SERIAL 0x1b8 /* offset: volume serial number */