Skip to content

Commit

Permalink
Fix typos: super block -> superblock (#8974)
Browse files Browse the repository at this point in the history
Signed-off-by: Przemysław Buczkowski <przemub@yahoo.pl>
Signed-off-by: Matt Madia <mattmadia@gmail.com>
  • Loading branch information
przemub authored and mmadia committed Dec 9, 2012
1 parent a6f39df commit 46cf7a5
Show file tree
Hide file tree
Showing 32 changed files with 78 additions and 78 deletions.
4 changes: 2 additions & 2 deletions docs/develop/kernel/boot/boot_process_specs_x86.html
Expand Up @@ -28,11 +28,11 @@ <h3>Stage 1</h3>
</p>
<p>
It resides in the first first 1024 bytes of a BFS disk which usually refers to the
first two sectors of the partition in question. Since the BFS super block is located
first two sectors of the partition in question. Since the BFS superblock is located
at byte offset 512, and about 170 bytes large, this section is already reserved,
and thus cannot be used by the loader itself.<br>
The MBR only loads the first sector of a partition into memory, so it has to load
the super block (and the rest of its implementation) by itself.
the superblock (and the rest of its implementation) by itself.
</p>
<p>
The loader must be able to load the real boot loader from a certain path, and
Expand Down
4 changes: 2 additions & 2 deletions src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp
Expand Up @@ -597,7 +597,7 @@ BlockAllocator::InitializeAndClearBitmap(Transaction& transaction)
memset(buffer, 0, numBits >> 3);

off_t offset = 1;
// the bitmap starts directly after the super block
// the bitmap starts directly after the superblock

// initialize the AllocationGroup objects and clear the on-disk bitmap

Expand Down Expand Up @@ -926,7 +926,7 @@ BlockAllocator::AllocateBlocks(Transaction& transaction, int32 groupIndex,

fVolume->SuperBlock().used_blocks
= HOST_ENDIAN_TO_BFS_INT64(fVolume->UsedBlocks() + bestLength);
// We are not writing back the disk's super block - it's
// We are not writing back the disk's superblock - it's
// either done by the journaling code, or when the disk
// is unmounted.
// If the value is not correct at mount time, it will be
Expand Down
2 changes: 1 addition & 1 deletion src/add-ons/kernel/file_systems/bfs/Inode.cpp
Expand Up @@ -2556,7 +2556,7 @@ Inode::Remove(Transaction& transaction, const char* name, ino_t* _id,
adds the created inode to that parent directory. If an attribute directory
is created, it will also automatically be added to the \a parent inode as
such. However, the indices root node, and the regular root node won't be
added to the super block.
added to the superblock.
It will also create the initial B+tree for the inode if it's a directory
of any kind.
\a name may be \c NULL, but only if no \a parent is given.
Expand Down
10 changes: 5 additions & 5 deletions src/add-ons/kernel/file_systems/bfs/Journal.cpp
Expand Up @@ -499,10 +499,10 @@ Journal::_ReplayRunArray(int32* _start)
// TODO: eventually check other well known offsets, like the
// root and index dirs
if (offset == 0) {
// This log entry writes over the super block - check if
// This log entry writes over the superblock - check if
// it's valid!
if (Volume::CheckSuperBlock(data) != B_OK) {
FATAL(("Log contains invalid super block!\n"));
FATAL(("Log contains invalid superblock!\n"));
RETURN_ERROR(B_BAD_DATA);
}
}
Expand Down Expand Up @@ -663,15 +663,15 @@ Journal::_TransactionWritten(int32 transactionID, int32 event, void* _logEntry)

delete logEntry;

// update the super block, and change the disk's state, if necessary
// update the superblock, and change the disk's state, if necessary

if (update) {
if (superBlock.log_start == superBlock.log_end)
superBlock.flags = SUPER_BLOCK_DISK_CLEAN;

status_t status = journal->fVolume->WriteSuperBlock();
if (status != B_OK) {
FATAL(("_TransactionWritten: could not write back super block: %s\n",
FATAL(("_TransactionWritten: could not write back superblock: %s\n",
strerror(status)));
}

Expand Down Expand Up @@ -864,7 +864,7 @@ Journal::_WriteTransactionToLog()
logEntry->SetTransactionID(fTransactionID);
#endif

// Update the log end pointer in the super block
// Update the log end pointer in the superblock

fVolume->SuperBlock().flags = SUPER_BLOCK_DISK_DIRTY;
fVolume->SuperBlock().log_end = HOST_ENDIAN_TO_BFS_INT64(logPosition);
Expand Down
14 changes: 7 additions & 7 deletions src/add-ons/kernel/file_systems/bfs/Volume.cpp
Expand Up @@ -4,7 +4,7 @@
*/


//! super block, mounting, etc.
//! superblock, mounting, etc.


#include "Attribute.h"
Expand Down Expand Up @@ -342,13 +342,13 @@ Volume::Mount(const char* deviceName, uint32 flags)
if (opener.IsReadOnly())
fFlags |= VOLUME_READ_ONLY;

// read the super block
// read the superblock
if (Identify(fDevice, &fSuperBlock) != B_OK) {
FATAL(("invalid super block!\n"));
FATAL(("invalid superblock!\n"));
return B_BAD_VALUE;
}

// initialize short hands to the super block (to save byte swapping)
// initialize short hands to the superblock (to save byte swapping)
fBlockSize = fSuperBlock.BlockSize();
fBlockShift = fSuperBlock.BlockShift();
fAllocationGroupShift = fSuperBlock.AllocationGroupShift();
Expand Down Expand Up @@ -633,7 +633,7 @@ Volume::CheckSuperBlock(const uint8* data, uint32* _offset)
}

#ifndef BFS_LITTLE_ENDIAN_ONLY
// For PPC, the super block might be located at offset 0
// For PPC, the superblock might be located at offset 0
superBlock = (disk_super_block*)data;
if (superBlock->IsValid()) {
if (_offset != NULL)
Expand Down Expand Up @@ -692,11 +692,11 @@ Volume::Initialize(int fd, const char* name, uint32 blockSize,

off_t numBlocks = deviceSize / blockSize;

// create valid super block
// create valid superblock

fSuperBlock.Initialize(name, numBlocks, blockSize);

// initialize short hands to the super block (to save byte swapping)
// initialize short hands to the superblock (to save byte swapping)
fBlockSize = fSuperBlock.BlockSize();
fBlockShift = fSuperBlock.BlockShift();
fAllocationGroupShift = fSuperBlock.AllocationGroupShift();
Expand Down
6 changes: 3 additions & 3 deletions src/add-ons/kernel/file_systems/btrfs/Volume.cpp
Expand Up @@ -5,7 +5,7 @@
*/


//! Super block, mounting, etc.
//! Superblock, mounting, etc.


#include "Volume.h"
Expand Down Expand Up @@ -270,7 +270,7 @@ Volume::Mount(const char* deviceName, uint32 flags)
if (opener.IsReadOnly())
fFlags |= VOLUME_READ_ONLY;

// read the super block
// read the superblock
status_t status = Identify(fDevice, &fSuperBlock);
if (status != B_OK) {
ERROR("Volume::Mount(): Identify() failed\n");
Expand Down Expand Up @@ -526,7 +526,7 @@ Volume::Identify(int fd, btrfs_super_block* superBlock)
return B_IO_ERROR;

if (!superBlock->IsValid()) {
ERROR("invalid super block!\n");
ERROR("invalid superblock!\n");
return B_BAD_VALUE;
}

Expand Down
6 changes: 3 additions & 3 deletions src/add-ons/kernel/file_systems/exfat/Volume.cpp
Expand Up @@ -5,7 +5,7 @@
*/


//! Super block, mounting, etc.
//! Superblock, mounting, etc.


#include "Volume.h"
Expand Down Expand Up @@ -310,7 +310,7 @@ Volume::Mount(const char* deviceName, uint32 flags)
if (opener.IsReadOnly())
fFlags |= VOLUME_READ_ONLY;

// read the super block
// read the superblock
status_t status = Identify(fDevice, &fSuperBlock);
if (status != B_OK) {
ERROR("Volume::Mount(): Identify() failed\n");
Expand Down Expand Up @@ -502,7 +502,7 @@ Volume::Identify(int fd, exfat_super_block* superBlock)
return B_IO_ERROR;

if (!superBlock->IsValid()) {
ERROR("invalid super block!\n");
ERROR("invalid superblock!\n");
return B_BAD_VALUE;
}

Expand Down
8 changes: 4 additions & 4 deletions src/add-ons/kernel/file_systems/ext2/Volume.cpp
Expand Up @@ -5,7 +5,7 @@
*/


//! Super block, mounting, etc.
//! Superblock, mounting, etc.


#include "Volume.h"
Expand Down Expand Up @@ -300,7 +300,7 @@ Volume::Mount(const char* deviceName, uint32 flags)
fSuperBlock.CompatibleFeatures(), fSuperBlock.IncompatibleFeatures(),
fSuperBlock.ReadOnlyFeatures());

// read the super block
// read the superblock
status_t status = Identify(fDevice, &fSuperBlock);
if (status != B_OK) {
FATAL("Volume::Mount(): Identify() failed\n");
Expand All @@ -311,7 +311,7 @@ Volume::Mount(const char* deviceName, uint32 flags)
if (!IsReadOnly() && _UnsupportedReadOnlyFeatures(fSuperBlock) != 0)
return B_UNSUPPORTED;

// initialize short hands to the super block (to save byte swapping)
// initialize short hands to the superblock (to save byte swapping)
fBlockShift = fSuperBlock.BlockShift();
if (fBlockShift < 10 || fBlockShift > 16)
return B_ERROR;
Expand Down Expand Up @@ -930,7 +930,7 @@ Volume::Identify(int fd, ext2_super_block* superBlock)
return B_IO_ERROR;

if (!superBlock->IsValid()) {
FATAL("invalid super block!\n");
FATAL("invalid superblock!\n");
return B_BAD_VALUE;
}

Expand Down
8 changes: 4 additions & 4 deletions src/add-ons/kernel/file_systems/reiserfs/SuperBlock.cpp
Expand Up @@ -30,12 +30,12 @@ using std::nothrow;

/*!
\class DirEntry
\brief Represents the on-disk structure for super block of the FS.
\brief Represents the on-disk structure for superblock of the FS.
There exist two versions of the structure and this class can deal with both
of them. This class can also handle a very old layout that puts the super
block in a different location. The Init() methods tries to find and read
the super block from disk.
the superblock from disk.
*/

// read_super_block
Expand All @@ -47,13 +47,13 @@ read_super_block(int device, off_t offset, const char *magic,
{
super_block_t *superBlock = NULL;
status_t error = B_OK;
// allocate memory for the super block
// allocate memory for the superblock
if (error == B_OK) {
superBlock = new(nothrow) super_block_t;
if (!superBlock)
error = B_NO_MEMORY;
}
// read the super block
// read the superblock
if (error == B_OK) {
size_t size = sizeof(super_block_t);
if (read_pos(device, offset, superBlock, size) != (int32)size)
Expand Down
10 changes: 5 additions & 5 deletions src/add-ons/kernel/file_systems/reiserfs/Volume.cpp
Expand Up @@ -57,7 +57,7 @@ static inline C max(const C &a, const C &b) { return (a > b ? a : b); }
\brief Represents a volume.
The Volume class bundles all functionality related to a volume.
It knows the super block and has some basic functionality needed
It knows the superblock and has some basic functionality needed
for handling VNodes. Actually it should be the layer that provides the
abstraction from VNodes. The design is not strict in this respect
(the whole thing evolved while I was in the process of understanding
Expand Down Expand Up @@ -97,7 +97,7 @@ Volume::Identify(int fd, partition_data *partition)
if (fDevice < 0)
return B_ERROR;

// read and analyze super block
// read and analyze superblock
return _ReadSuperBlock();
}

Expand Down Expand Up @@ -130,7 +130,7 @@ Volume::Mount(fs_volume *fsVolume, const char *path)
if (fDevice < 0)
SET_ERROR(error, errno);
}
// read and analyze super block
// read and analyze superblock
if (error == B_OK)
error = _ReadSuperBlock();

Expand Down Expand Up @@ -534,12 +534,12 @@ Volume::_ReadSuperBlock()
error = B_NO_MEMORY;
// check FS state
if (error == B_OK && fSuperBlock->GetState() != REISERFS_VALID_FS) {
FATAL(("The super block indicates a non-valid FS! Bailing out."));
FATAL(("The superblock indicates a non-valid FS! Bailing out."));
error = B_ERROR;
}
// check FS version
if (error == B_OK && fSuperBlock->GetVersion() > REISERFS_VERSION_2) {
FATAL(("The super block indicates a version greater than 2 (%u)! "
FATAL(("The superblock indicates a version greater than 2 (%u)! "
"Bailing out.", fSuperBlock->GetVersion()));
error = B_ERROR;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add-ons/kernel/file_systems/reiserfs/reiserfs.h
Expand Up @@ -220,7 +220,7 @@ struct reiserfs_de_head
//

//
// super block's field values
// superblock's field values
//
#define REISERFS_VERSION_0 0 /* undistributed bitmap */
#define REISERFS_VERSION_1 1 /* distributed bitmap and resizer*/
Expand All @@ -232,7 +232,7 @@ struct reiserfs_de_head
#define R5_HASH 3
#define DEFAULT_HASH R5_HASH

/* this is the on disk super block */
/* this is the on disk superblock */

struct reiserfs_super_block
{
Expand Down
2 changes: 1 addition & 1 deletion src/add-ons/kernel/file_systems/userlandfs/userlandfs
Expand Up @@ -39,7 +39,7 @@ file_system obfs {
is_buffer false
}

# dump super block
# dump superblock
ioctl 56743 {
buffer_size 0
write_buffer_size 0
Expand Down
4 changes: 2 additions & 2 deletions src/bin/bfs_tools/bfsinfo.cpp
Expand Up @@ -118,7 +118,7 @@ main(int argc, char **argv)
if (argc < 2 || !strcmp(argv[1], "--help")) {
char *filename = strrchr(argv[0],'/');
fprintf(stderr,"usage: %s [-srib] <device> [allocation_group start]\n"
"\t-s\tdump super block\n"
"\t-s\tdump superblock\n"
"\t-r\tdump root node\n"
" the following options need the allocation_group/start "
"parameters:\n"
Expand Down Expand Up @@ -214,7 +214,7 @@ main(int argc, char **argv)
}

if (disk.ValidateSuperBlock() < B_OK) {
fprintf(stderr, "The disk's super block is corrupt (or it's not a BFS "
fprintf(stderr, "The disk's superblock is corrupt (or it's not a BFS "
"device)!\n");
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/bin/bfs_tools/bfswhich.cpp
Expand Up @@ -286,7 +286,7 @@ main(int argc, char** argv)
}

if (disk.ValidateSuperBlock() != B_OK) {
fprintf(stderr, "The disk's super block is corrupt!\n");
fprintf(stderr, "The disk's superblock is corrupt!\n");
return -1;
}

Expand All @@ -307,7 +307,7 @@ main(int argc, char** argv)
disk.Log().allocation_group, disk.Log().start,
disk.Log().length);
} else if (block < 1) {
printf("Super Block intersects\n");
printf("Superblock intersects\n");
} else if (block < 1 + disk.BitmapSize()) {
printf("Block bitmap intersects (start %d, end %lu)\n", 1,
disk.BitmapSize());
Expand Down
2 changes: 1 addition & 1 deletion src/bin/bfs_tools/lib/Disk.h
@@ -1,6 +1,6 @@
#ifndef DISK_H
#define DISK_H
/* Disk - handles BFS super block, disk access etc.
/* Disk - handles BFS superblock, disk access etc.
**
** Copyright (c) 2001-2003 pinc Software. All Rights Reserved.
*/
Expand Down

0 comments on commit 46cf7a5

Please sign in to comment.