├── Makefile └── README.md /Makefile: -------------------------------------------------------------------------------- 1 | # This is the Makefile helping you submit the labs. 2 | # Just create 6.824/api.key with your API key in it, 3 | # and submit your lab with the following command: 4 | # $ make [lab1|lab2a|lab2b|lab2c|lab2d|lab3a|lab3b|lab4a|lab4b] 5 | 6 | LABS=" lab1 lab2a lab2b lab2c lab2d lab3a lab3b lab4a lab4b " 7 | 8 | %: check-% 9 | @echo "Preparing $@-handin.tar.gz" 10 | @if echo $(LABS) | grep -q " $@ " ; then \ 11 | echo "Tarring up your submission..." ; \ 12 | COPYFILE_DISABLE=1 tar cvzf $@-handin.tar.gz \ 13 | "--exclude=src/main/pg-*.txt" \ 14 | "--exclude=src/main/diskvd" \ 15 | "--exclude=src/mapreduce/824-mrinput-*.txt" \ 16 | "--exclude=src/main/mr-*" \ 17 | "--exclude=mrtmp.*" \ 18 | "--exclude=src/main/diff.out" \ 19 | "--exclude=src/main/mrmaster" \ 20 | "--exclude=src/main/mrsequential" \ 21 | "--exclude=src/main/mrworker" \ 22 | "--exclude=*.so" \ 23 | Makefile src; \ 24 | if ! test -e api.key ; then \ 25 | echo "Missing $(PWD)/api.key. Please create the file with your key in it or submit the $@-handin.tar.gz via the web interface."; \ 26 | else \ 27 | echo "Are you sure you want to submit $@? Enter 'yes' to continue:"; \ 28 | read line; \ 29 | if test "$$line" != "yes" ; then echo "Giving up submission"; exit; fi; \ 30 | if test `stat -c "%s" "$@-handin.tar.gz" 2>/dev/null || stat -f "%z" "$@-handin.tar.gz"` -ge 20971520 ; then echo "File exceeds 20MB."; exit; fi; \ 31 | cat api.key | tr -d '\n' > .api.key.trimmed ; \ 32 | curl --silent --fail --show-error -F file=@$@-handin.tar.gz -F "key=<.api.key.trimmed" \ 33 | https://6824.scripts.mit.edu/2021/handin.py/upload > /dev/null || { \ 34 | echo ; \ 35 | echo "Submit seems to have failed."; \ 36 | echo "Please upload the tarball manually on the submission website."; } \ 37 | fi; \ 38 | else \ 39 | echo "Bad target $@. Usage: make [$(LABS)]"; \ 40 | fi 41 | 42 | .PHONY: check-% 43 | check-%: 44 | @echo "Checking that your submission builds correctly..." 45 | @./.check-build git://g.csail.mit.edu/6.824-golabs-2021 $(patsubst check-%,%,$@) 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **这个仓库代码已经被隐藏,只留下中文博客** 2 | # MIT6.824_2021_spring 3 | lab1,2,3,4. spring2021 4 | 5 | ## 中文博客地址 6 | -lab2 : https://blog.csdn.net/qq_40443651/article/details/116091524 7 | 8 | -lab3 : https://blog.csdn.net/qq_40443651/article/details/117172246 9 | 10 | -lab4 : https://blog.csdn.net/qq_40443651/article/details/118034894 11 | --------------------------------------------------------------------------------