Commit Graph

13856 Commits

Author SHA1 Message Date
Axel Dörfler
b96ea69c37 You really can do the same mistake twice, even in two subsequent lines of code...
get_file_map() now seems to work correctly in all regular cases.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-13 12:37:13 +00:00
Axel Dörfler
634c23467b If allocating a new node fails, the bplustree_header::maximum_size field is now
reseted to its old value.
BPlusTree::SetTo() is now less strict about maximum_size vs. inode size differences;
it will now print a warning and set the maximum_size to the inode size, even though
the tree might be corrupted (reading should always be as compatible and forgiving
as possible).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 22:13:28 +00:00
Axel Dörfler
90f1dccb72 Our ELF loader now gets something like error handling - it may still have some
(memory) holes, but failing to load an add-on should no longer exit your
application. Reported by Korli.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 20:52:46 +00:00
Axel Dörfler
fbdd53ace2 Extended the node checker a bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 19:56:08 +00:00
Axel Dörfler
65af8c8327 bfs_get_file_map() no longer returns the preallocation area as part of the
file data - it checks if the current run goes beyond the file size and cuts
it off after the block containing that last few bytes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 19:52:26 +00:00
Axel Dörfler
4430d71191 Better error checking (at least panic if something goes wrong, instead of ignoring).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 19:51:17 +00:00
Axel Dörfler
139353cf1a Fixed two bugs in the new file extent caching code:
- under certain situations, the wrong extent could be chosen (off-by-one error)
- the resulting length of the first vector was incorrectly calculated for all
  extents but the first
