Commit graph

145 commits

Author SHA1 Message Date
Russ Cox
b3a20a96eb libthread: add threadmaybackground
Programs that want to background themselves now need
to define threadmaybackground returning 1.
This avoids a confusing (to people and debuggers)
extra parent process for all the threaded programs
that will never want to background themselves.
2020-12-30 00:12:14 -05:00
Russ Cox
5c06214952 venti/buildindex: fix hang on large indexes
Fixes #93.
2020-01-14 19:46:47 -05:00
Edouard Klein
185fd7db05 Make venti's doc more accurate 2020-01-13 10:10:31 -05:00
Neven Sajko
386bd9cae4 cmd/venti/srv: split memory allocation call
This splits a certain vtmallocz call in mkihash into two vtmallocz
calls. The first issue this fixes is that the C aliasing rules were not
respected in the code before this commit. The other thing is that this
enables better memory alignment guarantees.

Updates #313

Change-Id: Ia4f3e0fc85facc778193f5e977d4f99a1a9abd23
2020-01-13 10:08:01 -05:00
Dan Cross
fa325e9b42 Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00
Michael Stroucken
4a8c0c75ff venti: fix venti graph on 64-bit
A pixel is 32 bits wide in RGBA, regardless of system's word size.

Change-Id: Iea36a8dafdec9ce8d593f944ef5ed1ea08e11d25
Reviewed-on: https://plan9port-review.googlesource.com/2980
Reviewed-by: David du Colombier <0intro@gmail.com>
2017-07-23 11:11:56 +00:00
Russ Cox
310ae03327 all: fix or silence all INSTALL warnings on macOS
Should be a clean build now.

Change-Id: Id3460371cb5e8d4071f8faa9c2aec870d213a067
Reviewed-on: https://plan9port-review.googlesource.com/2781
Reviewed-by: Russ Cox <rsc@swtch.com>
2017-01-06 21:37:31 +00:00
Russ Cox
2763a6d832 venti/copy: fix bug writing directories that zero truncate
Found by nwf.

