Commit Graph

142159 Commits

Author SHA1 Message Date
Ulf Lilleengen
8b5125bdfe - Write out branches with the highest revision number first if they have the
same date.
2009-01-03 15:17:20 +00:00
Ulf Lilleengen
0b73a70cd9 - A bit missing from the previous commit. The '@'s from the string token must be
stripped before encoding the expansion mode.
2009-01-03 12:09:18 +00:00
Ulf Lilleengen
c81ea6003c - Add an optimization when parsing rcsfiles when the intention is to only send
details to the cvsup server. The deltatext does not need parsing, and some
  parts of the rcsfile data structure doesn't need to be set up.
- Fix a bug where the RCS expansion mode is not written out.
2009-01-02 12:40:58 +00:00
Ulf Lilleengen
e0f42fb982 - Disable rsync support for now, as it is not fully working. 2009-01-02 12:37:31 +00:00
Ulf Lilleengen
0da6b614af - Fattrs are not used for rsync, so remove unused code. 2009-01-02 12:36:59 +00:00
Ulf Lilleengen
d8c0b9ac9f - Check for NULL in case fattr_frompath fails. 2009-01-02 12:35:01 +00:00
Ulf Lilleengen
abb23cb1af - Fix a wrong flag check. 2008-12-21 14:04:10 +00:00
Ulf Lilleengen
a25883eaea - Add missing printout information when appending file.
Submitted by:	naddy
2008-12-10 18:13:30 +00:00
Ulf Lilleengen
4390381ebd - Check return value of the encoded keyword before using it.
Pointed out by:	Christian Weisgerber <naddy -at- mips.inka.de>
2008-12-09 21:10:09 +00:00
Ulf Lilleengen
9178dc306f A few bugfixes:
- Instead of including protocol info in diffs, strip them before adding
  deltatext and take this into account when applying the diff later.
- Don't use strlen when the string in the RCS file may contain garbage. This got
  caught in the checksumming before, but was not fixed until now. Instead of
  using strlen, pass the token length when adding log and text entries to a
  delta. Add an extra length parameter to duptext() to record the token length.
- When adding new branches to a file, add them in at the tail instead of the
  head of the list to get correct ordering when writing out.
- Input stream when diffing was opened twice.
- Don't expand keywords in diffs between deltas.
2008-12-03 22:47:33 +00:00
Ulf Lilleengen
bc1d339146 - Print out information about what file that is edited before it is edited
instead of after.
2008-12-02 20:50:37 +00:00
Ulf Lilleengen
627156f119 - Fix a bug where deltas was not sorted on RCS dates _and_ revision number. 2008-12-02 20:48:45 +00:00
Ulf Lilleengen
ab0135bc74 - Fix a bug in csup where SKIP is not obeyed when sending collection
information.
2008-11-26 19:27:51 +00:00
Ulf Lilleengen
8658b90899 - Add missing rsyncfile from Makefile 2008-11-23 19:43:45 +00:00
Ulf Lilleengen
41a9dd24e4 - Make sure comparisons are done on file types as well.
- Handle the case where a repository may have been copied, and the symlinks have
  not been preserved. CVSup removes the files and creates the symlinks, so
  enable this behaviour in csup as well.
- While there, fix comments and style issues.
2008-11-23 16:44:49 +00:00
Ulf Lilleengen
c978f37d88 - Add support for reading RCS info from status file to avoid having to detail a
file if it is up to date.
2008-11-23 14:53:21 +00:00
Ulf Lilleengen
49e63a7276 - Refactor some parts of the code and increase code reuse.
- Fix a lot of style issues remaining and old debugging output.
- Update comments where needed.
2008-11-20 19:51:06 +00:00
Ulf Lilleengen
bd04e3119f - Add support for 'X' and 'x' commands in CVSup protocol. These commands are not
often used, but were quite simple to implement anyway.
2008-11-20 13:39:14 +00:00
Ulf Lilleengen
271c9f1bd4 - Fix build with GNU make.
- Fix compiler warnings and symbol overlaps.
- Don't build code that is not used yet.
- Fix types and format strings.
2008-11-20 12:52:07 +00:00
Ulf Lilleengen
bd337e58c3 - Fix issues that prevented rsync support from working. 2008-11-20 12:23:44 +00:00
Ulf Lilleengen
d0d1701140 A few general bugfixes:
- Use internal xmalloc instead of malloc.
- Include missing header after warnings.
- Fix unneeded printouts.
- Fix a bug when checking the CO_NORSYNC flag.
2008-11-19 14:57:00 +00:00
Ulf Lilleengen
a02596e2f7 - Fixup the rcs revision comparing to be correct this time. 2008-11-19 14:53:20 +00:00
Ulf Lilleengen
2323f92e44 - Fix idiotic rcsnum_cmp and compare the revision numbers without allocating any
memory.
2008-11-12 14:29:24 +00:00
Ulf Lilleengen
4136ca9478 - Implement rsync support in csup, which is chosen as a protocol for regular
files if the client supports it. The support is implemented with an API to
  operate on files, calculating the rolling checksum and md5 checksum for the
  blocks etc.
