Rebrand project to PiSCSI (#1016)

* Rebrand project to PiSCSI
- rascsi ->piscsi
- rasctl -> scsictl
- rasdump -> scsidump
- ras* -> piscsi* (rasutil -> piscsi_util, etc.)

* Refined the formatting and wording of the app startup banner
* Kept some references to rascsi and rasctl where backwards compatibility is concerned
* Point to the new github repo URL

Co-authored-by: nucleogenic <nr@nucleogenic.com>
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
This commit is contained in:
Daniel Markstedt
2022-12-05 09:58:23 -08:00
committed by GitHub
parent 12068cafb8
commit 52c2aa474f
274 changed files with 2341 additions and 2380 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Powered by XM6 TypeG Technology.
@@ -16,8 +16,8 @@
//
//---------------------------------------------------------------------------
#define USE_SEL_EVENT_ENABLE // Check SEL signal by event
// This avoids an indefinite loop with warnings if there is no RaSCSI hardware
// and thus helps with running rasctl and unit test on x86 hardware.
// This avoids an indefinite loop with warnings if there is no PiSCSI hardware
// and thus helps with running scsictl and unit test on x86 hardware.
#if defined(__x86_64__) || defined(__X86__) || !defined(__linux__)
#undef USE_SEL_EVENT_ENABLE
#endif
+1 -1
View File
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Powered by XM6 TypeG Technology.
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
@@ -1,21 +1,21 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
//
//---------------------------------------------------------------------------
#include "rascsi_version.h"
#include "rasutil.h"
#include "piscsi_version.h"
#include "piscsi_util.h"
#include <cassert>
#include <sstream>
#include <algorithm>
using namespace std;
bool ras_util::GetAsUnsignedInt(const string& value, int& result)
bool piscsi_util::GetAsUnsignedInt(const string& value, int& result)
{
if (value.find_first_not_of("0123456789") != string::npos) {
return false;
@@ -35,7 +35,7 @@ bool ras_util::GetAsUnsignedInt(const string& value, int& result)
return true;
}
string ras_util::ProcessId(const string& id_spec, int max_luns, int& id, int& lun)
string piscsi_util::ProcessId(const string& id_spec, int max_luns, int& id, int& lun)
{
assert(max_luns > 0);
@@ -66,20 +66,20 @@ string ras_util::ProcessId(const string& id_spec, int max_luns, int& id, int& lu
return "";
}
string ras_util::Banner(const string& app)
string piscsi_util::Banner(const string& app)
{
ostringstream s;
s << "SCSI Target Emulator RaSCSI " << app << " version " << rascsi_get_version_string()
<< " (" << __DATE__ << ' ' << __TIME__ << ")\n";
s << "SCSI Target Emulator PiSCSI " << app << "\n";
s << "Version " << piscsi_get_version_string() << " (" << __DATE__ << ' ' << __TIME__ << ")\n";
s << "Powered by XM6 TypeG Technology / ";
s << "Copyright (C) 2016-2020 GIMONS\n";
s << "Copyright (C) 2020-2022 Contributors to the RaSCSI Reloaded project\n";
s << "Copyright (C) 2020-2022 Contributors to the PiSCSI project\n";
return s.str();
}
string ras_util::GetExtensionLowerCase(const string& filename)
string piscsi_util::GetExtensionLowerCase(const string& filename)
{
string ext;
if (const size_t separator = filename.rfind('.'); separator != string::npos) {
@@ -92,7 +92,7 @@ string ras_util::GetExtensionLowerCase(const string& filename)
// Pin the thread to a specific CPU
// TODO Check whether just using a single CPU really makes sense
void ras_util::FixCpu(int cpu)
void piscsi_util::FixCpu(int cpu)
{
#ifdef __linux__
// Get the number of CPUs
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
@@ -13,7 +13,7 @@
using namespace std;
namespace ras_util
namespace piscsi_util
{
// Separator for compound options like ID:LUN
static const char COMPONENT_SEPARATOR = ':';
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2020 akuker
@@ -8,28 +8,28 @@
//
//---------------------------------------------------------------------------
#include "rascsi_version.h"
#include "piscsi_version.h"
#include <sstream>
#include <iomanip>
// The following should be updated for each release
const int rascsi_major_version = 22; // Last two digits of year
const int rascsi_minor_version = 12; // Month
const int rascsi_patch_version = -1; // Patch number - increment for each update
const int piscsi_major_version = 22; // Last two digits of year
const int piscsi_minor_version = 12; // Month
const int piscsi_patch_version = -1; // Patch number - increment for each update
using namespace std;
string rascsi_get_version_string()
string piscsi_get_version_string()
{
stringstream s;
s << setw(2) << setfill('0') << rascsi_major_version << '.' << rascsi_minor_version;
s << setw(2) << setfill('0') << piscsi_major_version << '.' << piscsi_minor_version;
if (rascsi_patch_version < 0) {
if (piscsi_patch_version < 0) {
s << " --DEVELOPMENT BUILD--";
}
else {
s << '.' << rascsi_patch_version;
s << '.' << piscsi_patch_version;
}
return s.str();
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2020 akuker
@@ -11,8 +11,8 @@
#include <string>
extern const int rascsi_major_version; // Last two digits of year
extern const int rascsi_minor_version; // Month
extern const int rascsi_patch_version; // Patch number
extern const int piscsi_major_version; // Last two digits of year
extern const int piscsi_minor_version; // Month
extern const int piscsi_patch_version; // Patch number
std::string rascsi_get_version_string();
std::string piscsi_get_version_string();
+4 -4
View File
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2022 Uwe Seimet
@@ -8,12 +8,12 @@
//---------------------------------------------------------------------------
#include "shared/protobuf_serializer.h"
#include "shared/rascsi_exceptions.h"
#include "generated/rascsi_interface.pb.h"
#include "shared/piscsi_exceptions.h"
#include "generated/piscsi_interface.pb.h"
#include <unistd.h>
using namespace std;
using namespace rascsi_interface;
using namespace piscsi_interface;
//---------------------------------------------------------------------------
//
+1 -1
View File
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2022 Uwe Seimet
+4 -4
View File
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
@@ -8,14 +8,14 @@
//---------------------------------------------------------------------------
#include "log.h"
#include "rasutil.h"
#include "piscsi_util.h"
#include "protobuf_serializer.h"
#include "protobuf_util.h"
#include <sstream>
using namespace std;
using namespace ras_util;
using namespace rascsi_interface;
using namespace piscsi_util;
using namespace piscsi_interface;
#define FPRT(fp, ...) fprintf(fp, __VA_ARGS__ )
+3 -3
View File
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
@@ -12,12 +12,12 @@
#pragma once
#include "google/protobuf/message.h"
#include "generated/rascsi_interface.pb.h"
#include "generated/piscsi_interface.pb.h"
#include <string>
#include <list>
using namespace std;
using namespace rascsi_interface;
using namespace piscsi_interface;
namespace protobuf_util
{