Ticket #8974: 0229-Fix-typos-super-block-superblock-8974.patch

File 0229-Fix-typos-super-block-superblock-8974.patch, 50.1 KB (added by przemub, 12 years ago)
  • docs/develop/kernel/boot/boot_process_specs_x86.html

    From 66b33390a3ddb22c6840abf87bc3603c215f4b56 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Przemys=C5=82aw=20Buczkowski?= <przemub@yahoo.pl>
    Date: Wed, 14 Nov 2012 10:48:33 +0100
    Subject: [PATCH 229/509] Fix typos: super block -> superblock (#8974)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    Signed-off-by: Przemysław Buczkowski <przemub@yahoo.pl>
    ---
     docs/develop/kernel/boot/boot_process_specs_x86.html     |    4 ++--
     docs/userguide/en/applications/list-cli-apps.html        |    2 +-
     docs/userguide/es/applications/list-cli-apps.html        |    2 +-
     docs/userguide/it/applications/list-cli-apps.html        |    2 +-
     docs/userguide/pt_PT/applications/list-cli-apps.html     |    2 +-
     docs/userguide/sv_SE/applications/list-cli-apps.html     |    2 +-
     docs/userguide/uk/applications/list-cli-apps.html        |    2 +-
     src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp   |    4 ++--
     src/add-ons/kernel/file_systems/bfs/Inode.cpp            |    2 +-
     src/add-ons/kernel/file_systems/bfs/Journal.cpp          |   10 +++++-----
     src/add-ons/kernel/file_systems/bfs/Volume.cpp           |   14 +++++++-------
     src/add-ons/kernel/file_systems/btrfs/Volume.cpp         |    6 +++---
     src/add-ons/kernel/file_systems/exfat/Volume.cpp         |    6 +++---
     src/add-ons/kernel/file_systems/ext2/Journal.cpp         |    2 +-
     src/add-ons/kernel/file_systems/ext2/Volume.cpp          |    8 ++++----
     src/add-ons/kernel/file_systems/reiserfs/SuperBlock.cpp  |    8 ++++----
     src/add-ons/kernel/file_systems/reiserfs/Volume.cpp      |   10 +++++-----
     src/add-ons/kernel/file_systems/reiserfs/reiserfs.h      |    4 ++--
     src/add-ons/kernel/file_systems/userlandfs/userlandfs    |    2 +-
     src/bin/bfs_tools/bfsinfo.cpp                            |    4 ++--
     src/bin/bfs_tools/bfswhich.cpp                           |    4 ++--
     src/bin/bfs_tools/chkindex.cpp                           |    2 +-
     src/bin/bfs_tools/lib/Disk.cpp                           |   12 ++++++------
     src/bin/bfs_tools/lib/Disk.h                             |    2 +-
     src/bin/bfs_tools/recover.cpp                            |   10 +++++-----
     src/bin/coreutils/man/sync.1                             |    2 +-
     src/bin/coreutils/src/sync.c                             |    4 ++--
     src/system/boot/loader/file_systems/bfs/bfs.cpp          |    2 +-
     src/system/boot/platform/atari_m68k/devices.cpp          |    2 +-
     src/system/boot/platform/bios_ia32/devices.cpp           |    2 +-
     src/system/boot/platform/bios_ia32/stage1.S              |    4 ++--
     .../kernel/file_systems/bfs/dump_log/dump_log.cpp        |    6 +++---
     .../kernel/file_systems/bfs/fragmenter/fragmenter.cpp    |    8 ++++----
     .../kernel/file_systems/bfs/r5/BlockAllocator.cpp        |    2 +-
     src/tests/add-ons/kernel/file_systems/bfs/r5/Inode.cpp   |    2 +-
     src/tests/add-ons/kernel/file_systems/bfs/r5/Journal.cpp |    6 +++---
     src/tests/add-ons/kernel/file_systems/bfs/r5/ToDo        |    2 +-
     src/tests/add-ons/kernel/file_systems/bfs/r5/Volume.cpp  |   14 +++++++-------
     src/tests/add-ons/kernel/file_systems/fs_shell/mount.c   |    8 ++++----
     .../userlandfs/r5/src/test/reiserfs/SuperBlock.cpp       |    8 ++++----
     .../userlandfs/r5/src/test/reiserfs/Volume.cpp           |    8 ++++----
     .../userlandfs/r5/src/test/reiserfs/reiserfs.h           |    4 ++--
     .../kernel/file_systems/userlandfs/r5/userlandfs.sample  |    2 +-
     .../system/kernel/file_corruption/fs/BlockAllocator.cpp  |    2 +-
     src/tests/system/kernel/file_corruption/fs/Volume.cpp    |    4 ++--
     45 files changed, 109 insertions(+), 109 deletions(-)
    
    diff --git a/docs/develop/kernel/boot/boot_process_specs_x86.html b/docs/develop/kernel/boot/boot_process_specs_x86.html
    index a986bf1..a4f0f2a 100644
    a b  
    2828        </p>
    2929        <p>
    3030        It resides in the first first 1024 bytes of a BFS disk which usually refers to the
    31         first two sectors of the partition in question. Since the BFS super block is located
     31        first two sectors of the partition in question. Since the BFS superblock is located
    3232        at byte offset 512, and about 170 bytes large, this section is already reserved,
    3333        and thus cannot be used by the loader itself.<br>
    3434        The MBR only loads the first sector of a partition into memory, so it has to load
    35         the super block (and the rest of its implementation) by itself.
     35        the superblock (and the rest of its implementation) by itself.
    3636        </p>
    3737        <p>
    3838        The loader must be able to load the real boot loader from a certain path, and
  • docs/userguide/en/applications/list-cli-apps.html

    diff --git a/docs/userguide/en/applications/list-cli-apps.html b/docs/userguide/en/applications/list-cli-apps.html
    index 2540278..bc2c027 100644
    a b Here's a list of all commandline applications that are shipped with Haiku. Each  
    276276<tr><td><tt>stty</tt></td><td> </td><td>Shows/sets terminal characteristics. </td></tr>
    277277<tr><td><tt>su</tt></td><td> </td><td>Changes the effective user id and group. </td></tr>
    278278<tr><td><tt>sum</tt></td><td> </td><td>Prints checksum and block counts for each file. </td></tr>
    279 <tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the super block. </td></tr>
     279<tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the superblock. </td></tr>
    280280<tr><td><tt>sysinfo</tt></td><td> </td><td>Shows system info. </td></tr>
    281281<tr><td colspan="3"><a id="T" name="T"><h2><a href="#"><img src="../../images/up.png" style="border:none;float:right" alt="index" /></a>T</h2></a></td></tr>
    282282<tr><td><tt>tac</tt></td><td> </td><td>Concatenates and prints files, last line first. </td></tr>
  • docs/userguide/es/applications/list-cli-apps.html

    diff --git a/docs/userguide/es/applications/list-cli-apps.html b/docs/userguide/es/applications/list-cli-apps.html
    index 70c1f21..5ef7836 100644
    a b Here's a list of all commandline applications that are shipped with Haiku. Each  
    277277<tr><td><tt>stty</tt></td><td> </td><td>Shows/sets terminal characteristics. </td></tr>
    278278<tr><td><tt>su</tt></td><td> </td><td>Changes the effective user id and group. </td></tr>
    279279<tr><td><tt>sum</tt></td><td> </td><td>Prints checksum and block counts for each file. </td></tr>
    280 <tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the super block. </td></tr>
     280<tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the superblock. </td></tr>
    281281<tr><td><tt>sysinfo</tt></td><td> </td><td>Shows system info. </td></tr>
    282282<tr><td colspan="3"><a id="T" name="T"><h2><a href="#"><img src="../../images/up.png" style="border:none;float:right" alt="index" /></a>T</h2></a></td></tr>
    283283<tr><td><tt>tac</tt></td><td> </td><td>Concatenates and prints files, last line first. </td></tr>
  • docs/userguide/it/applications/list-cli-apps.html

    diff --git a/docs/userguide/it/applications/list-cli-apps.html b/docs/userguide/it/applications/list-cli-apps.html
    index b3a35ed..774905a 100644
    a b Qui a seguire è presentata una lista di tutte le applicazioni su riga di comand  
    281281<tr><td><tt>stty</tt></td><td> </td><td>Visualizza o imposta le caratteristiche del terminale.</td></tr>
    282282<tr><td><tt>su</tt></td><td> </td><td>Cambia l'effettivo user id e il gruppo.</td></tr>
    283283<tr><td><tt>sum</tt></td><td> </td><td>Stampa il checksum e il block count per ciascun file.</td></tr>
    284 <tr><td><tt>sync</tt></td><td> </td><td>Forza i blocchi modificati ad essere scritti sul disco, aggiorna il super block.</td></tr>
     284<tr><td><tt>sync</tt></td><td> </td><td>Forza i blocchi modificati ad essere scritti sul disco, aggiorna il superblock.</td></tr>
    285285<tr><td><tt>sysinfo</tt></td><td> </td><td>Mostra informazioni sul sistema.</td></tr>
    286286<tr><td colspan="3"><a id="T" name="T"><h2><a href="#"><img src="../../images/up.png" style="border:none;float:right" alt="index" /></a>T</h2></a></td></tr>
    287287<tr><td><tt>tac</tt></td><td> </td><td>Concatena e stampa file, comincia dall'ultima riga.</td></tr>
  • docs/userguide/pt_PT/applications/list-cli-apps.html

    diff --git a/docs/userguide/pt_PT/applications/list-cli-apps.html b/docs/userguide/pt_PT/applications/list-cli-apps.html
    index bc08295..946e016 100644
    a b Here's a list of all commandline applications that are shipped with Haiku. Each  
    277277<tr><td><tt>stty</tt></td><td> </td><td>Shows/sets terminal characteristics. </td></tr>
    278278<tr><td><tt>su</tt></td><td> </td><td>Changes the effective user id and group. </td></tr>
    279279<tr><td><tt>sum</tt></td><td> </td><td>Prints checksum and block counts for each file. </td></tr>
    280 <tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the super block. </td></tr>
     280<tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the superblock. </td></tr>
    281281<tr><td><tt>sysinfo</tt></td><td> </td><td>Shows system info. </td></tr>
    282282<tr><td colspan="3"><a id="T" name="T"><h2><a href="#"><img src="../../images/up.png" style="border:none;float:right" alt="index" /></a>T</h2></a></td></tr>
    283283<tr><td><tt>tac</tt></td><td> </td><td>Concatenates and prints files, last line first. </td></tr>
  • docs/userguide/sv_SE/applications/list-cli-apps.html

    diff --git a/docs/userguide/sv_SE/applications/list-cli-apps.html b/docs/userguide/sv_SE/applications/list-cli-apps.html
    index cb91645..38d64f2 100644
    a b Here's a list of all commandline applications that are shipped with Haiku. Each  
    280280<tr><td><tt>stty</tt></td><td> </td><td>Shows/sets terminal characteristics. </td></tr>
    281281<tr><td><tt>su</tt></td><td> </td><td>Changes the effective user id and group. </td></tr>
    282282<tr><td><tt>sum</tt></td><td> </td><td>Prints checksum and block counts for each file. </td></tr>
    283 <tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the super block. </td></tr>
     283<tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the superblock. </td></tr>
    284284<tr><td><tt>sysinfo</tt></td><td> </td><td>Shows system info. </td></tr>
    285285<tr><td colspan="3"><a id="T" name="T"><h2><a href="#"><img src="../../images/up.png" style="border:none;float:right" alt="index" /></a>T</h2></a></td></tr>
    286286<tr><td><tt>tac</tt></td><td> </td><td>Concatenates and prints files, last line first. </td></tr>
  • docs/userguide/uk/applications/list-cli-apps.html

    diff --git a/docs/userguide/uk/applications/list-cli-apps.html b/docs/userguide/uk/applications/list-cli-apps.html
    index fdf7f1f..61b96ae 100644
    a b Here's a list of all commandline applications that are shipped with Haiku. Each  
    277277<tr><td><tt>stty</tt></td><td> </td><td>Shows/sets terminal characteristics. </td></tr>
    278278<tr><td><tt>su</tt></td><td> </td><td>Changes the effective user id and group. </td></tr>
    279279<tr><td><tt>sum</tt></td><td> </td><td>Prints checksum and block counts for each file. </td></tr>
    280 <tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the super block. </td></tr>
     280<tr><td><tt>sync</tt></td><td> </td><td>Forces changed blocks to disk, updates the superblock. </td></tr>
    281281<tr><td><tt>sysinfo</tt></td><td> </td><td>Shows system info. </td></tr>
    282282<tr><td colspan="3"><a id="T" name="T"><h2><a href="#"><img src="../../images/up.png" style="border:none;float:right" alt="index" /></a>T</h2></a></td></tr>
    283283<tr><td><tt>tac</tt></td><td> </td><td>Concatenates and prints files, last line first. </td></tr>
  • src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp

    diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp
    index 2b0baac..43a1dd6 100644
    a b BlockAllocator::InitializeAndClearBitmap(Transaction& transaction)  
    597597    memset(buffer, 0, numBits >> 3);
    598598
    599599    off_t offset = 1;
    600         // the bitmap starts directly after the super block
     600        // the bitmap starts directly after the superblock
    601601
    602602    // initialize the AllocationGroup objects and clear the on-disk bitmap
    603603
    BlockAllocator::AllocateBlocks(Transaction& transaction, int32 groupIndex,  
    926926
    927927    fVolume->SuperBlock().used_blocks
    928928        = HOST_ENDIAN_TO_BFS_INT64(fVolume->UsedBlocks() + bestLength);
    929         // We are not writing back the disk's super block - it's
     929        // We are not writing back the disk's superblock - it's
    930930        // either done by the journaling code, or when the disk
    931931        // is unmounted.
    932932        // If the value is not correct at mount time, it will be
  • src/add-ons/kernel/file_systems/bfs/Inode.cpp

    diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.cpp b/src/add-ons/kernel/file_systems/bfs/Inode.cpp
    index 8abf77c..ff1ddca 100644
    a b Inode::Remove(Transaction& transaction, const char* name, ino_t* _id,  
    25562556    adds the created inode to that parent directory. If an attribute directory
    25572557    is created, it will also automatically  be added to the \a parent inode as
    25582558    such. However, the indices root node, and the regular root node won't be
    2559     added to the super block.
     2559    added to the superblock.
    25602560    It will also create the initial B+tree for the inode if it's a directory
    25612561    of any kind.
    25622562    \a name may be \c NULL, but only if no \a parent is given.
  • src/add-ons/kernel/file_systems/bfs/Journal.cpp

    diff --git a/src/add-ons/kernel/file_systems/bfs/Journal.cpp b/src/add-ons/kernel/file_systems/bfs/Journal.cpp
    index 473ad28..91db4c4 100644
    a b Journal::_ReplayRunArray(int32* _start)  
    499499            // TODO: eventually check other well known offsets, like the
    500500            // root and index dirs
    501501            if (offset == 0) {
    502                 // This log entry writes over the super block - check if
     502                // This log entry writes over the superblock - check if
    503503                // it's valid!
    504504                if (Volume::CheckSuperBlock(data) != B_OK) {
    505                     FATAL(("Log contains invalid super block!\n"));
     505                    FATAL(("Log contains invalid superblock!\n"));
    506506                    RETURN_ERROR(B_BAD_DATA);
    507507                }
    508508            }
    Journal::_TransactionWritten(int32 transactionID, int32 event, void* _logEntry)  
    663663
    664664    delete logEntry;
    665665
    666     // update the super block, and change the disk's state, if necessary
     666    // update the superblock, and change the disk's state, if necessary
    667667
    668668    if (update) {
    669669        if (superBlock.log_start == superBlock.log_end)
    Journal::_TransactionWritten(int32 transactionID, int32 event, void* _logEntry)  
    671671
    672672        status_t status = journal->fVolume->WriteSuperBlock();
    673673        if (status != B_OK) {
    674             FATAL(("_TransactionWritten: could not write back super block: %s\n",
     674            FATAL(("_TransactionWritten: could not write back superblock: %s\n",
    675675                strerror(status)));
    676676        }
    677677
    Journal::_WriteTransactionToLog()  
    864864    logEntry->SetTransactionID(fTransactionID);
    865865#endif
    866866
    867     // Update the log end pointer in the super block
     867    // Update the log end pointer in the superblock
    868868
    869869    fVolume->SuperBlock().flags = SUPER_BLOCK_DISK_DIRTY;
    870870    fVolume->SuperBlock().log_end = HOST_ENDIAN_TO_BFS_INT64(logPosition);
  • src/add-ons/kernel/file_systems/bfs/Volume.cpp

    diff --git a/src/add-ons/kernel/file_systems/bfs/Volume.cpp b/src/add-ons/kernel/file_systems/bfs/Volume.cpp
    index 42b9bea..2ce9f5f 100644
    a b  
    44 */
    55
    66
    7 //! super block, mounting, etc.
     7//! superblock, mounting, etc.
    88
    99
    1010#include "Attribute.h"
    Volume::Mount(const char* deviceName, uint32 flags)  
    342342    if (opener.IsReadOnly())
    343343        fFlags |= VOLUME_READ_ONLY;
    344344
    345     // read the super block
     345    // read the superblock
    346346    if (Identify(fDevice, &fSuperBlock) != B_OK) {
    347         FATAL(("invalid super block!\n"));
     347        FATAL(("invalid superblock!\n"));
    348348        return B_BAD_VALUE;
    349349    }
    350350
    351     // initialize short hands to the super block (to save byte swapping)
     351    // initialize short hands to the superblock (to save byte swapping)
    352352    fBlockSize = fSuperBlock.BlockSize();
    353353    fBlockShift = fSuperBlock.BlockShift();
    354354    fAllocationGroupShift = fSuperBlock.AllocationGroupShift();
    Volume::CheckSuperBlock(const uint8* data, uint32* _offset)  
    633633    }
    634634
    635635#ifndef BFS_LITTLE_ENDIAN_ONLY
    636     // For PPC, the super block might be located at offset 0
     636    // For PPC, the superblock might be located at offset 0
    637637    superBlock = (disk_super_block*)data;
    638638    if (superBlock->IsValid()) {
    639639        if (_offset != NULL)
    Volume::Initialize(int fd, const char* name, uint32 blockSize,  
    692692
    693693    off_t numBlocks = deviceSize / blockSize;
    694694
    695     // create valid super block
     695    // create valid superblock
    696696
    697697    fSuperBlock.Initialize(name, numBlocks, blockSize);
    698698
    699     // initialize short hands to the super block (to save byte swapping)
     699    // initialize short hands to the superblock (to save byte swapping)
    700700    fBlockSize = fSuperBlock.BlockSize();
    701701    fBlockShift = fSuperBlock.BlockShift();
    702702    fAllocationGroupShift = fSuperBlock.AllocationGroupShift();
  • src/add-ons/kernel/file_systems/btrfs/Volume.cpp

    diff --git a/src/add-ons/kernel/file_systems/btrfs/Volume.cpp b/src/add-ons/kernel/file_systems/btrfs/Volume.cpp
    index 13fc482..0afac4c 100644
    a b  
    55 */
    66
    77
    8 //! Super block, mounting, etc.
     8//! Superblock, mounting, etc.
    99
    1010
    1111#include "Volume.h"
    Volume::Mount(const char* deviceName, uint32 flags)  
    270270    if (opener.IsReadOnly())
    271271        fFlags |= VOLUME_READ_ONLY;
    272272
    273     // read the super block
     273    // read the superblock
    274274    status_t status = Identify(fDevice, &fSuperBlock);
    275275    if (status != B_OK) {
    276276        ERROR("Volume::Mount(): Identify() failed\n");
    Volume::Identify(int fd, btrfs_super_block* superBlock)  
    526526        return B_IO_ERROR;
    527527
    528528    if (!superBlock->IsValid()) {
    529         ERROR("invalid super block!\n");
     529        ERROR("invalid superblock!\n");
    530530        return B_BAD_VALUE;
    531531    }
    532532
  • src/add-ons/kernel/file_systems/exfat/Volume.cpp

    diff --git a/src/add-ons/kernel/file_systems/exfat/Volume.cpp b/src/add-ons/kernel/file_systems/exfat/Volume.cpp
    index 528ecb4..1881909 100644
    a b  
    55 */
    66
    77
    8 //! Super block, mounting, etc.
     8//! Superblock, mounting, etc.
    99
    1010
    1111#include "Volume.h"
    Volume::Mount(const char* deviceName, uint32 flags)  
    310310    if (opener.IsReadOnly())
    311311        fFlags |= VOLUME_READ_ONLY;
    312312
    313     // read the super block
     313    // read the superblock
    314314    status_t status = Identify(fDevice, &fSuperBlock);
    315315    if (status != B_OK) {
    316316        ERROR("Volume::Mount(): Identify() failed\n");
    Volume::Identify(int fd, exfat_super_block* superBlock)  
    502502        return B_IO_ERROR;
    503503
    504504    if (!superBlock->IsValid()) {
    505         ERROR("invalid super block!\n");
     505        ERROR("invalid superblock!\n");
    506506        return B_BAD_VALUE;
    507507    }
    508508
  • src/add-ons/kernel/file_systems/ext2/Journal.cpp

    diff --git a/src/add-ons/kernel/file_systems/ext2/Journal.cpp b/src/add-ons/kernel/file_systems/ext2/Journal.cpp
    index d7f2d4c..e2094ac 100644
    a b Journal::_LoadSuperBlock()  
    702702    if (status != B_OK)
    703703        return status;
    704704   
    705     TRACE("Journal::_LoadSuperBlock(): super block physical block: %llu\n",
     705    TRACE("Journal::_LoadSuperBlock(): superblock physical block: %llu\n",
    706706        superblockPos);
    707707   
    708708    JournalSuperBlock superblock;
  • src/add-ons/kernel/file_systems/ext2/Volume.cpp

    diff --git a/src/add-ons/kernel/file_systems/ext2/Volume.cpp b/src/add-ons/kernel/file_systems/ext2/Volume.cpp
    index 3ff776a..b833eee 100644
    a b  
    55 */
    66
    77
    8 //! Super block, mounting, etc.
     8//! Superblock, mounting, etc.
    99
    1010
    1111#include "Volume.h"
    Volume::Mount(const char* deviceName, uint32 flags)  
    300300        fSuperBlock.CompatibleFeatures(), fSuperBlock.IncompatibleFeatures(),
    301301        fSuperBlock.ReadOnlyFeatures());
    302302
    303     // read the super block
     303    // read the superblock
    304304    status_t status = Identify(fDevice, &fSuperBlock);
    305305    if (status != B_OK) {
    306306        FATAL("Volume::Mount(): Identify() failed\n");
    Volume::Mount(const char* deviceName, uint32 flags)  
    311311    if (!IsReadOnly() && _UnsupportedReadOnlyFeatures(fSuperBlock) != 0)
    312312        return B_UNSUPPORTED;
    313313
    314     // initialize short hands to the super block (to save byte swapping)
     314    // initialize short hands to the superblock (to save byte swapping)
    315315    fBlockShift = fSuperBlock.BlockShift();
    316316    if (fBlockShift < 10 || fBlockShift > 16)
    317317        return B_ERROR;
    Volume::Identify(int fd, ext2_super_block* superBlock)  
    930930        return B_IO_ERROR;
    931931
    932932    if (!superBlock->IsValid()) {
    933         FATAL("invalid super block!\n");
     933        FATAL("invalid superblock!\n");
    934934        return B_BAD_VALUE;
    935935    }
    936936
  • src/add-ons/kernel/file_systems/reiserfs/SuperBlock.cpp

    diff --git a/src/add-ons/kernel/file_systems/reiserfs/SuperBlock.cpp b/src/add-ons/kernel/file_systems/reiserfs/SuperBlock.cpp
    index 6fe1507..0051223 100644
    a b using std::nothrow;  
    3030
    3131/*!
    3232    \class DirEntry
    33     \brief Represents the on-disk structure for super block of the FS.
     33    \brief Represents the on-disk structure for superblock of the FS.
    3434
    3535    There exist two versions of the structure and this class can deal with both
    3636    of them. This class can also handle a very old layout that puts the super
    3737    block in a different location. The Init() methods tries to find and read
    38     the super block from disk.
     38    the superblock from disk.
    3939*/
    4040
    4141// read_super_block
    read_super_block(int device, off_t offset, const char *magic,  
    4747{
    4848    super_block_t *superBlock = NULL;
    4949    status_t error = B_OK;
    50     // allocate memory for the super block
     50    // allocate memory for the superblock
    5151    if (error == B_OK) {
    5252        superBlock = new(nothrow) super_block_t;
    5353        if (!superBlock)
    5454            error = B_NO_MEMORY;
    5555    }
    56     // read the super block
     56    // read the superblock
    5757    if (error == B_OK) {
    5858        size_t size = sizeof(super_block_t);
    5959        if (read_pos(device, offset, superBlock, size) != (int32)size)
  • src/add-ons/kernel/file_systems/reiserfs/Volume.cpp

    diff --git a/src/add-ons/kernel/file_systems/reiserfs/Volume.cpp b/src/add-ons/kernel/file_systems/reiserfs/Volume.cpp
    index f40ff2f..5c84896 100644
    a b static inline C max(const C &a, const C &b) { return (a > b ? a : b); }  
    5757    \brief Represents a volume.
    5858
    5959    The Volume class bundles all functionality related to a volume.
    60     It knows the super block and has some basic functionality needed
     60    It knows the superblock and has some basic functionality needed
    6161    for handling VNodes. Actually it should be the layer that provides the
    6262    abstraction from VNodes. The design is not strict in this respect
    6363    (the whole thing evolved while I was in the process of understanding
    Volume::Identify(int fd, partition_data *partition)  
    9797    if (fDevice < 0)
    9898        return B_ERROR;
    9999
    100     // read and analyze super block
     100    // read and analyze superblock
    101101    return _ReadSuperBlock();
    102102}
    103103
    Volume::Mount(fs_volume *fsVolume, const char *path)  
    130130        if (fDevice < 0)
    131131            SET_ERROR(error, errno);
    132132    }
    133     // read and analyze super block
     133    // read and analyze superblock
    134134    if (error == B_OK)
    135135        error = _ReadSuperBlock();
    136136
    Volume::_ReadSuperBlock()  
    534534        error = B_NO_MEMORY;
    535535    // check FS state
    536536    if (error == B_OK && fSuperBlock->GetState() != REISERFS_VALID_FS) {
    537         FATAL(("The super block indicates a non-valid FS! Bailing out."));
     537        FATAL(("The superblock indicates a non-valid FS! Bailing out."));
    538538        error = B_ERROR;
    539539    }
    540540    // check FS version
    541541    if (error == B_OK && fSuperBlock->GetVersion() > REISERFS_VERSION_2) {
    542         FATAL(("The super block indicates a version greater than 2 (%u)! "
     542        FATAL(("The superblock indicates a version greater than 2 (%u)! "
    543543               "Bailing out.", fSuperBlock->GetVersion()));
    544544        error = B_ERROR;
    545545    }
  • src/add-ons/kernel/file_systems/reiserfs/reiserfs.h

    diff --git a/src/add-ons/kernel/file_systems/reiserfs/reiserfs.h b/src/add-ons/kernel/file_systems/reiserfs/reiserfs.h
    index d51315f..35aa36a 100644
    a b struct reiserfs_de_head  
    220220//
    221221
    222222//
    223 // super block's field values
     223// superblock's field values
    224224//
    225225#define REISERFS_VERSION_0 0 /* undistributed bitmap */
    226226#define REISERFS_VERSION_1 1 /* distributed bitmap and resizer*/
    struct reiserfs_de_head  
    232232#define R5_HASH   3
    233233#define DEFAULT_HASH R5_HASH
    234234
    235 /* this is the on disk super block */
     235/* this is the on disk superblock */
    236236
    237237struct reiserfs_super_block
    238238{
  • src/add-ons/kernel/file_systems/userlandfs/userlandfs

    diff --git a/src/add-ons/kernel/file_systems/userlandfs/userlandfs b/src/add-ons/kernel/file_systems/userlandfs/userlandfs
    index aef6d9e..050f4e3 100644
    a b file_system obfs {  
    3939        is_buffer           false
    4040    }
    4141
    42     # dump super block
     42    # dump superblock
    4343    ioctl 56743 {
    4444        buffer_size         0
    4545        write_buffer_size   0
  • src/bin/bfs_tools/bfsinfo.cpp

    diff --git a/src/bin/bfs_tools/bfsinfo.cpp b/src/bin/bfs_tools/bfsinfo.cpp
    index 6b7438b..44b64cc 100644
    a b main(int argc, char **argv)  
    118118    if (argc < 2 || !strcmp(argv[1], "--help")) {
    119119        char *filename = strrchr(argv[0],'/');
    120120        fprintf(stderr,"usage: %s [-srib] <device> [allocation_group start]\n"
    121                 "\t-s\tdump super block\n"
     121                "\t-s\tdump superblock\n"
    122122                "\t-r\tdump root node\n"
    123123                "       the following options need the allocation_group/start "
    124124                    "parameters:\n"
    main(int argc, char **argv)  
    214214    }
    215215
    216216    if (disk.ValidateSuperBlock() < B_OK) {
    217         fprintf(stderr, "The disk's super block is corrupt (or it's not a BFS "
     217        fprintf(stderr, "The disk's superblock is corrupt (or it's not a BFS "
    218218            "device)!\n");
    219219        return 0;
    220220    }
  • src/bin/bfs_tools/bfswhich.cpp

    diff --git a/src/bin/bfs_tools/bfswhich.cpp b/src/bin/bfs_tools/bfswhich.cpp
    index 973cdce..61b870a 100644
    a b main(int argc, char** argv)  
    286286    }
    287287
    288288    if (disk.ValidateSuperBlock() != B_OK) {
    289         fprintf(stderr, "The disk's super block is corrupt!\n");
     289        fprintf(stderr, "The disk's superblock is corrupt!\n");
    290290        return -1;
    291291    }
    292292
    main(int argc, char** argv)  
    307307            disk.Log().allocation_group, disk.Log().start,
    308308            disk.Log().length);
    309309    } else if (block < 1) {
    310         printf("Super Block intersects\n");
     310        printf("Superblock intersects\n");
    311311    } else if (block < 1 + disk.BitmapSize()) {
    312312        printf("Block bitmap intersects (start %d, end %lu)\n", 1,
    313313            disk.BitmapSize());
  • src/bin/bfs_tools/chkindex.cpp

    diff --git a/src/bin/bfs_tools/chkindex.cpp b/src/bin/bfs_tools/chkindex.cpp
    index e31a827..4659dff 100644
    a b main(int argc,char **argv)  
    479479   
    480480    if (disk.ValidateSuperBlock() < B_OK)
    481481    {
    482         fprintf(stderr,"The disk's super block is corrupt!\n");
     482        fprintf(stderr,"The disk's superblock is corrupt!\n");
    483483        return -1;
    484484    }
    485485   
  • src/bin/bfs_tools/lib/Disk.cpp

    diff --git a/src/bin/bfs_tools/lib/Disk.cpp b/src/bin/bfs_tools/lib/Disk.cpp
    index 1e2af9d..f83b00a 100644
    a b  
    22 * Copyright (c) 2001-2008 pinc Software. All Rights Reserved.
    33 */
    44
    5 //! Handles BFS super block, disk access etc.
     5//! Handles BFS superblock, disk access etc.
    66
    77#include "Disk.h"
    88#include "dump.h"
    Disk::Disk(const char *deviceName, bool rawMode, off_t start, off_t stop)  
    155155
    156156    if (fFile.ReadAt(512 + fRawDiskOffset, &fSuperBlock,
    157157            sizeof(disk_super_block)) < 1)
    158         fprintf(stderr,"Disk: Could not read super block\n");
     158        fprintf(stderr,"Disk: Could not read superblock\n");
    159159
    160160    //dump_super_block(&fSuperBlock);
    161161}
    Disk::ScanForSuperBlock(off_t start, off_t stop)  
    274274                printf("\n(%ld) *** BFS superblock found at: %Ld\n",superBlocks.CountItems() + 1,offset);
    275275                dump_super_block(super);
    276276
    277                 // add a copy of the super block to the list
     277                // add a copy of the superblock to the list
    278278                bfs_disk_info *info = (bfs_disk_info *)malloc(sizeof(bfs_disk_info));
    279279                if (info == NULL)
    280280                    return B_NO_MEMORY;
    281281
    282282                memcpy(&info->super_block, super, sizeof(disk_super_block));
    283283                info->offset = offset + i - 512;
    284                     /* location off the BFS super block is 512 bytes after the partition start */
     284                    /* location off the BFS superblock is 512 bytes after the partition start */
    285285                superBlocks.AddItem(info);
    286286            }
    287287        }
    288288    }
    289289
    290290    if (superBlocks.CountItems() == 0) {
    291         puts("\nCouldn't find any BFS super blocks!");
     291        puts("\nCouldn't find any BFS superblocks!");
    292292        return B_ENTRY_NOT_FOUND;
    293293    }
    294294
    Disk::RecreateSuperBlock()  
    408408    bfs_inode indexDir;
    409409    bfs_inode rootDir;
    410410    if (ScanForIndexAndRoot(&indexDir,&rootDir) < B_OK) {
    411         fprintf(stderr,"ERROR: Could not find root directory! Trying to recreate the super block will have no effect!\n\tSetting standard values for the root dir.\n");
     411        fprintf(stderr,"ERROR: Could not find root directory! Trying to recreate the superblock will have no effect!\n\tSetting standard values for the root dir.\n");
    412412        rootDir.inode_num.allocation_group = 8;
    413413        rootDir.inode_num.start = 0;
    414414        rootDir.inode_num.length = 1;
  • src/bin/bfs_tools/lib/Disk.h

    diff --git a/src/bin/bfs_tools/lib/Disk.h b/src/bin/bfs_tools/lib/Disk.h
    index d1e8997..d0615c6 100644
    a b  
    11#ifndef DISK_H
    22#define DISK_H
    3 /* Disk - handles BFS super block, disk access etc.
     3/* Disk - handles BFS superblock, disk access etc.
    44**
    55** Copyright (c) 2001-2003 pinc Software. All Rights Reserved.
    66*/
  • src/bin/bfs_tools/recover.cpp

    diff --git a/src/bin/bfs_tools/recover.cpp b/src/bin/bfs_tools/recover.cpp
    index 7a114ad..f818144 100644
    a b usage(char *name)  
    669669        "\t-i\trecreate indices on target disk\n"
    670670        "\t-d\tdump missing and recreated i-nodes\n"
    671671        "\t-r\tdisk access in raw mode (use only if the partition table is invalid)\n"
    672         "\t-s\trecreate super block and exit (for experts only, don't use this\n"
     672        "\t-s\trecreate superblock and exit (for experts only, don't use this\n"
    673673        "\t\tif you don't know what you're doing)\n"
    674674        "\t-v\tverbose output\n", name);
    675675    exit(-1);
    main(int argc, char **argv)  
    764764    bool recreatedSuperBlock = false;
    765765
    766766    if (disk.ValidateSuperBlock() < B_OK) {
    767         fprintf(stderr, "The disk's super block is corrupt!\n");
     767        fprintf(stderr, "The disk's superblock is corrupt!\n");
    768768        if (disk.RecreateSuperBlock() < B_OK) {
    769             fprintf(stderr, "Can't recreate the disk's super block, sorry!\n");
     769            fprintf(stderr, "Can't recreate the disk's superblock, sorry!\n");
    770770            return -1;
    771771        }
    772772        recreatedSuperBlock = true;
    773773    }
    774774    if (gVerbose) {
    775         puts("\n*** The super block:\n");
     775        puts("\n*** The superblock:\n");
    776776        dump_super_block(disk.SuperBlock());
    777777    }
    778778
    main(int argc, char **argv)  
    785785        status_t status = disk.WriteAt(512, disk.SuperBlock(),
    786786            sizeof(disk_super_block));
    787787        if (status < B_OK) {
    788             fprintf(stderr, "Could not write super block: %s!\n",
     788            fprintf(stderr, "Could not write superblock: %s!\n",
    789789                strerror(status));
    790790            return 1;
    791791        }
  • src/bin/coreutils/man/sync.1

    diff --git a/src/bin/coreutils/man/sync.1 b/src/bin/coreutils/man/sync.1
    index ac69912..3c17ffe 100644
    a b sync \- flush file system buffers  
    88.SH DESCRIPTION
    99.\" Add any additional description here
    1010.PP
    11 Force changed blocks to disk, update the super block.
     11Force changed blocks to disk, update the superblock.
    1212.TP
    1313\fB\-\-help\fR
    1414display this help and exit
  • src/bin/coreutils/src/sync.c

    diff --git a/src/bin/coreutils/src/sync.c b/src/bin/coreutils/src/sync.c
    index 730df10..81a5fa9 100644
    a b  
    1 /* sync - update the super block
     1/* sync - update the superblock
    22   Copyright (C) 1994-2004, 2008-2010 Free Software Foundation, Inc.
    33
    44   This program is free software: you can redistribute it and/or modify
    usage (int status)  
    4040    {
    4141      printf (_("Usage: %s [OPTION]\n"), program_name);
    4242      fputs (_("\
    43 Force changed blocks to disk, update the super block.\n\
     43Force changed blocks to disk, update the superblock.\n\
    4444\n\
    4545"), stdout);
    4646      fputs (HELP_OPTION_DESCRIPTION, stdout);
  • src/system/boot/loader/file_systems/bfs/bfs.cpp

    diff --git a/src/system/boot/loader/file_systems/bfs/bfs.cpp b/src/system/boot/loader/file_systems/bfs/bfs.cpp
    index 26da30f..f6cfd3b 100644
    a b Volume::Volume(boot::Partition *partition)  
    5454#endif
    5555    }
    5656
    57     TRACE(("bfs: we do have a valid super block (name = %s)!\n", fSuperBlock.name));
     57    TRACE(("bfs: we do have a valid superblock (name = %s)!\n", fSuperBlock.name));
    5858
    5959    fRootNode = new(nothrow) BFS::Directory(*this, Root());
    6060    if (fRootNode == NULL)
  • src/system/boot/platform/atari_m68k/devices.cpp

    diff --git a/src/system/boot/platform/atari_m68k/devices.cpp b/src/system/boot/platform/atari_m68k/devices.cpp
    index 8abfa67..8c269ca 100644
    a b fill_disk_identifier_v2(disk_identifier &disk, const drive_parameters &parameter  
    317317static off_t
    318318get_next_check_sum_offset(int32 index, off_t maxSize)
    319319{
    320     // The boot block often contains the disk super block, and should be
     320    // The boot block often contains the disk superblock, and should be
    321321    // unique enough for most cases
    322322    if (index < 2)
    323323        return index * 512;
  • src/system/boot/platform/bios_ia32/devices.cpp

    diff --git a/src/system/boot/platform/bios_ia32/devices.cpp b/src/system/boot/platform/bios_ia32/devices.cpp
    index a8cfd1b..e152741 100644
    a b fill_disk_identifier_v2(disk_identifier &disk, const drive_parameters &parameter  
    368368static off_t
    369369get_next_check_sum_offset(int32 index, off_t maxSize)
    370370{
    371     // The boot block often contains the disk super block, and should be
     371    // The boot block often contains the disk superblock, and should be
    372372    // unique enough for most cases
    373373    if (index < 2)
    374374        return index * 512;
  • src/system/boot/platform/bios_ia32/stage1.S

    diff --git a/src/system/boot/platform/bios_ia32/stage1.S b/src/system/boot/platform/bios_ia32/stage1.S
    index d8ce118..af46369 100644
    a b struc BlockRun  
    130130    .length             resw    1
    131131endstruc
    132132
    133 ; BFS super block
     133; BFS superblock
    134134struc   SuperBlock
    135135    .name           resb    32
    136136    .magic1         resd    1
    kBootBlockSignature dw 0xaa55  
    665665
    666666second_boot_block:
    667667
    668 ; first comes the BFS super block
     668; first comes the BFS superblock
    669669superblock:
    670670                %rep sizeof(SuperBlock)
    671671                    db  0
  • src/tests/add-ons/kernel/file_systems/bfs/dump_log/dump_log.cpp

    diff --git a/src/tests/add-ons/kernel/file_systems/bfs/dump_log/dump_log.cpp b/src/tests/add-ons/kernel/file_systems/bfs/dump_log/dump_log.cpp
    index 2bdfe1e..42e99cb 100644
    a b dumpLogEntry(int device, disk_super_block &superBlock, int32 &start, uint8 *bloc  
    147147                break;
    148148
    149149            off_t value = array[arrayIndex];
    150             printf("%7ld: %Ld%s\n", index, value, value == 0 ? " (super block)" :
     150            printf("%7ld: %Ld%s\n", index, value, value == 0 ? " (superblock)" :
    151151                value < bitmapSize + 1 ? " (bitmap block)" : "");
    152152
    153153            if (data != NULL) {
    main(int argc, char **argv)  
    208208
    209209    disk_super_block superBlock;
    210210    if (read_pos(device, 512, &superBlock, sizeof(disk_super_block)) < (ssize_t)sizeof(disk_super_block)) {
    211         fprintf(stderr, "%s: could not read super block.\n", sProgramName);
     211        fprintf(stderr, "%s: could not read superblock.\n", sProgramName);
    212212        return -1;
    213213    }
    214214
    215215    if (!superBlock.IsValid()) {
    216         fprintf(stderr, "%s: invalid super block!\n", sProgramName);
     216        fprintf(stderr, "%s: invalid superblock!\n", sProgramName);
    217217        return -1;
    218218    }
    219219
  • src/tests/add-ons/kernel/file_systems/bfs/fragmenter/fragmenter.cpp

    diff --git a/src/tests/add-ons/kernel/file_systems/bfs/fragmenter/fragmenter.cpp b/src/tests/add-ons/kernel/file_systems/bfs/fragmenter/fragmenter.cpp
    index 74e016a..ce5e819 100644
    a b main(int argc, const char *const *argv)  
    151151        exit(1);
    152152    }
    153153
    154     // read super block
     154    // read superblock
    155155    disk_super_block superBlock;
    156156    read_from(fd, 512, &superBlock, sizeof(superBlock));
    157157
    158158    if (superBlock.magic1 != SUPER_BLOCK_MAGIC1) {
    159         fprintf(stderr, "Error: Bad super block magic. This is probably not a "
     159        fprintf(stderr, "Error: Bad superblock magic. This is probably not a "
    160160            "BFS image.\n");
    161161        exit(1);
    162162    }
    main(int argc, const char *const *argv)  
    172172    int64 blockCount = st.st_size / blockSize;
    173173    if (blockCount != superBlock.num_blocks) {
    174174        fprintf(stderr, "Error: Number of blocks in image and the number in "
    175             "the super block differ: %lld vs. %lld\n", blockCount,
     175            "the superblock differ: %lld vs. %lld\n", blockCount,
    176176            superBlock.num_blocks);
    177177        exit(1);
    178178    }
    main(int argc, const char *const *argv)  
    206206
    207207    printf("bfs_fragmenter: marked %lld blocks used\n", occupiedBlocks);
    208208
    209     // write back the super block
     209    // write back the superblock
    210210    superBlock.used_blocks += occupiedBlocks;
    211211    write_to(fd, 512, &superBlock, sizeof(superBlock));
    212212       
  • src/tests/add-ons/kernel/file_systems/bfs/r5/BlockAllocator.cpp

    diff --git a/src/tests/add-ons/kernel/file_systems/bfs/r5/BlockAllocator.cpp b/src/tests/add-ons/kernel/file_systems/bfs/r5/BlockAllocator.cpp
    index bd55c4c..b2c558f 100644
    a b BlockAllocator::AllocateBlocks(Transaction *transaction, int32 group, uint16 sta  
    568568
    569569                fVolume->SuperBlock().used_blocks =
    570570                    HOST_ENDIAN_TO_BFS_INT64(fVolume->UsedBlocks() + numBlocks);
    571                     // We are not writing back the disk's super block - it's
     571                    // We are not writing back the disk's superblock - it's
    572572                    // either done by the journaling code, or when the disk
    573573                    // is unmounted.
    574574                    // If the value is not correct at mount time, it will be
  • src/tests/add-ons/kernel/file_systems/bfs/r5/Inode.cpp

    diff --git a/src/tests/add-ons/kernel/file_systems/bfs/r5/Inode.cpp b/src/tests/add-ons/kernel/file_systems/bfs/r5/Inode.cpp
    index 93460d9..b0cfe63 100644
    a b Inode::Remove(Transaction *transaction, const char *name, off_t *_id, bool isDir  
    19281928 *  adds the created inode to that parent directory. If an attribute directory
    19291929 *  is created, it will also automatically added to the parent inode as such.
    19301930 *  However, the indices root node, and the regular root node won't be added
    1931  *  to the super block.
     1931 *  to the superblock.
    19321932 *  It will also create the initial B+tree for the inode if it's a directory
    19331933 *  of any kind.
    19341934 *  If the "_id" or "_inode" variable is given and non-NULL to store the inode's
  • src/tests/add-ons/kernel/file_systems/bfs/r5/Journal.cpp

    diff --git a/src/tests/add-ons/kernel/file_systems/bfs/r5/Journal.cpp b/src/tests/add-ons/kernel/file_systems/bfs/r5/Journal.cpp
    index b5cadf5..1656afa 100644
    a b Journal::blockNotify(off_t blockNumber, size_t numBlocks, void *arg)  
    307307
    308308    free(logEntry);
    309309
    310     // update the super block, and change the disk's state, if necessary
     310    // update the superblock, and change the disk's state, if necessary
    311311
    312312    if (update) {
    313313        journal->fVolume->LogStart() = superBlock.log_start;
    Journal::blockNotify(off_t blockNumber, size_t numBlocks, void *arg)  
    317317
    318318        status_t status = journal->fVolume->WriteSuperBlock();
    319319        if (status != B_OK)
    320             FATAL(("blockNotify: could not write back super block: %s\n", strerror(status)));
     320            FATAL(("blockNotify: could not write back superblock: %s\n", strerror(status)));
    321321    }
    322322}
    323323
    Journal::WriteLogEntry()  
    421421
    422422    fUsed += array->CountItems();
    423423
    424     // Update the log end pointer in the super block
     424    // Update the log end pointer in the superblock
    425425    fVolume->SuperBlock().flags = HOST_ENDIAN_TO_BFS_INT32(SUPER_BLOCK_DISK_DIRTY);
    426426    fVolume->SuperBlock().log_end = HOST_ENDIAN_TO_BFS_INT64(logPosition);
    427427    fVolume->LogEnd() = logPosition;
  • src/tests/add-ons/kernel/file_systems/bfs/r5/ToDo

    diff --git a/src/tests/add-ons/kernel/file_systems/bfs/r5/ToDo b/src/tests/add-ons/kernel/file_systems/bfs/r5/ToDo
    index 8a4f8be..0ab920b 100644
    a b kernel_interface  
    7676general stuff
    7777
    7878 - There are also some comments with a leading "ToDo:" directly in the code which may not be mentioned here.
    79  - implement mkbfs (try to do it in OpenBeOS style directly - only write the super block from user space)
     79 - implement mkbfs (try to do it in OpenBeOS style directly - only write the superblock from user space)
    8080
    8181
    8282-----
  • src/tests/add-ons/kernel/file_systems/bfs/r5/Volume.cpp

    diff --git a/src/tests/add-ons/kernel/file_systems/bfs/r5/Volume.cpp b/src/tests/add-ons/kernel/file_systems/bfs/r5/Volume.cpp
    index 3eb82e2..765cc09 100644
    a b  
    33 * This file may be used under the terms of the MIT License.
    44 */
    55
    6 //! super block, mounting, etc.
     6//! superblock, mounting, etc.
    77
    88
    99#include "Debug.h"
    Volume::Mount(const char *deviceName, uint32 flags)  
    313313    }
    314314#endif
    315315
    316     // read the super block
     316    // read the superblock
    317317    if (Identify(fDevice, &fSuperBlock) != B_OK) {
    318         FATAL(("invalid super block!\n"));
     318        FATAL(("invalid superblock!\n"));
    319319        return B_BAD_VALUE;
    320320    }
    321321
    322     // initialize short hands to the super block (to save byte swapping)
     322    // initialize short hands to the superblock (to save byte swapping)
    323323    fBlockSize = fSuperBlock.BlockSize();
    324324    fBlockShift = fSuperBlock.BlockShift();
    325325    fAllocationGroupShift = fSuperBlock.AllocationGroupShift();
    Volume::Identify(int fd, disk_super_block *superBlock)  
    537537    if (read_pos(fd, 0, buffer, sizeof(buffer)) != sizeof(buffer))
    538538        return B_IO_ERROR;
    539539
    540     // Note: that does work only for x86, for PowerPC, the super block
     540    // Note: that does work only for x86, for PowerPC, the superblock
    541541    // may be located at offset 0!
    542542    memcpy(superBlock, buffer + 512, sizeof(disk_super_block));
    543543    if (!superBlock->IsValid()) {
    Volume::Initialize(const char *device, const char *name, uint32 blockSize, uint3  
    583583
    584584    off_t numBlocks = deviceSize / blockSize;
    585585
    586     // create valid super block
     586    // create valid superblock
    587587
    588588    fSuperBlock.Initialize(name, numBlocks, blockSize);
    589589   
    590     // initialize short hands to the super block (to save byte swapping)
     590    // initialize short hands to the superblock (to save byte swapping)
    591591    fBlockSize = fSuperBlock.BlockSize();
    592592    fBlockShift = fSuperBlock.BlockShift();
    593593    fAllocationGroupShift = fSuperBlock.AllocationGroupShift();
  • src/tests/add-ons/kernel/file_systems/fs_shell/mount.c

    diff --git a/src/tests/add-ons/kernel/file_systems/fs_shell/mount.c b/src/tests/add-ons/kernel/file_systems/fs_shell/mount.c
    index 6f8e4b7..16fe17a 100644
    a b super_block_is_sane(myfs_info *myfs)  
    191191        myfs->dsb.magic2 != SUPER_BLOCK_MAGIC2 ||
    192192        myfs->dsb.magic3 != SUPER_BLOCK_MAGIC3) {
    193193
    194         printf("warning: super block magic numbers are wrong:\n");
     194        printf("warning: superblock magic numbers are wrong:\n");
    195195        printf("0x%x (0x%x) 0x%x (0x%x) 0x%x (0x%x)\n",
    196196               myfs->dsb.magic1, SUPER_BLOCK_MAGIC1,
    197197               myfs->dsb.magic2, SUPER_BLOCK_MAGIC2,
    super_block_is_sane(myfs_info *myfs)  
    214214        return 0;
    215215    }
    216216
    217     /* make sure that the partition is as big as the super block
     217    /* make sure that the partition is as big as the superblock
    218218       says it is */
    219219    num_dev_blocks = get_num_device_blocks(myfs->fd);
    220220    if (myfs->dsb.num_blocks * myfs->dsb.block_size >
    myfs_mount(nspace_id nsid, const char *device, ulong flags,  
    288288    }
    289289
    290290    if (read_super_block(myfs) != 0) {
    291         printf("could not read super block on device %s\n", device);
     291        printf("could not read superblock on device %s\n", device);
    292292        ret = EBADF;
    293293        goto error2;
    294294    }
    295295       
    296296    if (super_block_is_sane(myfs) == 0) {
    297         printf("bad super block\n");
     297        printf("bad superblock\n");
    298298        ret = EBADF;
    299299        goto error2;
    300300    }
  • src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/SuperBlock.cpp

    diff --git a/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/SuperBlock.cpp b/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/SuperBlock.cpp
    index 24fcc09..ca33dc3 100644
    a b using std::nothrow;  
    3030
    3131/*!
    3232    \class DirEntry
    33     \brief Represents the on-disk structure for super block of the FS.
     33    \brief Represents the on-disk structure for superblock of the FS.
    3434
    3535    There exist two versions of the structure and this class can deal with
    36     both of them. The Init() methods tries to find and read the super block
     36    both of them. The Init() methods tries to find and read the superblock
    3737    from disk.
    3838*/
    3939
    read_super_block(int device, off_t offset, const char *magic,  
    4646{
    4747    super_block_t *superBlock = NULL;
    4848    status_t error = B_OK;
    49     // allocate memory for the super block
     49    // allocate memory for the superblock
    5050    if (error == B_OK) {
    5151        superBlock = new(nothrow) super_block_t;
    5252        if (!superBlock)
    5353            error = B_NO_MEMORY;
    5454    }
    55     // read the super block
     55    // read the superblock
    5656    if (error == B_OK) {
    5757        size_t size = sizeof(super_block_t);
    5858        if (read_pos(device, offset, superBlock, size) != (int32)size)
  • src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/Volume.cpp

    diff --git a/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/Volume.cpp b/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/Volume.cpp
    index a63c0c2..661fee9 100644
    a b static inline C max(const C &a, const C &b) { return (a > b ? a : b); }  
    5353    \brief Represents a volume.
    5454
    5555    The Volume class bundles all functionality related to a volume.
    56     It knows the super block and has some basic functionality needed
     56    It knows the superblock and has some basic functionality needed
    5757    for handling VNodes. Actually it should be the layer that provides the
    5858    abstraction from VNodes. The design is not strict in this respect
    5959    (the whole thing evolved while I was in the process of understanding
    Volume::Mount(nspace_id id, const char *path)  
    111111        if (fDevice < 0)
    112112            SET_ERROR(error, errno);
    113113    }
    114     // read and analyze super block
     114    // read and analyze superblock
    115115    if (error == B_OK)
    116116        error = _ReadSuperBlock();
    117117    // create and init block cache
    Volume::_ReadSuperBlock()  
    497497        error = B_NO_MEMORY;
    498498    // check FS state
    499499    if (error == B_OK && fSuperBlock->GetState() != REISERFS_VALID_FS) {
    500         FATAL(("The super block indicates a non-valid FS! Bailing out."));
     500        FATAL(("The superblock indicates a non-valid FS! Bailing out."));
    501501        error = B_ERROR;
    502502    }
    503503    // check FS version
    504504    if (error == B_OK && fSuperBlock->GetVersion() > REISERFS_VERSION_2) {
    505         FATAL(("The super block indicates a version greater than 2 (%u)! "
     505        FATAL(("The superblock indicates a version greater than 2 (%u)! "
    506506               "Bailing out.", fSuperBlock->GetVersion()));
    507507        error = B_ERROR;
    508508    }
  • src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/reiserfs.h

    diff --git a/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/reiserfs.h b/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/reiserfs.h
    index 4fe1ab0..53cbb06 100644
    a b struct reiserfs_de_head  
    220220//
    221221
    222222//
    223 // super block's field values
     223// superblock's field values
    224224//
    225225#define REISERFS_VERSION_0 0 /* undistributed bitmap */
    226226#define REISERFS_VERSION_1 1 /* distributed bitmap and resizer*/
    struct reiserfs_de_head  
    232232#define R5_HASH   3
    233233#define DEFAULT_HASH R5_HASH
    234234
    235 /* this is the on disk super block */
     235/* this is the on disk superblock */
    236236
    237237struct reiserfs_super_block
    238238{
  • src/tests/add-ons/kernel/file_systems/userlandfs/r5/userlandfs.sample

    diff --git a/src/tests/add-ons/kernel/file_systems/userlandfs/r5/userlandfs.sample b/src/tests/add-ons/kernel/file_systems/userlandfs/r5/userlandfs.sample
    index aef6d9e..050f4e3 100644
    a b file_system obfs {  
    3939        is_buffer           false
    4040    }
    4141
    42     # dump super block
     42    # dump superblock
    4343    ioctl 56743 {
    4444        buffer_size         0
    4545        write_buffer_size   0
  • src/tests/system/kernel/file_corruption/fs/BlockAllocator.cpp

    diff --git a/src/tests/system/kernel/file_corruption/fs/BlockAllocator.cpp b/src/tests/system/kernel/file_corruption/fs/BlockAllocator.cpp
    index 4b9ce59..79e26b4 100644
    a b BlockAllocator::_FreeInBitmapBlock(uint64 base, uint32 count,  
    722722status_t
    723723BlockAllocator::_UpdateSuperBlock(Transaction& transaction)
    724724{
    725     // write the super block
     725    // write the superblock
    726726    Block block;
    727727    if (!block.GetWritable(fVolume, kCheckSumFSSuperBlockOffset / B_PAGE_SIZE,
    728728            transaction)) {
  • src/tests/system/kernel/file_corruption/fs/Volume.cpp

    diff --git a/src/tests/system/kernel/file_corruption/fs/Volume.cpp b/src/tests/system/kernel/file_corruption/fs/Volume.cpp
    index ff642e8..82d32dd 100644
    a b Volume::Initialize(const char* name)  
    209209    transaction.KeepNode(fRootDirectory);
    210210    fRootDirectory->SetHardLinks(1);
    211211
    212     // write the super block
     212    // write the superblock
    213213    Block block;
    214214    if (!block.GetZero(this, kCheckSumFSSuperBlockOffset / B_PAGE_SIZE,
    215215            transaction)) {
    Volume::SetName(const char* name)  
    432432    // we lock the volume now, to keep the locking order (transaction -> volume)
    433433    MutexLocker locker(fLock);
    434434
    435     // update the super block
     435    // update the superblock
    436436    Block block;
    437437    if (!block.GetWritable(this, kCheckSumFSSuperBlockOffset / B_PAGE_SIZE,
    438438            transaction)) {