message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
modify README for ARTIK 053
That means that we need to program (flash) binaries, not prepare binaries. | @@ -32,8 +32,8 @@ TIZENRT_BASEDIR was set at 'Getting the sources' tab of [[Quick Start]](../../..
## How to program a binary
-At first, the complete set of binaries are needed to program.
-After buiding a Tizen RT, execute below at os folder.
+At first, programming the complete set of binaries are needed.
+After buidi... |
tools: Fix tcpconnect with kernel 5.14
Kernel commit (0) changes iov_iter->type to iov_iter->iter_type,
which breaks tcpconnect. This commit fixes it by detecting kernel struct field
existence.
Closes
[0]: | @@ -295,7 +295,7 @@ int trace_udp_ret_recvmsg(struct pt_regs *ctx)
return 0;
struct msghdr *msghdr = (struct msghdr *)*msgpp;
- if (msghdr->msg_iter.type != ITER_IOVEC)
+ if (msghdr->msg_iter.TYPE_FIELD != ITER_IOVEC)
goto delete_and_return;
int copied = (int)PT_REGS_RC(ctx);
@@ -361,6 +361,10 @@ bpf_text = bpf_text.re... |
Fix windows issue with (file/read file :all)
When file was created with file/popen, the current optimization
of using fseek on windows fails due to windows not properly returning
and error code and just returning 0. Windows :(. | @@ -221,27 +221,11 @@ static Janet cfun_io_fread(int32_t argc, Janet *argv) {
if (janet_checktype(argv[1], JANET_KEYWORD)) {
const uint8_t *sym = janet_unwrap_keyword(argv[1]);
if (!janet_cstrcmp(sym, "all")) {
- /* Read whole file */
- int status = fseek(iof->file, 0, SEEK_SET);
- if (status) {
- /* backwards fseek di... |
Fix return code handling for new sprintf | @@ -1826,7 +1826,7 @@ void picoquic_open_cc_dump(picoquic_cnx_t * cnx)
char cc_log_file_name[512];
if (ret == 0) {
- ret = picoquic_sprintf(cc_log_file_name, sizeof(cc_log_file_name), "%s%c%s-log.bin", cnx->quic->cc_log_dir, PICOQUIC_FILE_SEPARATOR, cnxid_str) <= 0;
+ ret = picoquic_sprintf(cc_log_file_name, sizeof(cc_... |
gpcloud: Enable debug_curl for gpcheckcloud | @@ -73,12 +73,10 @@ S3Params InitConfig(const string& urlWithOptions) {
string content = s3Cfg.Get(configSection, "loglevel", "WARNING");
s3ext_loglevel = getLogLevel(content.c_str());
-#ifndef S3_STANDALONE_CHECKCLOUD
content = s3Cfg.Get(configSection, "logtype", "INTERNAL");
s3ext_logtype = getLogType(content.c_str()... |
nissa: Remove unnecessary label attribute
The I2C DTS config does not require a label attribute.
TEST=zmake configure -b nivviks
BRANCH=none | &i2c0_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
- label = "I2C_EEPROM";
};
&i2c_ctrl0 {
&i2c1_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
- label = "I2C_SENSOR";
};
&i2c_ctrl1 {
&i2c3_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST_PLUS>;
- label = "I2C_USB_C0";
};
&i2c_ctrl3 {
... |
Add space between number and units for some fields of the show -dimm output
Add space between number and units ("ms") in string to match the rest of the fields.
Specifically for AveragePowerReportingTimeConstant and MemoryBandwidthBoostAveragePowerTimeConstant on command show -a -dimm | @@ -1141,7 +1141,7 @@ ShowDimms(
/** AveragePowerReportingTimeConstant (FIS 2.1 and higher) **/
if (ShowAll || (pDispOptions->DisplayOptionSet && ContainsValue(pDispOptions->pDisplayValues, AVG_PWR_REPORTING_TIME_CONSTANT))) {
- PRINTER_SET_KEY_VAL_WIDE_STR_FORMAT(pPrinterCtx, pPath, AVG_PWR_REPORTING_TIME_CONSTANT, Co... |
OcMiscLib/DebugHelp: Manually poll event instead of waiting (EFI_UNSUPPORTED on Insyde) | @@ -71,9 +71,7 @@ WaitForKeyIndex (
EFI_STATUS Status;
EFI_INPUT_KEY Key;
INTN Index;
- UINTN EventIndex;
EFI_EVENT TimerEvent;
- EFI_EVENT WaitList[2];
//
// Skip previously pressed characters.
@@ -100,26 +98,35 @@ WaitForKeyIndex (
//
// Wait for the keystroke event or the timer
//
- WaitList[0] = gST->ConIn->WaitFor... |
VERSION bump to version 1.4.89 | @@ -45,7 +45,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 4)
-set(SYSREPO_MICRO_VERSION 88)
+set(SYSREPO_MICRO_VERSION 89)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Fix bug while incrementing profiling counters.
In synchronization functions were added for guaranteeing that increments where atomic, but the wrong rule pointer was used. | @@ -1273,9 +1273,9 @@ int yr_execute_code(
#ifdef PROFILING_ENABLED
assert(current_rule != NULL);
#ifdef _WIN32
- InterlockedAdd64(&rule->time_cost, elapsed_time - start_time);
+ InterlockedAdd64(¤t_rule->time_cost, elapsed_time - start_time);
#else
- __sync_fetch_and_add(&rule->time_cost, elapsed_time - start_ti... |
tests: runtime: kubernetes: fix expected data output for incoming JSON log | -{"log":{"message_id":1, "word":"eagers"}, "stream":"stdout", "time":"2018-02-22T13:14:50.773975651Z", "message_id":1, "word":"eagers", "kubernetes":{"pod_name":"json-logs", "namespace_name":"default", "pod_id":"5ac76e2f-17d2-11e8-b34e-080027749cbc", "labels":{"run":"json-logs"}, "host":"minikube", "container_name":"js... |
Tests: fixed test_java_conf_error to pass with "--modules=" option. | @@ -24,6 +24,7 @@ class TestJavaApplication(TestApplicationJava):
"working_directory": self.current_dir
+ "/java/empty",
"webapp": self.testdir + "/java",
+ "unit_jars": self.testdir + "/no_such_dir",
}
},
}
|
Obfuscate just a tiny bit more. | @@ -838,8 +838,8 @@ uint64_t picoquic_crypto_uniform_random(picoquic_quic_t* quic, uint64_t rnd_max)
*
* In order to provide a minimum of protection against casual analysis, we run
* an obfuscation step before providing the result. The obfuscation involves
- * an XOR with the obfuscator, then multiply by a constant mod... |
doc: clarify goals
Idea from of metametadata in one file | @@ -120,11 +120,11 @@ they get the same KeySet (aka "round trip").
## Possibility to Represent any Configuration File Format
Elektra must be powerful and flexible enough to be able to represent any configuration file
-format. We do not judge if a feature of a configuration file format is useful and support
-the develop... |
YAML Smith: Use function to retrieve leaf keys | @@ -91,32 +91,21 @@ bool sameLevelOrBelow (CppKey const & key1, CppKey const & key2)
}
/**
- * @brief This class provides additional functionality for the key set class.
- */
-class CppKeySetPlus : public CppKeySet
-{
-public:
- /**
- * @copydoc KeySet::KeySet(ckdb::KeySet)
- */
- CppKeySetPlus (ckdb::KeySet * keys) : ... |
Set DCMI byte select mode for H7. | @@ -118,7 +118,7 @@ static int dcmi_config(uint32_t jpeg_mode)
DCMIHandle.Init.CaptureRate = DCMI_CR_ALL_FRAME; // Capture rate all frames
DCMIHandle.Init.ExtendedDataMode = DCMI_EXTEND_DATA_8B; // Capture 8 bits on every pixel clock
DCMIHandle.Init.JPEGMode = jpeg_mode; // Set JPEG Mode
- #if defined(STM32F765xx) || d... |
out_kafka-rest: debug JSON payload on error | @@ -120,6 +120,7 @@ static char *kafka_rest_format(void *data, size_t bytes,
msgpack_pack_str(&mp_pck, 5);
msgpack_pack_str_body(&mp_pck, "value", 5);
+
msgpack_pack_map(&mp_pck, map_size);
/* Time key and time formatted */
@@ -239,6 +240,10 @@ static void cb_kafka_flush(void *data, size_t bytes,
/* The request was iss... |
Bug with payments for archive miners is fixed | @@ -998,15 +998,40 @@ static double connection_calculate_unpaid_shares(struct connection_pool_data *co
return diff2pay(sum, count);
}
+// calculates the rest of shares and clear shares
+static double process_outdated_miner(struct miner_pool_data *miner)
+{
+ double sum = 0;
+ int diff_count = 0;
+
+ for(int i = 0; i < ... |
hv: refine 'init_percpu_lapic_id'
This patch refines 'init_percpu_lapic_id' to move the error
handling to 'init_pcpu_pre'. | @@ -45,24 +45,26 @@ static void print_hv_banner(void);
static uint16_t get_pcpu_id_from_lapic_id(uint32_t lapic_id);
static uint64_t start_tsc __attribute__((__section__(".bss_noinit")));
-static void init_percpu_lapic_id(void)
+static bool init_percpu_lapic_id(void)
{
uint16_t i;
uint16_t pcpu_num;
uint32_t lapic_id_a... |
Change activity::dati to use activitity_types::code instead of types::code | @@ -155,7 +155,7 @@ enum {
https://discord.com/developers/docs/resources/channel#message-object-message-activity-structure */
namespace activity {
struct dati {
- types::code type;
+ activity_types::code type;
//@todo missing party_id;
};
|
Emit LH poses as external poses | @@ -198,6 +198,21 @@ static int parse_and_run_imu(const char *line, SurvivePlaybackData *driver, bool
return 0;
}
+static int parse_and_run_lhpose(const char *line, struct SurvivePlaybackData *driver) {
+ SurvivePose pose;
+ int lh = -1;
+ int rr = sscanf(line, "%d LH_POSE " SurvivePose_sformat "\n", &lh, &pose.Pos[0],... |
input: chunk: use 'trace' message instead of 'warn' for chunks without matching routes | @@ -161,7 +161,7 @@ int flb_intput_chunk_count_dropped_chunks(struct flb_input_chunk *ic,
/*
* Find a slot in the output instance to append the new data with size chunk_size, it
- * will drop the the oldest chunks when the limitaion on local disk is reached.
+ * will drop the the oldest chunks when the limitation on lo... |
make: Add utils to help message
BRANCH=none
TEST=make help | @@ -676,6 +676,7 @@ help:
@echo " proj-<boardname> - Build a single board (similar to 'all BOARD=boardname')"
@echo " savesizes - Save the filesizes of currently built boards for comparison"
@echo " newsizes - Compare previously saved filesizes against new sizes"
+ @echo " utils - Build all host utilities"
@echo ""
@ec... |
framer-802154: do away with "type" of create_frame()
The argument, "type", is not used effectively in create_frame(). In
addition, it's confusing because create() calls create_frame() with
FRAME802154_DATAFRAME as "type" though it does not always create a data
frame. | @@ -57,7 +57,7 @@ static uint8_t initialized = 0;
/*---------------------------------------------------------------------------*/
static int
-create_frame(int type, int do_create)
+create_frame(int do_create)
{
frame802154_t params;
int hdr_len;
@@ -218,13 +218,13 @@ framer_802154_setup_params(packetbuf_attr_t (*get_at... |
programs_decode: fix incrementing progssz on error
The progssz value should be incremented only if
parsing and allocating is successful | @@ -73,7 +73,7 @@ int programs_decode(vm_map_t *kmap, vm_object_t *kernel)
if (!hal_strcmp(cpio->name, "TRAILER!!!"))
break;
- pr = &syspage->progs[syspage->progssz++];
+ pr = &syspage->progs[syspage->progssz];
/* Initialize cmdline */
k = hal_strlen((char *)cpio->name);
@@ -84,12 +84,12 @@ int programs_decode(vm_map_t... |
test: cleanup t::run_picotls_client() | @@ -705,10 +705,8 @@ sub run_picotls_client {
my $host = $opts->{host} // '127.0.0.1';
my $path = $opts->{path} // '/';
my $cli_opts = $opts->{opts} // '';
- my $connection = $opts->{keep_alive} ? "keep-alive" : "close";
my $cli = bindir() . "/picotls/cli";
- die "picotls-cli ($cli) not found" unless -e $cli;
my $tempd... |
Fix libunbound return for root key sentinel. | @@ -513,7 +513,8 @@ libworker_enter_result(struct ub_result* res, sldns_buffer* buf,
res->nxdomain = 1;
if(msg_security == sec_status_secure)
res->secure = 1;
- if(msg_security == sec_status_bogus)
+ if(msg_security == sec_status_bogus ||
+ msg_security == sec_status_secure_sentinel_fail)
res->bogus = 1;
}
|
Move protocol test module before config module.
The protocol module should be tested before modules that have a dependency on it. | @@ -444,6 +444,33 @@ unit:
- postgres/interface
- postgres/interface/page
+ # ********************************************************************************************************************************
+ - name: protocol
+
+ test:
+ # --------------------------------------------------------------------------------... |
highlevel: Fix long_double tests | @@ -400,8 +400,8 @@ static void test_arraySetters ()
elektraSetDoubleArrayElement (elektra, "doublearraykey", 0, 1.1, &error);
elektraSetDoubleArrayElement (elektra, "doublearraykey", 1, 2.1, &error);
- elektraSetLongDoubleArrayElement (elektra, "longdoublearraykey", 0, 1.1, &error);
- elektraSetLongDoubleArrayElement ... |
YIN parser CHANGE simplify copying of the tested string
parsed revision date is checked and its copying into a constant-size
buffer can be simplified by memcpy(). | @@ -1711,7 +1711,7 @@ yin_parse_revision(struct lys_yin_parser_ctx *ctx, struct lysp_revision **revs)
FREE_STRING(ctx->xmlctx->ctx, temp_date);
return LY_EVALID;
}
- strncpy(rev->date, temp_date, LY_REV_SIZE);
+ memcpy(rev->date, temp_date, LY_REV_SIZE);
FREE_STRING(ctx->xmlctx->ctx, temp_date);
/* parse content */
|
build: Makefile dep change for ubuntu
Alter dep name and location for ubuntu-20 package naming
Dropping 14.04 support while keeping 16.04 and 18.04
Dropping python2-dev for ubuntu-20
Type: make | @@ -65,7 +65,7 @@ DEB_DEPENDS = curl build-essential autoconf automake ccache
DEB_DEPENDS += debhelper dkms git libtool libapr1-dev dh-systemd
DEB_DEPENDS += libconfuse-dev git-review exuberant-ctags cscope pkg-config
DEB_DEPENDS += lcov chrpath autoconf indent clang-format libnuma-dev
-DEB_DEPENDS += python-all python... |
Update cache in opengl rendering | @@ -454,6 +454,11 @@ bool TCOD_opengl_render(
tcod::ColorRGB(console->tiles[i].fg),
tcod::ColorRGB(console->tiles[i].bg)
);
+
+ if (track_changes)
+ {
+ cache->tiles[i] = console->tiles[i];
+ }
}
}
/* check if any of the textures have changed since they were last uploaded */
|
h2olog: remove appdata fields from block_fields | @@ -82,13 +82,7 @@ struct_map = {
}
# A block list to list useless or secret data fields
-# TODO: replace this dict with /* @appdata */ annotations
block_fields = {
- "quicly:crypto_decrypt": set(["decrypted"]),
- "quicly:crypto_update_secret": set(["secret"]),
- "quicly:crypto_send_key_update": set(["secret"]),
- "qui... |
Fixed wrong output information
to -> too | @@ -150,7 +150,7 @@ rt_err_t rt_wlan_dev_ap_start(struct rt_wlan_device *device, struct rt_wlan_info
if ((password_len > RT_WLAN_PASSWORD_MAX_LENGTH) ||
(info->ssid.len > RT_WLAN_SSID_MAX_LENGTH))
{
- LOG_E("L:%d password or ssid is to long", __LINE__);
+ LOG_E("L:%d password or ssid is too long", __LINE__);
return -RT... |
Force nekbone down to O1 while AAPointer assert worked | @@ -9,6 +9,7 @@ thisdir=`dirname $realpath`
. $thisdir/aomp_common_vars
# --- end standard header ----
+export CCC_OVERRIDE_OPTIONS="+-O1"
if [ "$1" == "rerun" ]; then
cd $AOMP_REPOS_TEST/Nekbone
cd test/nek_gpu1
@@ -50,4 +51,5 @@ else
tail -7 nek.log
fi
fi
+echo "running Nekbone at -O1, AAPointer issue"
exit $ret
|
Fix missing SP-GiST support in
misses setting of amoptsprocnum for SP-GiST. This commit fixes
that. | @@ -44,6 +44,7 @@ spghandler(PG_FUNCTION_ARGS)
amroutine->amstrategies = 0;
amroutine->amsupport = SPGISTNProc;
+ amroutine->amoptsprocnum = SPGIST_OPTIONS_PROC;
amroutine->amcanorder = false;
amroutine->amcanorderbyop = true;
amroutine->amcanbackward = false;
|
use threaded mkl | @@ -98,9 +98,9 @@ plasma-installer_%{version}/setup.py \
%if %{compiler_family} == intel
--cflags="${RPM_OPT_FLAGS} ${PIC_OPT}" \
--fflags="${RPM_OPT_FLAGS} ${PIC_OPT}" \
- --blaslib="-L/intel/mkl/lib/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
- --cblaslib="-L/intel/mkl/lib/em64t -lmkl_intel_lp64 -lmkl_seque... |
fix(FreeRTOS): Initialize uxTaskNumber at task initialization
Closes | @@ -917,6 +917,13 @@ UBaseType_t x;
}
#endif /* tskSET_NEW_STACKS_TO_KNOWN_VALUE */
+ #if( configUSE_TRACE_FACILITY == 1 )
+ {
+ /* Zero the uxTaskNumber TCB member to avoid random value from dynamically allocated TCBs */
+ pxNewTCB->uxTaskNumber = 0;
+ }
+ #endif /* ( configUSE_TRACE_FACILITY == 1 ) */
+
/* Calculate ... |
chat: changed a =: to a =. to fix message storage bug | =/ =hoon (ream expression.letter)
letter(output (eval bol hoon))
=: length.config.u.mailbox +(length.config.u.mailbox)
- number.envelope.act length.config.u.mailbox
+ number.envelope.act +(length.config.u.mailbox)
envelopes.u.mailbox (snoc envelopes.u.mailbox envelope.act)
- inbox (~(put by inbox) path.act u.mailbox)
=... |
added additional counter for NMEA sentences | @@ -150,6 +150,7 @@ unsigned long long int tacacspcount;
tacacspl_t *tacacspliste;
unsigned long long int gpsdframecount;
+unsigned long long int gpsnmeaframecount;
unsigned long long int fcsframecount;
unsigned long long int wdsframecount;
unsigned long long int beaconframecount;
@@ -582,9 +583,10 @@ printf( " \n"
"ma... |
dill: don't sync %kids on galaxies | =/ myt (flop (fall tem ~))
=. tem ~
=. ..mere (pass / %g %jolt %base ram)
- =. ..mere
- ?- (clan:title our)
- %pawn ..mere
- %czar (kiln-sync %kids our %base)
- * (kiln-install %base sponsor %kids)
- ==
+ =? ..mere ?=(?(%earl %duke %king) (clan:title our))
+ (kiln-install %base sponsor %kids)
=. ..mere (show-desk %kids... |
Fix optee test
Pass --optee when initializing oeapkman, obtaining root. | @@ -29,11 +29,17 @@ endif ()
# Fetch the location of oeapkman binary.
get_target_property(OEAPKMAN oeapkman LOCATION)
+if (OE_TRUSTZONE)
+ set(APKMAN_ARCH "--optee")
+else ()
+ set(APKMAN_ARCH "")
+endif ()
+
# Execute oeapkman once so that it is initialized.
-execute_process(COMMAND "${OEAPKMAN}")
+execute_process(COM... |
[Panic] also print to secondary USB Serial/JTAG Console | #include "esp_gdbstub.h"
#endif
-#if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
+#if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG || CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
#include "hal/usb_serial_jtag_ll.h"
#endif
@@ -73,7 +73,7 @@ static wdt_hal_context_t rtc_wdt_ctx = {.inst = WDT_RWDT, .rwdt_dev = &RTCCNTL};
#if CONFIG_ESP_CON... |
SOVERSION bump to version 1.2.10 | @@ -51,7 +51,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 1)
set(LIBNETCONF2_MINOR_SOVERSION 2)
-set(LIBNETCONF2_MICRO_SOVERSION 9)
+set(LIBN... |
taniks: update fan table
Update fan table for power on noise.
BRANCH=none
TEST=make buildall -j | @@ -387,7 +387,7 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
[EC_TEMP_THRESH_HIGH] = C_TO_K(85), \
}, \
.temp_fan_off = C_TO_K(35), \
- .temp_fan_max = C_TO_K(60), \
+ .temp_fan_max = C_TO_K(70), \
}
__maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU;
@@ -417,7 +417,7 @@ ... |
Typec: Add disconnected status event
Add an event bit to represent that the port has been disconnected.
BRANCH=None
TEST=make -j buildall | @@ -6691,6 +6691,7 @@ enum tcpc_cc_polarity {
#define PD_STATUS_EVENT_SOP_DISC_DONE BIT(0)
#define PD_STATUS_EVENT_SOP_PRIME_DISC_DONE BIT(1)
#define PD_STATUS_EVENT_HARD_RESET BIT(2)
+#define PD_STATUS_EVENT_DISCONNECTED BIT(3)
/*
* Encode and decode for BCD revision response
|
message_drop_test: send only what hasn't been sent yet | @@ -14,23 +14,22 @@ if JUNGLE:
from panda_jungle import PandaJungle # pylint: disable=import-error
# Generate unique messages
-NUM_MESSAGES_PER_BUS = 2000
+NUM_MESSAGES_PER_BUS = 10000
messages = [bytes(struct.pack("Q", i)) for i in range(NUM_MESSAGES_PER_BUS)]
tx_messages = list(itertools.chain.from_iterable(map(lambd... |
Jenkins: Enable tasks for Web UI and website | @@ -1031,9 +1031,9 @@ def generateArtifactStages() {
def tasks = [:]
tasks << buildDebianPackage("buildPackage/debian/stretch", DOCKER_IMAGES.stretch)
// tasks << buildDebianPackage("buildPackage/debian/buster", DOCKER_IMAGES.buster)
- tasks << buildDebianPackage("buildPackage/debian/bionic", DOCKER_IMAGES.bionic)
- //... |
Wait for imu to inform velocity before reporting it | @@ -1197,5 +1197,7 @@ void survive_kalman_tracker_report_state(PoserData *pd, SurviveKalmanTracker *tr
if (so->OutPose_timecode < pd->timecode) {
SURVIVE_INVOKE_HOOK_SO(imupose, so, pd->timecode, &pose);
}
+ if(tracker->stats.imu_count > 100) {
SURVIVE_INVOKE_HOOK_SO(velocity, so, pd->timecode, &velocity);
}
+}
|
CI/CD: extend the timeout value when creating pods
Fix dragonwell-web and openjdk-pod may not start within 3s. | @@ -47,22 +47,22 @@ jobs:
run: docker exec $rune_test bash -c "containerd" &
docker exec $rune_test bash -c "cd /root/samples && ./clean.sh;
- crictl run --timeout 3s hello.yaml pod.yaml && ./show.sh"
+ crictl run --timeout 30s hello.yaml pod.yaml && ./show.sh"
- name: Run dragonwell-web pod
if: always()
run: docker ex... |
SOVERSION bump to version 2.8.16 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 8)
-set(LIBYANG_MICRO_SOVERSION 15)
+set(LIBYANG_MICRO_SOVERSION 16)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_... |
Add support for holding the on/off switch | @@ -135,6 +135,10 @@ static const Sensor::ButtonMap ikeaOnOffMap[] = {
// mode ep cluster cmd param button name
{ Sensor::ModeScenes, 0x01, 0x0006, 0x01, 0, S_BUTTON_1 + S_BUTTON_ACTION_SHORT_RELEASED, "On" },
{ Sensor::ModeScenes, 0x01, 0x0006, 0x00, 0, S_BUTTON_2 + S_BUTTON_ACTION_SHORT_RELEASED, "Off" },
+ { Sensor:... |
libhfuzz: better instrumentation for strncmp/strncasecmp/memcmp | @@ -51,19 +51,21 @@ int strncmp(const char *s1, const char *s2, size_t n)
}
unsigned int v = 0;
+ int ret = 0;
- size_t i = 0;
- for (i = 0; (s1[i] == s2[i]) && i < n; i++) {
+ for (size_t i = 0; i < n; i++) {
+ if (s1[i] != s2[i]) {
+ ret = ret ? ret : ((unsigned char)s1[i] - (unsigned char)s2[i]);
+ } else {
+ v++;
+... |
argument is the project, not a config. | --
-- Extend global properties
--
- premake.override(vc2010.elements, "globals", function (oldfn, cfg)
- local elements = oldfn(cfg)
+ premake.override(vc2010.elements, "globals", function (oldfn, prj)
+ local elements = oldfn(prj)
- if cfg.system == premake.ANDROID and cfg.kind ~= premake.ANDROIDPROJ then
+ if prj.sys... |
fix(demo): get widget by "btn-ok" will return NULL | @@ -31,7 +31,7 @@ void App::Load( Platform::String^ entryPoint )
}
Widget_Append( root, pack );
Widget_Unwrap( pack );
- btn = LCUIWidget_GetById( "btn-ok" );
+ btn = LCUIWidget_GetById( "btn" );
Widget_BindEvent( btn, "click", OnBtnClick, NULL, NULL );
}
|
docs/glossary: Add definitions for "memory allocation" and "small integer". | @@ -120,6 +120,52 @@ Glossary
require much less power. MicroPython is designed to be small and
optimized enough to run on an average modern microcontroller.
+ memory allocation
+ Computers store data in memory, and memory allocation is a process
+ they perform to store *new* data in memory. This process has its
+ cost ... |
CI: remove unused code from .travis.yml | @@ -53,14 +53,9 @@ matrix:
fast_finish: true
before_install:
- - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.cabal/bin:$PATH
- cabal update
install:
- - |
- printf "$(ghc --version)"
- printf " [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- - cabal --version
- cabal new-build --... |
[core] silence coverity warning | @@ -264,7 +264,10 @@ static int network_server_init(server *srv, buffer *host_token, size_t sidx, int
return -1;
}
- fdevent_fcntl_set_nb(srv->ev, srv_socket->fd);
+ if (-1 == fdevent_fcntl_set_nb(srv->ev, srv_socket->fd)) {
+ log_error_write(srv, __FILE__, __LINE__, "ss", "fcntl:", strerror(errno));
+ return -1;
+ }
}... |
Array: Check file with OCLint | @@ -10,6 +10,7 @@ test -f "@PROJECT_BINARY_DIR@/compile_commands.json" || { echo "Compilation data
cd "@CMAKE_SOURCE_DIR@" || exit
oclint -p "@PROJECT_BINARY_DIR@" -enable-global-analysis -enable-clang-static-analyzer \
+ "@CMAKE_SOURCE_DIR@/src/libs/ease/array.c" \
"@CMAKE_SOURCE_DIR@/src/libs/ease/keyname.c" \
"@CMAK... |
Update the comment on ssl3_write_pending()
The struct s->s3 has been modified. | @@ -1151,7 +1151,7 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
return -1;
}
-/* if s->s3.wbuf.left != 0, we need to call this
+/* if SSL3_BUFFER_get_left() != 0, we need to call this
*
* Return values are as per SSL_write()
*/
|
Test that bad UDP payload sizes trigger error | @@ -340,6 +340,25 @@ uint8_t client_param_err7[] = {
picoquic_tp_handshake_connection_id, 8, LOCAL_CONNECTION_ID
};
+/* error 8, UDP Payload too small */
+uint8_t client_param_err8[] = {
+ picoquic_tp_initial_max_stream_data_bidi_local, 4, 0x80, 0, 0xFF, 0xFF,
+ picoquic_tp_initial_max_data, 4, 0x80, 0x40, 0, 0,
+ pico... |
bugfix: make remove_intx_remapping static
remove_intx_remapping is not global function, make static.
Unlike global functions in C, access to static functions is restricted to the file where they are declared. Another reason for making functions static can be reuse of the same function name in other files | @@ -422,7 +422,7 @@ add_intx_remapping(struct vm *vm, uint8_t virt_pin,
}
/* deactive & remove mapping entry of vpin for vm */
-void remove_intx_remapping(struct vm *vm, uint8_t virt_pin, bool pic_pin)
+static void remove_intx_remapping(struct vm *vm, uint8_t virt_pin, bool pic_pin)
{
int phys_irq;
struct ptdev_remappi... |
Remove observations for disconnected endpoint
Fixes removing observation over TCP connection, when a peer close
the connection. | @@ -150,6 +150,10 @@ oc_handle_session(oc_endpoint_t *endpoint, oc_session_state_t state)
oc_tls_remove_peer(endpoint);
}
#endif /* OC_SECURITY */
+#ifdef OC_SERVER
+ /* remove all observations for the endpoint */
+ coap_remove_observer_by_client(endpoint);
+#endif /* OC_SERVER */
}
#ifdef OC_SESSION_EVENTS
handle_sess... |
signalfd_read_bh(): deallocate data for dequeued signals
The existing code is failing to deallocate the queued_signal
structs that are being dequeued by a given thread. | @@ -902,6 +902,7 @@ closure_function(5, 1, sysreturn, signalfd_read_bh,
}
sig_debug(" sig %d, errno %d, code %d\n", qs->si.si_signo, qs->si.si_errno, qs->si.si_code);
signalfd_siginfo_fill(info, qs);
+ free_queued_signal(qs);
info++;
ninfos++;
}
|
Devug failure of CI test | @@ -35,6 +35,7 @@ jobs:
cd build
make test && QUICRESULT=$?
if [[ ${QUICRESULT} == 0 ]]; then exit 0; fi;
+ cat /home/runner/work/picoquic/picoquic/build/Testing/Temporary/LastTest.log
exit 1
- name: Run Valgrind
|
apps/pkcs12: Detect missing PKCS12KDF support on import
Report error message with hint to use -nomacver if
MAC verification is not required. | #include <openssl/pem.h>
#include <openssl/pkcs12.h>
#include <openssl/provider.h>
+#include <openssl/kdf.h>
#define NOKEYS 0x1
#define NOCERTS 0x2
@@ -733,6 +734,15 @@ int pkcs12_main(int argc, char **argv)
tsalt != NULL ? ASN1_STRING_length(tsalt) : 0L);
}
if (macver) {
+ EVP_KDF *pkcs12kdf;
+
+ pkcs12kdf = EVP_KDF_f... |
kernel/init/os_start : Fix wrong assignment for idle stack information
'g_idle_topstack - 4' should be set to idle task's adj_stack_ptr, not adj_stack_size. | @@ -363,7 +363,7 @@ void os_start(void)
/* Fill the stack information to Idle task's tcb */
g_idletcb.cmn.adj_stack_size = CONFIG_IDLETHREAD_STACKSIZE;
g_idletcb.cmn.stack_alloc_ptr = (void *)(g_idle_topstack - CONFIG_IDLETHREAD_STACKSIZE);
- g_idletcb.cmn.adj_stack_size = g_idle_topstack - 4;
+ g_idletcb.cmn.adj_stack... |
Transfer ~nul to Matthew Liston. | 0w0 :: 193, ~duc, Tlon
0w0 :: 194, ~fur, Tlon
0w0 :: 195, ~fex, Tlon
- 0w0 :: 196, ~nul, Tlon
+ 0w0 :: 196, ~nul, Matthew Liston
0w0 :: 197, ~luc, Tlon
0w0 :: 198, ~len, Tlon
0w0 :: 199, ~ner, Tlon
|
mpi-families/openmpi: fix for static pbs linkage; temporarily disable libpbs.la during build | @@ -195,6 +195,11 @@ export BASEFLAGS
%{__cp} %{SOURCE3} .
%{__chmod} 700 pbs-config
export PATH="./:$PATH"
+
+# temporarily disable dynamic linkage for pbs
+if [ -e /opt/pbs/lib/libpbs.la ]; then
+ mv /opt/pbs/lib/libpbs.la /tmp
+fi
%endif
./configure ${BASEFLAGS} || { cat config.log && exit 1; }
@@ -206,6 +211,13 @@ ... |
Remove check made redundant by CheckModelAndPoolCompatibility. | @@ -42,7 +42,6 @@ TVector<TVector<double>> ApplyModelMulti(const TFullModel& model,
TVector<TConstArrayRef<float>> repackedFeatures(model.ObliviousTrees.GetFlatFeatureVectorExpectedSize());
const int blockFirstId = blockParams.FirstId + blockId * blockParams.GetBlockSize();
const int blockLastId = Min(blockParams.LastI... |
Improve error handling in rand_init function | @@ -310,19 +310,31 @@ void rand_fork()
DEFINE_RUN_ONCE_STATIC(do_rand_init)
{
- int ret = 1;
-
#ifndef OPENSSL_NO_ENGINE
rand_engine_lock = CRYPTO_THREAD_lock_new();
- ret &= rand_engine_lock != NULL;
+ if (rand_engine_lock == NULL)
+ return 0;
#endif
+
rand_meth_lock = CRYPTO_THREAD_lock_new();
- ret &= rand_meth_lock... |
anim_utils.c: remove warning when !defined(WEBP_HAVE_GIF) | #include <stdio.h>
#include <string.h>
-#ifdef WEBP_HAVE_GIF
+#if defined(WEBP_HAVE_GIF)
#include <gif_lib.h>
#endif
#include "webp/format_constants.h"
@@ -33,11 +33,13 @@ static const int kNumChannels = 4;
// -----------------------------------------------------------------------------
// Common utilities.
+#if define... |
Disable portable build by default
The default value of a boolean meson option is true. We want
non-portable build by default. | @@ -3,6 +3,6 @@ option('build_server', type: 'boolean', value: true, description: 'Build the ser
option('crossbuild_windows', type: 'boolean', value: false, description: 'Build for Windows from Linux')
option('windows_noconsole', type: 'boolean', value: false, description: 'Disable console on Windows (pass -mwindows fl... |
slightly improve bash completion for oidc-gen | @@ -154,31 +154,16 @@ if [[ "$prev" == "--print=" ]]; then
local oidcDirFiles=`ls $agentdir 2>/dev/null | sed -e 's/$/& /g'`
COMPREPLY+=( $(compgen -W "${oidcDirFiles}" -- ${cur}) )
fi
+if [[ "$prev" == "--update=" ]]; then
+ local oidcDirFiles=`ls $agentdir 2>/dev/null | sed -e 's/$/& /g'`
+ COMPREPLY+=( $(compgen -W ... |
Client Snap support in cupsd: Additional NULL check
When testing the newest snapd whether it works correctly together
with CUPS, I hit a segfault in the chackwhether the client is a Snap
plugging cups-control, for the case when CUPS is not snapped.
Fixed this with an additional NULL check. | @@ -2120,7 +2120,7 @@ check_admin_access(cupsd_client_t *con) // I - Client connection
cupsdLogClient(con, CUPSD_LOG_DEBUG, "Unable to get client Snap plugs: %s", error->message);
ret = 0;
}
- else if (plugs->len <= 0)
+ else if (!plugs || plugs->len <= 0)
{
cupsdLogClient(con, CUPSD_LOG_DEBUG, "Snap without cups-contr... |
Adds -std=c+=11 compiler flags, unintentionally deleted this | @@ -36,7 +36,7 @@ IF (ANDROID)
set(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -Wall ${CMAKE_C_FLAGS}")
ELSE ()
set(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -Wall -Werror -fPIC ${CMAKE_C_FLAGS}") #TODO add -Wextra
- set(CMAKE_CXX_FLAGS "-Wall -Werror -Wextra -Weffc++ -fno-rtti -fno-exceptions ${CMAKE_CXX_FLAGS}")
+ set(CMAK... |
fixed uninitialized counter | @@ -401,6 +401,7 @@ eapolm3errorcount = 0;
eapolm4count = 0;
eapolm4errorcount = 0;
eapolwrittencount = 0;
+eapolncwrittencount = 0;
eapolaplesscount = 0;
eapolwrittenjcountdeprecated = 0;
eapolwrittenhcpxcountdeprecated = 0;
|
chip/stm32/gpio.c: Format with clang-format
BRANCH=none
TEST=none | @@ -83,8 +83,8 @@ test_mockable int gpio_get_level(enum gpio_signal signal)
void gpio_set_level(enum gpio_signal signal, int value)
{
- STM32_GPIO_BSRR(gpio_list[signal].port) =
- gpio_list[signal].mask << (value ? 0 : 16);
+ STM32_GPIO_BSRR(gpio_list[signal].port) = gpio_list[signal].mask
+ << (value ? 0 : 16);
}
int ... |
Style tweaks
I think the original version of this code was written back when we had an 80-column limit. | @@ -297,8 +297,8 @@ function ToIR:convert_stat(cmds, stat)
-- the rest of the RHS has been evaluated. However, we don't bother optimizing this last
-- case because if the programmer has written a complicated multiple-assignment then it is
-- likely that it isn't something that could have been written as a sequence of s... |
fix redundent check, refactor to findVisibleClient
Uses function findVisibleClient and the Elvis operator to clean the code up. Elvis depends on a gcc extension resulting in a warning from -wpedantic. | @@ -200,6 +200,19 @@ monocle(Monitor *m)
}
+void
+focusstack2(const Arg *arg)
+{
+ Client *nextVisibleClient = findVisibleClient(selmon->sel->next) ?: findVisibleClient(selmon->clients);
+
+ if (nextVisibleClient) {
+ if (nextVisibleClient->mon != selmon)
+ selmon = nextVisibleClient->mon;
+ detachstack(nextVisibleClie... |
win32: fixing rhosimulator JS bridge | @@ -1073,14 +1073,7 @@ var Rho = Rho || (function ($) {
addBridge(rhoPlatform.id.RHOSIMULATOR, function() {
return {
- apiCall: function (cmdText, async, resultHandler) {
- var nativeApiResult = {};
-
- if (window[RHO_API_TAG] && 'function' == typeof window[RHO_API_TAG]['apiCall']) {
- nativeApiResult = window[RHO_API_... |
Fix typo in sdot function
it looks like my previous pull request was short the final commit;
fix a typo in sdot | @@ -67,7 +67,7 @@ static void sdot_kernel_16( BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *dot)
accum_0 = _mm512_extractf32x8_ps(accum_05, 0) + _mm512_extractf32x8_ps(accum_05, 1);
accum_1 = _mm512_extractf32x8_ps(accum_15, 0) + _mm512_extractf32x8_ps(accum_15, 1);
accum_2 = _mm512_extractf32x8_ps(accum_25, 0) + _mm512_extra... |
Update apps/graphics/NxWidgets/Kconfig | @@ -736,21 +736,6 @@ if NXWM_TOUCHSCREEN
comment "Touchscreen Device Settings"
-config NXWM_TOUCHSCREEN_DEVINIT
- bool "Touchscreen Device Initialization"
- default y
- depends on !BUILD_PROTECTED && !BUILD_KERNEL
- ---help---
- It this option is selected, then the NxWM:CTouchscreen listener
- thread will call a functi... |
SOVERSION bump to version 2.5.6 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 5)
-set(LIBYANG_MICRO_SOVERSION 5)
+set(LIBYANG_MICRO_SOVERSION 6)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI... |
Add auto detect for VisualStudioToolset v143
Fixes for | @@ -23,6 +23,10 @@ Common PlatformTools definitions used by all projects:
<VisualStudioToolset>v142</VisualStudioToolset>
<CETCompatSupported>true</CETCompatSupported>
</PropertyGroup>
+ <PropertyGroup Condition="'$(VisualStudioVersionMajor)'>='17'">
+ <VisualStudioToolset>v143</VisualStudioToolset>
+ <CETCompatSupport... |
Disable error on CHACHAPOLY misconfiguration
As the test tries this in multiple configurations, an #error here will
fail CI. | @@ -364,7 +364,7 @@ extern "C" {
#if defined(PSA_WANT_KEY_TYPE_CHACHA20)
#define MBEDTLS_CHACHAPOLY_C
#else /* not PSA_WANT_KEY_TYPE_CHACHA20 */
-#error "PSA_WANT_ALG_CHACHA20_POLY1305 requires PSA_WANT_KEY_TYPE_CHACHA20"
+// #error "PSA_WANT_ALG_CHACHA20_POLY1305 requires PSA_WANT_KEY_TYPE_CHACHA20"
#endif /* PSA_WANT... |
Clean build. | {$velo p/@t q/@t} :: reboot
{$verb ~} :: verbose mode
== ::
- ++ stub (list (pair stye (list @c))) :: styled tuba
- ++ stye (pair (set deco) (pair tint tint)) :: decos/bg/fg
- ++ styl :: cascading stye
- %+ pair (unit deco) ::
- (pair (unit tint) (unit tint)) ::
- :: ::
- ++ styx (list $@(@t (pair styl styx))) :: style... |
add buster-debsource to workaround libcjson bug in buster | @@ -731,17 +731,25 @@ preparedeb: clean
debsource: distclean preparedeb
dpkg-source -b .
+.PHONY: buster-debsource
+debsource: distclean preparedeb
+ @mv debian/rules debian/rules.orig
+ @cat debian/rules.orig \
+ | sed s/"export USE_CJSON_SO = 1"/"export USE_CJSON_SO = 0"/ \
+ > debian/rules
+ dpkg-source -b . || mv d... |
Allow Ethereum coinbasePassword to be empty, but not missing | @@ -333,7 +333,7 @@ namespace MiningCore.Blockchain.Ethereum
// validate mandatory extra config
var extraConfig = poolConfig.PaymentProcessing.Extra.SafeExtensionDataAs<EthereumPoolPaymentProcessingConfigExtra>();
- if (string.IsNullOrEmpty(extraConfig?.CoinbasePassword))
+ if (extraConfig?.CoinbasePassword == null)
lo... |
zephyr test: Make ppc_discharge_vbus mockable
Allow tests to mock ppc_discharge_vbus. Support tests of discharging
behavior that are decoupled from the discharge indicator of a specific
PPC.
TEST=make buildall
BRANCH=none | @@ -200,8 +200,12 @@ int ppc_err_prints(const char *string, int port, int error);
* @param port: The Type-C port number.
* @param enable: 1 -> discharge vbus, 0 -> stop discharging vbus
* @return EC_SUCCESS on success, error otherwise.
+ *
+ * TODO(b/255413715): Remove test_mockable when it is practical to convert the
... |
build: abort previous run if still running | @@ -96,7 +96,7 @@ CMAKE_FLAGS_BASE = [
'KDB_DB_SPEC': '${HOME}/.config/kdb/spec',
'CMAKE_INSTALL_PREFIX': '${WORKSPACE}/system',
'INSTALL_SYSTEM_FILES': 'OFF',
- 'buildDocUMENTATION': 'OFF'
+ 'BUILD_DOCUMENTATION': 'OFF'
]
// TODO Remove -DEPRECATED after #1954 is resolved
@@ -125,6 +125,9 @@ TEST_INSTALL = 'install'
N... |
Disable AVX512 (Skylake X) support if the build system is too old | @@ -201,6 +201,21 @@ $architecture = zarch if ($data =~ /ARCH_ZARCH/);
$binformat = bin32;
$binformat = bin64 if ($data =~ /BINARY_64/);
+$no_avx512= 0;
+if (($architecture eq "x86") || ($architecture eq "x86_64")) {
+ $code = '"vaddps %zmm1, %zmm0, %zmm0"';
+ print $tmpf "void main(void){ __asm__ volatile($code); }\n"... |
MinGW uses also ; as PATH-separator | @@ -116,7 +116,7 @@ function (UPNP_findTestEnv testName resultVar)
UPNP_findTestLibs (${testName} ${resultVar})
set (tempEnv "PATH=")
- if (MSVC)
+ if (MSVC OR MINGW)
set (separator "\\\;")
else()
set (separator ":")
|
Remove $Id$ now we use git rather than svn | @@ -17,7 +17,6 @@ dnl
dnl -------------------------------------------------------------------------
dnl Author Pier Fumagalli <mailto:pier.fumagalli@eng.sun.com>
-dnl Version $Id$
dnl -------------------------------------------------------------------------
dnl ----------------------------------------------------------... |
admin/meta-packages: re-enable trilinos in some meta-packages | @@ -240,7 +240,7 @@ Requires: scalapack-%{compiler_family}-mpich%{PROJ_DELIM}
Requires: slepc-%{compiler_family}-mpich%{PROJ_DELIM}
Requires: ptscotch-%{compiler_family}-mpich%{PROJ_DELIM}
## TODO Requires: superlu_dist-%{compiler_family}-mpich%{PROJ_DELIM}
-## TODO Requires: trilinos-%{compiler_family}-mpich%{PROJ_DEL... |
ble_mesh: using bt device name in mesh proxy adv | @@ -1075,8 +1075,30 @@ static const struct bt_mesh_adv_data net_id_ad[] = {
BLE_MESH_ADV_DATA(BLE_MESH_DATA_SVC_DATA16, proxy_svc_data, NET_ID_LEN),
};
+static size_t gatt_proxy_adv_create(struct bt_mesh_adv_data *proxy_sd)
+{
+ const char *name = device_name;
+ size_t name_len = strlen(name);
+ /* One octet for Length... |
Fix memcache getNodeByQuery coredump | @@ -2518,7 +2518,7 @@ int processCommand(client *c) {
!(c->flags & CLIENT_LUA &&
server.lua_caller->flags & CLIENT_MASTER) &&
!(c->cmd->getkeys_proc == NULL && c->cmd->firstkey == 0 &&
- c->cmd->proc != execCommand))
+ c->cmd->proc != execCommand) && (c->reqtype == PROTO_REQ_INLINE || c->reqtype == PROTO_REQ_MULTIBULK)... |
Note example use of tls authentication. | 19 April 2018: Wouter
- Can set tls authentication with forward-addr: IP#tls.auth.name
And put the public cert bundle in tls-cert-bundle: "ca-bundle.pem".
+ such as forward-addr: 9.9.9.9@853#dns.quad9.net or
+ 1.1.1.1@853#cloudflare-dns.com
18 April 2018: Wouter
- Fix auth-zone retry timer to be on schedule with retry ... |
WithFireSimFAME5 to allow non Rocket/BOOM build | @@ -170,6 +170,7 @@ class WithFireSimFAME5 extends ComposeIOBinder({
annotate(EnableModelMultiThreadingAnnotation(b.module))
case r: RocketTile =>
annotate(EnableModelMultiThreadingAnnotation(r.module))
+ case _ => Nil
}
(Nil, Nil)
}
|
attach_storage(): fix sector range for reading MBR from disk
The range parameter in block_io functions is expressed in sectors,
not bytes, thus attach_storage() was reading the first 512 sectors
from an attached disk instead of just the first sector. Fix it. | @@ -222,7 +222,7 @@ closure_function(0, 3, void, attach_storage,
deallocate(h, mbr, SECTOR_SIZE);
return;
}
- apply(r, mbr, irange(0, SECTOR_SIZE), sh);
+ apply(r, mbr, irange(0, 1), sh);
}
static void read_kernel_syms()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.