Improved error checking a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 19:50:42 +00:00
DarkWyrm
8002431bb4 Style fixes to TermWindow.cpp
Removed trailing spaces after text generated by file drops
Added a few TODOs


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 18:59:17 +00:00
DarkWyrm
401fdf8278 Style and header updates
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 18:00:37 +00:00
DarkWyrm
d863d4bf1d Made scanning of all font folders a compile-time option
Moved the scanning of individual font folders to FontServer
Implemented server-side code for update_font_families
Removed ClientFontList from the build


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 14:55:46 +00:00
Ingo Weinhold
4b9ec73e99 We need to override the virtual close_fd() in BFile for binary compatibility
(bug #43).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-12 09:26:59 +00:00
DarkWyrm
fdbc56b338 Fixed build for R5 target
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-11 20:50:58 +00:00
DarkWyrm
2cd1ecf22d Added some handler code for when no CD drive can be found
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-11 20:24:55 +00:00
Axel Dörfler
c3c73413e8 Removed execute property from source files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-11 17:37:44 +00:00
Jérôme Duval
cab4e35c22 make sure we don't load Blackness addon
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-11 15:17:47 +00:00
Axel Dörfler
d50852ad0c Fixed creation of the "Screen Savers" directory; due to the bug in the fs_shell_command,
it ended up having a '\' in it.
Added bochs config line example for an 80 MB image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-11 12:38:39 +00:00
Axel Dörfler
ee0951d2b5 Fixed missing escaping of spaces in command names.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-11 12:34:24 +00:00
Jérôme Duval
acdf6df22c rc was moved to objects
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-11 12:33:16 +00:00
Jérôme Duval
2218507532 screen savers are in Screen Savers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-10 14:51:54 +00:00
Jérôme Duval
96d447a201 added screen saver kit components
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-10 14:51:21 +00:00
David McPaul
6108dafc2a Code Cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-10 10:46:25 +00:00
Axel Dörfler
13d77a4cde Now fills in the machine field with something more appropriate (currently mimics
BeOS behaviour). Maybe we want to have some different values here later on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 22:58:58 +00:00
Marcus Overhagen
92ac3fafcf fixed debug build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 18:45:39 +00:00
Axel Dörfler
7964c56d67 Added vfs_get_cwd() call to get the mount_id and vnode_id of the current
working directory (instead of the full path).
Cleanup of some remaining "int" status variables (where it should have
been a "status_t").


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 16:25:01 +00:00
Axel Dörfler
9962d68b54 Now cleanly frees all resources when removed from the cache.
Also removes team listeners when the session is deleted.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 16:20:23 +00:00
DarkWyrm
6d41bc18b1 Added handling code for when CDDB lookup fails
Changed the way logging is set in CDDBQuery
Fixed a bug which caused some funky behavior in Shuffle mode
Missed adjusting Loop and Shuffle buttons when AdjustButtonState was introduced. Fixed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 16:12:06 +00:00
Axel Dörfler
8733b7318d The stack trace in the kernel debugger is now safe against accessing invalid
user memory (it got its own fault handler). IOW the stack frame is not changed
in that case anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 16:09:26 +00:00
Michael Lotz
d35c42a0c9 Ok, hopefully fixed all problems with Message3 now. Flat buffers are so fragile...
Also cleaned up Message3.h revert it if you think its a binary compatibility issue.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 14:27:35 +00:00
Michael Lotz
629192bcaa Corrected the count in building the MessageSpeedTestLookup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 13:34:37 +00:00
Axel Dörfler
dd3c15369e The "consoled" application was broken since r13800 - it did open the console driver
in read-only mode, but only wrote to it (which erroneously worked before that change).
Only a white screen appeared, no prompt, nothing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 13:21:01 +00:00
Michael Lotz
90dc946130 Actually the Message3 implementation was broken. It still is, because we lose one (but an important) byte somewhere when resizing the flat buffer. But at least the design flaws should be corrected with this commit. You can go ahead and review it Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 05:49:13 +00:00
Michael Lotz
3019039f4f This is the third implementation of BMessage. It operates purly on a flat buffer. It should be completely working and it is fast. See: http://haiku.mlotz.ch/messagespeed.html
Sorry to pollute the repository with all those extra files, they will be (re-)moved when the decision about which implementation to use is made.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-08 01:34:09 +00:00
Michael Lotz
896d777151 Changed the MessageSpeedTests for flatten/unflatten. They now measure the actual flatten/unflatten and not reading from or writing to disk. Otherwise comparison would be worthless.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-08 01:10:42 +00:00
Michael Lotz
3a7d8dfa74 Tiny fix for the MessageItemTest10
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-07 23:43:43 +00:00
Michael Lotz
49b4f78f95 Minor correction.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-07 17:49:38 +00:00
Michael Lotz
97d2f9c04d Redone the MessageSpeedTests. Results can now be logged to file too.
For a comparison see: http://haiku.mlotz.ch/messagespeed.html

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-07 17:26:42 +00:00
Michael Lotz
024ef0b800 Fixing and adding more BMessage speed tests. Previously messages weren't written at all. This shows that Message2 is actually much faster than the R5 version in flattening. The current implementation is sometimes a lot faster than Message2 though but doesn't scale that well.
Added libmessagetest.so to test specifically the BMessage implementation.
Fixing some other unit tests along the way - quite many of them are borken.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-07 13:19:49 +00:00
Marcus Overhagen
8f9dff78dc cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-06 22:38:28 +00:00
Michael Lotz
54ca2a11db Moving towards more flat buffering. Speed is still lower than the original Be implementation, but it's not because of the backend, it's probably the slow BMessage::Header implementation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-06 15:03:18 +00:00
Michael Lotz
0401007080 Fix build of libopenbeos.so
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-05 17:20:38 +00:00
Michael Lotz
0c22832d6b Hopefully fixed build of libbe.so and libopenbeos.so
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-05 17:18:07 +00:00
Philippe Houdoin
8c67c59ba9 Removed libhaiku.a from build, as it was only used by (now defunct) experimental StyledEdit+ app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-05 15:24:19 +00:00
Axel Dörfler
eeed33b66c Now reads in all saved previous sessions, and also prefetches main (named) sessions
like the boot process. Prefetching standard apps does not work yet.
Note, since it always just caches the whole file regardless of what part of it had
been read (missing stuff here, and in the file cache), and since our I/O scheduler
doesn't do anything yet, it might end up slower than just reading the stuff one by
one.
Also, it currently let the triggering app/session wait while it's prefetching the
data. So although it is working, it doesn't work great at all.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-05 11:55:32 +00:00
Axel Dörfler
eab435cd59 vfs_get_vnode_cache() now only allocates a new cache if requested: this
prevents the system to allocate caches for files that don't use or have
a file cache (ie. only those can be mmap()ed!).
Therefore, cache_prefetch() no longer crashes when trying to prefetch
files without a file cache.
read_into_cache() no longer does anything if the requested size is 0.
Fixed a bug in cache_prefetch_vnode(): if the cache couldn't be retrieved,
it put the vnode, but didn't own it (the caller does).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-05 11:52:22 +00:00
Axel Dörfler
06ae92cd04 Maybe it's better to free the team resources after notifying the watchers;
since the hooks are called in the context of the team.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-05 10:27:08 +00:00
Philippe Houdoin
459a7cfc36 Removed obsoleted .src includes files.
Removed Interface's kit BTextView Jamfile, as it's build right from src/kits/interface/Jamfile now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-05 10:18:26 +00:00
Philippe Houdoin
cb5da7de09 Cleanup libbe.so build system, using MergeObject power:
a) Make main Jamfile more easier to understand to new (and old even) developers. 
   Currently it looks a little too messy compared to usual Haiku's jamfiles.
b) Get ride of app.src, interface.src, storage.src and support.src includes files.
c) Move each kit objects files built back to their respective
   objects/x86.R1/kits/{app|interface|storage|support} location.
d) Move private headers and source search hints back to each respective kit
   Jamfiles. Most of them, at least.

{app|interface|storage|support}.src files effective deletion will come soon.
Hope I didn't break all *again* :-\



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-05 09:56:03 +00:00
Ingo Weinhold
7d11acca6d Spotted by Axel: If the caller of a load_image_etc() was waiting for the new team to be loaded, but the team died before finishing loading we were notifying the caller only in case the team had already more than one thread.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-04 22:45:04 +00:00
Axel Dörfler
59165b8548 Now writes its findings to disk, and filters out tiny apps by some made up heuristic.
Still doesn't do anything of use.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-04 16:40:00 +00:00
Axel Dörfler
67f207164b Copied some code from the console driver: we now understand cursor movements,
and even color changes :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-04 14:55:11 +00:00