Commit Graph

1184 Commits

Author SHA1 Message Date
Nicola Murino c7fdf5e5c6 writeToSequential: improve tests for write errors 2022-03-03 12:30:24 +01:00
Nicola Murino 59b2472859
Merge pull request #498 from drakkan/startdir
request server: add WithStartDirectory option
2022-03-03 12:09:40 +01:00
Hilari Moragrega 65f24bcee4 Improved test with CR feedback 2022-03-03 09:43:16 +01:00
Hilari Moragrega c2c0f6090e Return writer error if not nil in writeSequential 2022-03-03 09:43:11 +01:00
Nicola Murino 03407a734b mark RealPathFileLister as deprecated 2022-03-02 18:44:54 +01:00
Nicola Murino 98b35dcfc3 request server: add WithStartDirectory option 2022-03-02 18:33:41 +01:00
Nicola Murino aa9a37d639
Merge pull request #492 from pkg/bug/extended-packets-no-path-convert
[bug] PosixRename and Hardlink don’t convert remote paths to local paths
2022-02-01 09:17:30 +01:00
Cassondra Foesch a61b35f5a3 remove racing stdout 2022-01-31 21:25:18 +00:00
Cassondra Foesch bb06e29d17 get integration tests passing on WSL for GOOS=windows 2022-01-31 21:12:49 +00:00
Cassondra Foesch 7cbc4bdd2f PosixRename, Hardlink: need to convert remote paths to local paths 2022-01-31 21:12:05 +00:00
Cassondra Foesch 7d25d533c9
Merge pull request #490 from glebteterin/bug-489
Fix missing io.EOF when concurency is disabled #489
2022-01-19 19:28:00 +00:00
Gleb Teterin dad23755af Fix missing io.EOF when concurency is disabled #489 2022-01-20 07:55:17 +13:00
Nicola Murino 31aac3e187
Merge pull request #485 from greatroar/readfrom-test
Add File.ReadFrom test on a SectionReader
2021-12-28 21:07:25 +01:00
greatroar 1fffa629f6 Add File.ReadFrom test with a Sized Reader
This tests ReadFrom's determining concurrency from the estimated input
size. go test -cover -integration, before:

coverage: 77.3% of statements

After:

coverage: 79.2% of statements
2021-12-24 08:42:10 +01:00
Nicola Murino 1849af66af
Merge pull request #483 from drakkan/deps
update deps
2021-12-17 09:19:21 +01:00
Nicola Murino dbe66f3b88 update deps 2021-12-17 09:10:48 +01:00
Cassondra Foesch e0c10596f6
Merge pull request #482 from pkg/patch/sequential-concurrent-write-requests
Sequentially issue write requests, process results concurrently
2021-12-15 11:22:46 +00:00
Cassondra Foesch 84714f9fee sequentially issue write requests, process results concurrently 2021-12-05 13:28:38 +00:00
Cassondra Foesch 7adab6cb02
Merge pull request #478 from tommie/eaccess
Translate EACCES to PERMISSION_DENIED.
2021-10-30 16:13:11 +00:00
Tommie Gannert 20a9511799 Translate EACCES to PERMISSION_DENIED.
This is returned by (POSIX) open(2) if there is a permission issue,
e.g. opening a read-only file for writing.
2021-10-30 09:02:56 +02:00
Nicola Murino 858320b5b4
Merge pull request #471 from drakkan/test32bit
CI: run test cases also on 32-bit arch
2021-09-27 12:12:04 +02:00
Nicola Murino 7b9575b2f5 CI: race is not supported on 386 arch 2021-09-27 12:00:28 +02:00
Nicola Murino b447df2322 CI: run test cases also on 32-bit arch 2021-09-27 11:53:26 +02:00
Cassondra Foesch 42e9800606
Merge pull request #470 from pkg/hotfix/constants-overflow-implicit-32bit-types
Need to type constants that overflow `int` on 32-bit archs
2021-09-26 20:02:43 +00:00
Cassondra Foesch f36d79fd31 type constants that overflow int on 32-bit archs 2021-09-26 19:54:03 +00:00
Cassondra Foesch ec1ca37883
Merge pull request #467 from pkg/bug/missing-id-passthru-on-statfs
Missing ID passthru on statfs
2021-09-05 18:52:39 +00:00
Cassondra Foesch 625e0b2b51 missing ID passthru on statfs 2021-09-05 02:35:25 +00:00
Nicola Murino 49a095a221
Merge pull request #459 from drakkan/go117
CI: add Go 1.17 and remove 1.15
2021-08-21 07:29:51 +02:00
Cassondra Foesch 15e19d9339
Merge pull request #462 from codesoap/gofmt
Apply gofmt
2021-08-20 23:11:38 +00:00
Cassondra Foesch f525d180b6
Merge pull request #456 from pkg/refactor/regroup-and-lint
Regroup marshling/unmarshaling and lint
2021-08-20 22:59:08 +00:00
Cassondra Foesch 7ad9c6f9ac
Merge pull request #461 from codesoap/unchecked
Check for two more errors in tests
2021-08-20 22:57:31 +00:00
codesoap fc44f6eafc Apply gofmt 2021-08-20 21:32:22 +02:00
codesoap 90ae4b588c Check for two more errors in tests 2021-08-20 21:27:27 +02:00
Nicola Murino 6e72d1bc74 CI: add Go 1.17 and remove 1.15 2021-08-20 21:19:45 +02:00
Nicola Murino 7c41618dff
Merge pull request #458 from codesoap/misspell
Fix a few misspells
2021-08-20 21:18:03 +02:00
codesoap 997499abb6 Fix a few misspells 2021-08-20 21:00:33 +02:00
Cassondra Foesch de654c18c1 godoc for exported function of exported type 2021-08-17 11:41:05 +00:00
Cassondra Foesch b94f1ccedd NameLookupFileLister so that RequestServer does not automatically lookup system usernames 2021-08-17 11:40:30 +00:00
Cassondra Foesch e0fe31eb43 js's Stat_t conforms to attrs_unix.go 2021-08-11 15:11:37 +00:00
Cassondra Foesch 00dc491201 refactor ls formatting work 2021-08-11 15:09:43 +00:00
Cassondra Foesch 1b6d816185 remove min function 2021-08-11 13:29:16 +00:00
Cassondra Foesch 0f6e8d5016 exploit the embedded FileStat in fileInfo 2021-08-11 13:20:30 +00:00
Cassondra Foesch b64dfe1710 no need for excluding based on CGO here 2021-08-11 13:11:37 +00:00
Cassondra Foesch c11a2ec1a1 resolve corner-case os.ModeType handling 2021-08-11 13:10:07 +00:00
Cassondra Foesch 68f4ca6663 linting 2021-08-11 11:12:34 +00:00
Cassondra Foesch d1599c6376 remove clamp function 2021-08-11 11:12:34 +00:00
Cassondra Foesch ba854bee45 collect all marshal/unmarshal functions into packet.go 2021-08-11 11:12:34 +00:00
Cassondra Foesch 792ae58b7e
Merge pull request #455 from pkg/cleanup-request-mutex-usage
Cleanup Request mutex usage
2021-08-03 12:24:18 +00:00
Cassondra Foesch 889ffcae88 fix the type, and we can pre-allocate the whole slice 2021-08-02 11:58:16 +00:00
Cassondra Foesch 94523b9b6f remove temporary variable 2021-08-02 11:55:34 +00:00