Commit Graph

57 Commits

Author SHA1 Message Date
Diptanu Choudhury
0beb8c0856 Fixed comments 2016-11-08 12:55:15 -08:00
Diptanu Choudhury
68aedd3f8f Fixed permission issues on client 2016-11-08 10:57:29 -08:00
Alex Dadgar
d4aa3fb831 Disallow fs to read secret directory 2016-10-24 11:14:05 -07:00
Michael Schurter
4d3187bc7e Remove disk usage enforcement
Many thanks to @iverberk for the original PR (#1609), but we ended up
not wanting to ship this implementation with 0.5.

We'll come back to it after 0.5 and hopefully find a way to leverage
filesystem accounting and quotas, so we can skip the expensive polling.
2016-10-21 13:55:51 -07:00
Ben Barnard
ce94317d00 Replace "the the" with "the" in documentation and comments 2016-10-11 15:31:40 -04:00
Alex Dadgar
bcb1a2e216 Do not allow path to escape the alloc dir for the FS commands 2016-10-03 14:58:44 -07:00
Diptanu Choudhury
c29861b418 Getting snapshot of allocation from remote node (#1741)
* Added the alloc dir move

* Moving allocdirs when starting allocations

* Added the migrate flag to ephemeral disk

* Stopping migration if the allocation doesn't need migration any more

* Added the GetAllocDir method

* refactored code

* Added a test for alloc runner

* Incorporated review comments
2016-10-03 09:59:57 -07:00
Diptanu Choudhury
bc82dd67b5 Closing files when files are removed 2016-09-23 22:17:53 -07:00
Diptanu Choudhury
dd3af85114 Adding a snapshot endpoint on the client (#1730) 2016-09-21 21:28:12 -07:00
Alex Dadgar
bec6adb2ee Vault token threaded 2016-09-14 13:30:01 -07:00
Alex Dadgar
4bae54741e Secret dir materialized in alloc/task directory 2016-09-02 12:44:05 -07:00
Alex Dadgar
335cababe1 Revert "Introduce a Secret/ directory" 2016-09-01 17:23:15 -07:00
Alex Dadgar
0b07ef93c1 Address comments and reserve 2016-08-31 18:11:02 -07:00
Alex Dadgar
46ce8dd020 Interface + tests 2016-08-30 21:40:32 -07:00
Alex Dadgar
0ebdff2bb7 Secret dir, hello world 2016-08-29 15:41:52 -07:00
Alex Dadgar
b813362ece Make maxSize exported so that it is serialized 2016-08-28 17:48:35 -07:00
Ivo Verberk
0d13488f1f Monitor the complete alloc directory, not just the shared part. 2016-08-25 20:48:19 +02:00
Ivo Verberk
13071e9846 Disk resource monitoring and enforcement 2016-08-18 07:59:03 +02:00
Alex Dadgar
17b9e7ddb4 only use polling 2016-08-11 18:59:48 -07:00
Alex Dadgar
cc0fec53f1 initial log api impl 2016-07-25 11:16:01 -07:00
Alex Dadgar
19ca6e7b55 address comments 2016-07-12 17:01:33 -06:00
Alex Dadgar
3cc13aeca1 initial comments 2016-07-11 10:58:18 -06:00
Alex Dadgar
2368722146 initial tail impl 2016-07-10 13:57:04 -04:00
Sean Chittenden
29be52f762 Speling police 2016-05-15 09:41:34 -07:00
Diptanu Choudhury
dc38906809 Removing directories only if we could successfully unmount them 2016-05-10 14:57:16 -07:00
Diptanu Choudhury
2e3a2d6e0d Seeking to offset while doing readAt with non-zero offset 2016-04-04 13:05:02 -07:00
Alex Dadgar
8742390da5 Alloc dir uses MkdirAll 2016-03-28 14:33:53 -07:00
Alex Dadgar
9c45f36819 Drop the permissions of sub directories in the alloc dir 2016-02-25 11:49:43 -08:00
Diptanu Choudhury
54d7057912 Writing logs to alloc dir 2016-02-24 20:06:43 -08:00
Alex Dadgar
1a31340075 Unmount special directories when task finishes 2016-02-08 18:51:11 -08:00
Alex Dadgar
ec583e4807 Add tmp file to each task directory 2016-02-04 15:35:04 -08:00
Alex Dadgar
3308841098 Serialize the list of mounted entries in the alloc dir 2016-02-04 14:30:32 -08:00
Ranjib Dey
8e546010e7 allow group and others to have executable permissions 2016-01-31 10:54:32 -08:00
Diptanu Choudhury
12ffecf021 Added more information about files 2016-01-27 14:20:10 -08:00
Alex Dadgar
e91abac0f6 Fix a bunch of tests
Up timeouts

trusty travis beta

Increase timeouts
2016-01-20 16:03:53 -08:00
Diptanu Choudhury
0cf85f5355 Refactoring some comments and test names 2016-01-14 15:07:24 -08:00
Diptanu Choudhury
778c5d0a86 Added some more comments 2016-01-14 13:47:46 -08:00
Diptanu Choudhury
91869fb79b Added some docs and removed a redundant method 2016-01-14 13:45:48 -08:00
Diptanu Choudhury
21847954e0 changed the API of the client 2016-01-14 13:35:42 -08:00
Diptanu Choudhury
e7b1424bcb Returning an error if the list fails 2016-01-14 11:47:05 -08:00
Diptanu Choudhury
4345fc9bee Renamed AllocFile to AllocFileInfo 2016-01-13 17:18:10 -08:00
Diptanu Choudhury
78d03616f6 Closing the file handler after finishing readat 2016-01-13 14:39:06 -08:00
Diptanu Choudhury
9dced9a890 alex: making the readat more efficient 2016-01-13 12:43:13 -08:00
Diptanu Choudhury
6604ef5be1 Writing contents of buffer to writer even if there was an error 2016-01-13 11:38:43 -08:00
Diptanu Choudhury
11a67599b9 Implemeted readAt 2016-01-12 22:06:42 -08:00
Diptanu Choudhury
b5385b616d Implemented the Stat API 2016-01-12 21:28:07 -08:00
Diptanu Choudhury
cbcdaec3fe Added the Stat API 2016-01-12 15:25:51 -08:00
Diptanu Choudhury
744c226c23 Added methods for listing directories inside an alloc 2016-01-12 15:03:53 -08:00
Alex Dadgar
8afce68bf0 Inject the current binary into the chroot in test mode 2015-11-24 16:30:53 -08:00
Alex Dadgar
6e19dadcae Check for previous embeds at entry level not folder level 2015-11-10 18:10:02 -08:00