TBR=rsc
https://codereview.appspot.com/162860045
2014-10-21 07:25:13 -04:00
David du Colombier
0798d6b741 venti/wrarena: fix arenapart breakage
R=rsc
https://codereview.appspot.com/7027044
2013-01-03 06:48:36 +01:00
Russ Cox
0cfb376070 fix clang warnings reported by Tuncer Ayaz
R=rsc
http://codereview.appspot.com/6744054
2012-10-21 11:25:08 -04:00
Russ Cox
220c15d2b7 fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc
http://codereview.appspot.com/6744053
2012-10-20 13:36:52 -04:00
Russ Cox
5d03af6557 fix INSTALL warnings
R=rsc
http://codereview.appspot.com/6258060
2012-05-29 15:11:14 -04:00
Abhishek Kulkarni
71ce470a2b venti: fix VtMaxLumpSize
R=rsc, adkulkar
CC=plan9port.codebot
http://codereview.appspot.com/6108047
2012-05-29 13:34:52 -04:00
David du Colombier
4ded140a67 venti: remove bloomlookuptime in stats
R=rsc
http://codereview.appspot.com/6197057
2012-05-07 16:20:44 +02:00
David du Colombier
3f79d3ee64 venti: fix bloom in stats
R=rsc
http://codereview.appspot.com/6201049
2012-05-07 15:55:41 +02:00
David du Colombier
d117737d44 venti: fix writedonechan size in bloom
R=rsc
http://codereview.appspot.com/6128063
2012-05-02 06:44:38 +02:00
Russ Cox
e7e953b3da venti: add bootstrap mode (write + no index)
R=rsc, rsc
http://codereview.appspot.com/6097047
2012-04-22 15:27:06 -04:00
Russ Cox
a2df31f46d venti: fix typo
R=rsc
http://codereview.appspot.com/5989059
2012-04-07 15:40:06 -04:00
Russ Cox
20271fedfb venti: add arenapart support to wrarena
R=rsc
http://codereview.appspot.com/5988058
2012-04-07 15:38:59 -04:00
David du Colombier
60d96f2e43 venti: import venti/conf from plan 9
R=rsc
http://codereview.appspot.com/5572066
2012-01-26 17:33:36 +01:00
David du Colombier
5d434a3ff3 venti: fix settings in stats
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5558054
2012-01-20 13:13:30 -05:00
David du Colombier
131ab3addb venti: fix scacheprefetch stats
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5507045
2012-01-16 16:55:23 -05:00
David du Colombier
bd51695c92 venti/mgr: various fixes and plan 9 support
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5421047
2011-11-21 11:00:36 -05:00
David du Colombier
1d752a8479 venti: fix log url in stats
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5395043
2011-11-21 08:40:34 -05:00
David du Colombier
1e0c038342 venti: import changes from plan 9
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5325044
2011-11-08 11:48:18 -05:00
David du Colombier
db60da46b3 venti: fix vtcachealloc and VtMaxLumpSize
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5309073
2011-11-08 09:02:36 -05:00
David du Colombier
36c242dd86 venti: fix format on ulong
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5328046
2011-11-08 09:02:28 -05:00
David du Colombier
3155ec718b venti: fix pragma varargck due to changes in tag()
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4517150
2011-06-13 14:41:26 -04:00
David du Colombier
8aeb3ea1c0 venti: fix usage to match manuals
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4593041
2011-06-07 16:53:11 -04:00
David du Colombier
9ee007320d venti: fix usage to match manuals
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4576041
2011-06-07 14:52:25 -04:00
David du Colombier
f5a8ea6fd8 venti: import changes from plan 9
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4523057
2011-06-02 09:33:56 -04:00
Russ Cox
00f0146a5c venti: add mgr (work in progress)
R=rsc
http://codereview.appspot.com/3003041
2010-11-09 10:52:41 -05:00
Russ Cox
8425b514aa various: crctab now u32int
R=rsc
http://codereview.appspot.com/220041
2010-02-22 16:54:58 -08:00
Venkatesh Srinivas
bf93068686 venti: handle FS block size > MaxIo
http://codereview.appspot.com/110071
2009-08-23 17:35:22 -04:00
Venkatesh Srinivas
da0a205ed6 venti/copy: synchronize with Plan 9; indent in verbose mode
http://codereview.appspot.com/110062
2009-08-21 15:55:56 -04:00
Russ Cox
75d048884c venti: 32-bit extensions to data structures 2009-05-25 02:11:27 -07:00
Russ Cox
fd0a0b2a62 venti/copy: no rewriting unless rewrite flag is set (Nathaniel W Filardo) 2009-02-04 21:55:03 -08:00
Russ Cox
afaa1397f3 venti: disk i/o fixes and tweaks 2008-12-23 12:39:06 -08:00
Russ Cox
3b06b75766 venti: better inconsistency errors 2008-12-23 12:38:16 -08:00
Russ Cox
9b5f23c2de venti/verifyarena: shorter output, aligned i/o 2008-12-23 12:37:58 -08:00
Russ Cox
beaf487589 venti/mirrorarenas: shorter output, aligned i/o 2008-12-23 12:37:52 -08:00
Russ Cox
5df56af730 venti: ignore mgr lines in config 2008-12-23 12:36:33 -08:00
Russ Cox
c1b1466e95 venti: handle symlinks as disks 2008-12-06 15:33:23 -08:00
Russ Cox
0e430b25b2 venti: silence warnings in icache.c 2008-08-07 11:17:06 -04:00
Russ Cox
dce4cbabd1 venti: work around gcc 4.3 bug (reported by Lucho Ionkov) 2008-07-31 15:41:54 -04:00
Russ Cox
a58f193d08 venti: add venti/dump program 2008-07-09 11:42:09 -04:00
Russ Cox
ac5a97e6b3 venti: reduce locking contention in buildindex 2008-07-03 22:44:24 -04:00
Russ Cox
cd87898f5d venti: more detail in index divisor too coarse message 2008-07-03 22:42:11 -04:00
Russ Cox
ce31e3d40b venti: bump MaxAMap 2008-07-03 22:42:03 -04:00
Russ Cox
030fb939cc venti: mark checksum-queued arenas in http output 2008-07-03 22:40:58 -04:00