Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-who committed Feb 21, 2024
1 parent 60d046c commit f952a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spit/sat.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void *receiver(void *arg) {
char *str = calloc(1024*1024, 1); assert(str);
char *ret = str;
for (int cc = 0; cc < tc->cluster->id; cc++) {
for (size_t i = 0; i < 32; i++) {
for (size_t i = 0; i < 128; i++) {
str += sprintf(str, "node%d:/mnt/disk%zd\t/mnt/node%d-%zd\tnfs\tdefaults,noauto\t 0 0\n", cc, i, cc,i);
}
}
Expand All @@ -249,7 +249,7 @@ void *receiver(void *arg) {
char *str = calloc(1024*1024, 1); assert(str);
char *ret = str;
for (int cc = 0; cc < tc->cluster->id; cc++) {
for (size_t i = 0; i < 32; i++) {
for (size_t i = 0; i < 128; i++) {
str += sprintf(str, "mkdir -p /mnt/node%d-%zd\n", cc, i);
}
}
Expand Down
2 changes: 1 addition & 1 deletion spit/setupbrd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

modprobe brd nr_rd=128 rd_size=104857600
modprobe brd rd_nr=128 rd_size=104857600

/bin/rm -f /etc/exports

Expand Down

0 comments on commit f952a2b

Please sign in to comment.