- Remove unneeded stream_filter_stop and stream_flush before stream_close.
2008-10-25 10:54:28 +00:00
Ulf Lilleengen
763db4b138 - Implement support for retrieving a size_t type from the protocol stream. 2008-10-25 10:52:22 +00:00
Ulf Lilleengen
92854d9d50 - Add size_t format specifier to proto_printf. 2008-10-25 10:23:24 +00:00
Ulf Lilleengen
3d4e599494 - Import csup work from p4. 2008-10-19 09:08:59 +00:00
Ulf Lilleengen
fc84e5f31b - Import the Makefile from HEAD for building csup. 2008-10-19 08:43:16 +00:00
Ulf Lilleengen
d7f03759d5 - Import the HEAD csup code which is the basis for the cvsmode work. 2008-10-19 08:41:10 +00:00
Sam Leffler
8d1f54dbaa add -n option to suppress clearing the build tree and add -DNO_CLEAN
to buildworld and/or buildkernel
2008-10-19 06:58:31 +00:00
Kip Macy
50d6e42434 - Forward port flush of page table updates on context switch or userret
- Forward port vfork XEN hack
2008-10-19 01:35:27 +00:00
Kip Macy
dafc9be8f8 GC gratuitous XEN defines 2008-10-19 01:33:58 +00:00
Kip Macy
9bf38e47a3 - move gdt, ldt allocation to before KPT allocation
- fix bugs where we would:
    - try to map the hypervisors address space
    - accidentally kick out an existing kernel mapping for some domain creation memory allocation sizes
    - accidentally skip a 2MB kernel mapping for some domain creation memory allocation sizes
- don't rely on trapping in to xen to read rcr2, reference through vcpu
- whitespace cleanups
2008-10-19 01:27:40 +00:00
Kip Macy
ba32964d08 GC unused values 2008-10-19 01:23:30 +00:00
Tim Kientzle
758dfd70db Add test to verify ACL restores on FreeBSD, verify kern/128203 (mtime
restore fails if ACL provided), apply patch from kern/128203, and verify fix.

PR:		kern/128203
Submitted by:	Udo Schweigert
MFC after:	3 days
2008-10-19 00:18:44 +00:00
Tim Kientzle
d34dca65fa Style: Mark private data 'static', correct an old comment.
MFC after:	3 days
2008-10-19 00:13:57 +00:00
Alexander Motin
a7cf627487 Coalesce sequentional BIO_DELETE requests to slightly relax size and alignment
constraints required by the card.
2008-10-18 22:22:25 +00:00
Alexander Motin
3906d42d63 Implement BIO_DELETE command with MMC and SD erase commands.
Erase operation gives card's logic information about unused areas to help it
implement wear-leveling with lower overhead comparing to usual writing.
Erase is much faster then write and does not depends on data bus speed.
Also as result of hitting in-card write logic optimizations I have measured
up to 50% performance boost on writing undersized blocks into preerased areas.

At the same time there are strict limitations on size and allignment of erase
operations. We can erase only blocks aligned to the erase sector size and
with size multiple of it. Different cards has different erase sector size
which usually varies from 64KB to 4MB. SD cards actually allow to erase
smaller blocks, but it is much more expensive as it is implemented via
read-erase-write sequence and so not sutable for the BIO_DELETE purposes.

Reviewed by:	imp@
2008-10-18 16:17:04 +00:00
Randall Stewart
1b9f62a044 The flags value was not always being copied out in the recv routine like it
should be.
Obtained from:	Michael Tuexen
2008-10-18 15:56:52 +00:00
Randall Stewart
ac29704161 New sockets (accepted) were not inheriting the proper snd/rcv buffer value.
Obtained from:	 Michael Tuexen
2008-10-18 15:56:12 +00:00
Randall Stewart
1862b24533 - Peers rwnd is now available for the MIB.
Obtained from:	Michael Tuexen
2008-10-18 15:55:15 +00:00
Randall Stewart
fc69c30240 - Adapt layer indication was always being given (it should only
be given when the user has enabled it). (Michael Tuexen)
- Sack Immediately was not being set properly on the actual chunk, it
  was only put in the rcvd_flags which is incorrect. (Michael Tuexen)
- added an ifndef userspace to one of the already present macro's for
  inet (Brad Penoff)
Obtained from:	Michael Tuexen and Brad Penoff
MFC after:	4 weeks
2008-10-18 15:54:25 +00:00
Randall Stewart
fcea7c2ed3 Reported by Yehuda Weinraub (yehudasa@gamil.com) - CRC32C algorithm
uses incorrect init_bytes value. It SHOULD have the number
of bytes to get to a 4 byte boundary.

PR:	128134
MFC after:	4 weeks
2008-10-18 15:53:31 +00:00
Konstantin Belousov
f1f0dd9ef3 Set PCB_32BIT and clear PCB_GS32BIT for linux32 binaries.
Tested by:	dchagin
MFC after:	3 days
2008-10-18 13:39:22 +00:00
Ed Schouten
58a5b17f7b Increase the date in the manual page, which should have been done in r183922.
In r183922 I introduced a new DDB command, documented it, but forgot to
bump the date in the manual page.

Pointed out by:	bz
2008-10-18 06:23:08 +00:00
Xin LI
f53577c0d4 Use strlcpy() in !localized case to avoid the -1's. 2008-10-17 21:29:05 +00:00
Xin LI
0ea291e221 Use strlcpy() when we mean it. 2008-10-17 21:21:14 +00:00
Xin LI
1c10962832 Use strlcpy() when we mean it. 2008-10-17 21:14:50 +00:00
Xin LI
76a7756334 - Use static for usage()
- Include necessary header files.

setfib(1) should pass WARNS=6 with this changes.
2008-10-17 21:11:09 +00:00
Xin LI
01c56ef230 Reduce code duplication: use calloc() intead of malloc()
and memset afterward.
2008-10-17 20:11:28 +00:00