Commit Graph

46 Commits

Author SHA1 Message Date
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
9458106550 Added a test for AllocDir.LogDir 2016-02-25 09:08:51 -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
Diptanu Choudhury
747d3202ca Moving code to mount and unmount chroot into allocdir 2016-02-08 14:11:53 -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
Diptanu Choudhury
06443a6629 Using cgo dependencies to look up users 2015-12-15 11:12:13 -08:00
Chris Bednarski
8267ffe8a6 Merge branch 'user-lookup-nocgo' of https://github.com/carlosdp/nomad into b-user-lookup 2015-12-01 13:44:56 -08:00
Carlos Diaz-Padron
eeaa84d52e Refactor out userLookup to helper package
Also replaces user.Lookup in exec driver
2015-12-01 11:59:55 -08:00
Alex Dadgar
8afce68bf0 Inject the current binary into the chroot in test mode 2015-11-24 16:30:53 -08:00
Diptanu Choudhury
05d21c52e4 Fixed the allocdir tests 2015-11-16 13:10:57 -08:00
Carlos Diaz-Padron
8ef509fbb3 Remove CGO dependency for user lookup in allocdir
os/user's user.Lookup requires that the artifact be compiled with CGO
support enabled. This change instead reads /etc/passwd directly.

The code was acquired from docker/docker#1096
2015-11-15 21:26:34 -08:00
Alex Dadgar
6e19dadcae Check for previous embeds at entry level not folder level 2015-11-10 18:10:02 -08:00
Alex Dadgar
9707f60ddc Fix alloc_dir mounting through task restarts 2015-11-10 14:12:30 -08:00
Alex Dadgar
ceb2a5f877 Fix alloc_dir error message 2015-10-06 16:38:06 -07:00
Mitchell Hashimoto
950fc7e495 client: fix windows build errors 2015-09-27 23:53:25 -07:00
Alex Dadgar
2ee8b22ddb Use host file/dir permissions when embedding 2015-09-25 16:49:19 -07:00
Alex Dadgar
6d7afcd1ff Skip non-regular files in embedding and comment on the chrootEnv map 2015-09-25 16:49:19 -07:00
Alex Dadgar
23c726a055 Windows shouldn't do anything on unmount 2015-09-25 16:49:19 -07:00
Alex Dadgar
e8bd1a3df4 Fix embed non-existent test 2015-09-25 16:49:18 -07:00
Alex Dadgar
8a5e65e27a Merge qemu test 2015-09-25 16:49:14 -07:00
Alex Dadgar
9caa7ac077 Mount shared alloc dir, modified API and tests 2015-09-25 16:46:41 -07:00
Alex Dadgar
aba801d68e Linux Embed and AllocDir unit tests 2015-09-25 16:46:41 -07:00
Alex Dadgar
7a5f6ea8e8 Fix function header 2015-09-25 16:46:41 -07:00
Alex Dadgar
a934701857 Embed interface 2015-09-25 16:46:41 -07:00
Alex Dadgar
66fe1294da Changed file names so it builds correctly 2015-09-25 16:46:41 -07:00
Alex Dadgar
38460ca653 AllocDirBuilder that creates the alloc directory structure 2015-09-25 16:46:41 -07:00