Commit Graph

26 Commits

Author SHA1 Message Date
Brad Fitzpatrick 57648c6b83 all: update copyright holder from Google Inc to The Perkeep Authors
The AUTHORS file is the list of copyright holders.
2018-01-03 16:52:49 -08:00
Brad Fitzpatrick d6a0b05df0 Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.

After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.

This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.

Also, this only moves the lru package to internal. More will move to
internal later.

Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.

This updates some docs, but not all.

devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).

Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 16:03:34 -08:00
mpl 3a5c0efcf4 pkg/fs: check mountedness with /proc/mounts
Fixes #829

Change-Id: I40065ce97c97d11c4a53c36561bc98b1e7573bff
2016-10-13 18:07:07 +02:00
mpl ba1877c4b6 pkg/fs: take At into account for (root)dirs
Also adds more reliable check for "mounted broken" dirs on linux (that
require a fusermount -u). They were seen as not mounted (actually not
existing), because the check relied on df, which on them would just
return the "transport endpoint is not connected" error.

Fixes #826

Change-Id: I440d10a7b42c217ee85ea7a1726e581bc74e6f4a
2016-08-01 18:45:26 +02:00
Eric Drechsel 4bfbdc7d51
pkg/fs: osxfuse version check shouldn't depend on map ordering
also, use fuse.OSXFUSELocationV3 and V2 for path info
they're exported for this sort of thing

Change-Id: If94024b944c419ced8760d904f521201916a5359
2016-04-13 16:04:52 -07:00
Eric Drechsel e0a9699c63
Update bazil.org/fuse
move to vendor
fix (lots) of breakages due to API changes

bazil.org/fuse: 37bfa8be929171feec943f3496bc4befdeaf10db

Change-Id: Ic92faf7585371027f3c521f7a24ae56d70d18547
2016-04-09 12:40:02 -07:00
Tamás Gulácsi 7402cc0efd Delete misc unused objects
Using honnef.co/go/unused/cmd/unused

Change-Id: I672b3cb77f09e9bd80dcdc149cde4f7f2939e451
2016-04-06 17:59:51 +02:00
Tamás Gulácsi 8d6b156a0b Misc syntax cleanup found by gosimple.
https://github.com/dominikh/go-simple

Thanks to Dominik Honnef for this great little tool!

Change-Id: I789b3a37e18f535df1ff0da47c0366ed01b2429e
2016-04-04 17:19:57 +02:00
mpl 3f0974ef13 tests: make sure camlistored is running before cammount
Context: http://camlistore.org/issue/385

Change-Id: I793298745096fc1696f01226698eb6682b24806d
2014-02-24 18:29:08 +01:00
mpl 2194134b70 fs: clean up mountpoints after tests
Otherwise they tend to annoyingly accumulate on long-lived hosts (such
as the  buildbot).

Change-Id: I41eb90423c1f98d8481fb3308c2cdcb74fc86ddd
2014-02-17 23:31:19 +01:00
Dustin Sallings fff8db88a7 fs: tests for xattr operations
Change-Id: I0501a8ec69fb30df7104b105f8e07a1864d2b5f6
2014-01-30 17:57:32 -08:00
Tommi Virtanen 6cda29582b third_party: Switch FUSE library to bazil.org/fuse
import bazil.org/fuse at f6649cd46fb76b1e04ba9eeffb773cb189278d31
remove code.google.com/p/rsc/fuse.

Huge thanks to Tommi Virtanen for the fuse support.

Change-Id: I44b95ac1ea344648593c7376f83ca675a56077b3
2014-01-24 13:28:08 -08:00
Dustin Sallings d768e5c5a6 FUSE time travel
Change-Id: I54f6c95629374fe2b578e4a0dec017fb9d724b32
2013-12-27 19:19:06 -08:00
Dustin Sallings c6768d8875 fuse: Enable tests on Linux; make them pass
This is essentially two things:

1. Trivial changes to fs_test to make it not skip on Linux
2. Move much of the logic that was in *mutFile.Release into *mutFile.Flush

See http://sourceforge.net/apps/mediawiki/fuse/index.php?title=FUSE_tutorial
and the FUSE FAQ for an explanation of Flush vs. Release.

Change-Id: Id63312b3f8ebf12917338b836beb8a7a736d4fe6
2013-12-27 11:51:17 -08:00
Brad Fitzpatrick 82bb3b71ca fs: add build tags to fs_test.go too
Change-Id: I5ccf451ce42f64578cd43405774fc9d7fdee1705
2013-07-29 14:14:32 -07:00
Brad Fitzpatrick dbfbc0c1e5 fs: implement symlinks
Change-Id: Ia2ae00c6e4a5b84239ae4807d31141fdb4f6c220
2013-07-28 12:59:56 -07:00
Brad Fitzpatrick f709fc930c fs: implement Rename. all tests pass now.
Change-Id: I3876aeb6dafd7e4cc5254a741e6938a579373a64
2013-07-27 22:54:55 -07:00
Brad Fitzpatrick 13bac69618 fs: simplify tests
Change-Id: I85f8b41414fe326e40ba791fdcb65bd5937e4128
2013-07-27 18:29:35 -07:00
Brad Fitzpatrick 1e72ebb0cd fs: pass more tests.
read-only Opens need to also not set OpenDirectIO, else the property
is retained on all future operations on that handle.

Change-Id: I954e899bf2c74815813b25a1fa0dc6d42a4189c6
2013-07-27 16:07:32 -07:00
Brad Fitzpatrick 4cbc402e4b fs: another failing test
Change-Id: If9d3a87aa67415846a7b7a1a20c4cef3cd9c1f66
2013-07-27 10:56:39 -07:00
Andrew Gerrand 64fe71e90d fs: add TextEdit mutable file system test
Change-Id: I98c06aaec98e053715a7dc8799ae568be6819acb
2013-07-23 11:20:16 +10:00
Brad Fitzpatrick f0edcaa7d4 fs: fix bug preventing Finder from working.
Apparently we need to update the node's size after a write on a filehandle.
Finder stats it (the node, not the handle) while writing and complains if it's
not the right size.

Change-Id: Ie3e98328a182a4bbb3230c5190e1d57d0d3fb075
2013-07-22 09:52:48 -07:00
Brad Fitzpatrick f8f71e0d77 fs: adding Mac-specific tests, scripting the Finder.
Currently broken. Need to investigate.

Change-Id: I06ba2af751b88ac16e086c39f24617ecec4f6095
2013-07-21 22:46:05 -07:00
Brad Fitzpatrick ff9ab092b1 fs: add .camli_fs_stats root directory; use it in tests.
Currently one a few stats are tracked, but more can be added easily now.

The only test using this is using it to verify that the read-only open optimization
is used.

Change-Id: I1e2fb8a0222ade82631670d7c51e684778d031ae
2013-07-21 21:13:16 -07:00
Brad Fitzpatrick 1149058dbd fs: mutable file append tests
Change-Id: Ibc1b31e7ccc187a92aa1fc8c205b779735126387
2013-07-21 19:01:22 -07:00
Brad Fitzpatrick 98eb69b5e1 fs: bunch of read-write FUSE work, debugging, and integration tests.
Change-Id: I74807f693720effb7ae8405259797331f79f59fd
2013-07-21 12:26:05 -07:00