Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update makefile for build/get #70

Closed
wants to merge 135 commits into from
Closed

update makefile for build/get #70

wants to merge 135 commits into from

Conversation

yunxing
Copy link
Contributor

@yunxing yunxing commented Jun 4, 2015

go build builds everything now.
for #18

xiang90 and others added 30 commits April 19, 2015 14:08
ReadBlock: return EOF correctly
- add a FIXME in TestPartlyReadBlock
add block tests and fix minor bugs
Use basic slice instead of buffer struct. This makes code simpler
and avoids pre-optimization.
wangtuanjie and others added 22 commits June 2, 2015 13:11
If there is a full block and the client is reading half of them,
we should first read the full block out, compare the crc, then
copy data into client buffer.
readBlock: don't return error if input buffer is smaller than a block
The server side will print out error like this:
```
2015/06/03 05:57:52 [INFO][github.com/c-fs/cfs/server] server.go:36:
server: write error (open cfs0000/foodir/foo: no such file or directory)
```
More error checking and return correct bytes copied
server: print disk.writeAt error when calling write func
run `./scripts/genproto.sh` will generate proto.
move a testcase to read crc error test
add Makefile for `go test` and `go vet`
go-vet:
@find . -name '*.go' | xargs -L 1 go tool vet
test: vet build
go test -p 8 -race -d ./...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go test -p 8 -race -d ./... doesn't work for me for some reasons.
And I believe ? github.com/c-fs/cfs/stats [no test files] will show up. I don't want these show up, so I tried to grep all test file

@xiang90
Copy link
Contributor

xiang90 commented Aug 10, 2015

Shall we rebase or simply close this?

@wangtuanjie wangtuanjie closed this Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants