Commit Graph

350 Commits

Author SHA1 Message Date
Axel Dörfler
2edddca0dc Removed the unused INODE_EMPTY flag, and introduced a new INODE_NOT_READY
flag which is used during construction of an inode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:21:28 +00:00
Axel Dörfler
696b26708c The Locker class now uses ASSERT() to be sure the semaphore could be locked.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:20:12 +00:00
Axel Dörfler
537e538aa6 Added two new macros, ASSERT(), and DIE().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:15:25 +00:00
Axel Dörfler
95f8931641 BlockAllocator::CheckInode() now has support for the double indirect region
of the stream (so the "chkbfs" functionality is complete now).
Fixed wrong block number report in BlockAllocator::CheckBlockRun(), blocks are
now printed out in absolute numbers (not allocation_group relative anymore).
Use Inode::IsContainer() where necessary instead of Inode::IsDirectory().
Fixed a big and nasty bug in AllocationBlock::SetTo(): the number of bits in
a block could be calculated wrong for a partial allocation group which need
more than one block in the bitmap - hopefully, that was the last remaining
big bug in the block allocator.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 01:59:14 +00:00
Axel Dörfler
68ca164dc3 Switched from Inode::IsDirectory() to Inode::IsContainer() where necessary.
Now makes use of the changed Inode::Create() logic.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 01:52:03 +00:00
Axel Dörfler
52fafe627e Changed the parameter logic from Inode::Create() - it now also keeps the
inode locked if the _inode parameter is passed.
Makes some more use of the new type identificators.
Symlinks are no longer added to the "size" index (compatibility with BFS, and it also
makes much more sense).
Now sets S_STR_INDEX for directories, if no index type was set (again, compatibility
issue with BFS).
Fixed a bug in the Inode::GrowStream() method in the double indirect region.
Some style updates.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 01:50:03 +00:00
Axel Dörfler
67fa10dcde Added some more type identification methods and constants.
Renamed Inode::IsDirectory() to Inode::IsContainer() (since it is also true
for index/attribute directories).
Introduced a new Inode::IsDirectory() that only checks for real and standard
directories. Let's hope I've fixed more bugs with that than introduced new
ones...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 01:44:17 +00:00
Axel Dörfler
b24d7c8bf7 Many style changes.
The only functional change is that bfs_rename() now checks for '/' in the
target name (the VFS should do those things, but you never know as long
you haven't written it yourself :).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 01:42:01 +00:00
Axel Dörfler
3f870da9c3 Almost complete and working "chkbfs" functionality for BFS. It can be used
via the private ioctls defined in bfs_control.h.
Detects all kinds of errors, and can correct most of them. It doesn't fix
any errors in the b+trees (like the ones created by an earlier version
of the BPlusTree class ;-), and it also can't fix the "blocks are already set"
error, which occurs if more than one file claims a particular block (or
range of blocks) for itself.
The double indirect data range is not yet supported, so use with care, or
run the original chkbfs afterwards to fix any errors because of that.
Might not yet analyze 100% correct (shows way to many errors for my tastes...).
A "chkbfs" command will be made available shortly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:28:47 +00:00
Axel Dörfler
27fe0a4b4b Adds support for INODE_DONT_FREE_SPACE, and all private BFS ioctls defined
in bfs_control.h.
Some minor cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:22:33 +00:00
Axel Dörfler
c113e0ecfd Added another ToDo item...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:21:06 +00:00
Axel Dörfler
adb9970c9e This file defines the private BFS ioctls to control the "chkbfs" mechanism
and other stuff.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:19:55 +00:00
Axel Dörfler
359c7618f0 Changed because of renaming IsValidBlockRun() to ValidateBlockRun().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:18:40 +00:00
Axel Dörfler
dbba7407de Renamed Volume::IsValidBlockRun() to Volume::ValidateBlockRun() because it
returns a status_t, not a boolean value.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:17:41 +00:00
Axel Dörfler
0c9a17ce08 Added a simple (and completely non-reliable) C implementation for atomic_set(),
and atomic_test_and_set() for userland testing purposes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:16:27 +00:00
Axel Dörfler
7781a5df6b Now uses block_run::MergeableWith() in Inode::GrowStream() - that also fixes
the bug where a block_run could get a zero length after merging it...
Updated a comment in Inode::Remove().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:14:30 +00:00
Axel Dörfler
2afbd5e712 Added new method block_run::MergeableWith() which checks if two different
block_runs can be merged together.
Added a constant for the maximum length of a block_run.
Added a flag constant to the inode that prevents freeing up its space
after it has been removed - this is only useful for the "chkbfs" stuff.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:12:56 +00:00
Axel Dörfler
8ea2f57ddd Added some more type identifying methods and constants (i.e. Inode::IsAttribute()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:10:31 +00:00
Matthew Wilber
78b736e8bc I'm not sure why that return was there in the first place
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-16 22:06:03 +00:00
Matthew Wilber
0f2c902adb I'm not sure what that return was doing there in the first place
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-16 22:05:26 +00:00
Axel Dörfler
6f6aedf0b3 Fixed the "famous" VM bug; read_pos() returns the number of bytes read, so
Cache::Read() != B_OK failed if the underlying class used that function.
We can now boot R5 with VM turned on without any problems (what a stupid bug).
As a side effect, you can now also mount volumes on your BFS disk, which was
also broken because of this bug.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:24:31 +00:00
Axel Dörfler
e94373bfa0 Added some comments, made bfs_create() a bit nicer (no functional change, though).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:22:16 +00:00
Axel Dörfler
601f33e246 It's no longer possible to remove or recreate a file that is opened with
uncached access.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:21:04 +00:00
Axel Dörfler
b334e2f00f Replaced the simple "return" with the RETURN_ERROR() macro for fatal errors
to make them visible in the log.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:19:49 +00:00
Axel Dörfler
ae01c8b752 Now includes <string.h> which is needed for the strerror() function used
in the macros.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:18:50 +00:00
Philippe Houdoin
c1e322be1d Fix a comment, and assume spawn_kernel_thread() always exists.
The stack debug platform, aka net_server, map to spawn_thread(), simply.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-13 23:51:36 +00:00
Philippe Houdoin
3a26c0afcb Make net modules mostly unaware of being (soon :-)) userland buildable too.
Some cleanup, in the way...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-12 21:06:11 +00:00
Philippe Houdoin
a0a6d75d61 Some net cleanup...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-12 21:03:25 +00:00
Axel Dörfler
fb39a31ca7 Fixed a dead-lock that could happen if an attribute was changed and you
had some running live queries.
SimpleLock now allows nesting; added some missing atomic operations to
make its implementation as easy as possible.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-10 06:05:46 +00:00
Axel Dörfler
b71ba910ba The non-benaphore of the Semaphore class just didn't work correctly...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 04:32:47 +00:00
Axel Dörfler
dab62fa391 Fixed a big stupid bug that can cause lots of trouble: all locks created
weren't moved to the kernel (as owner), so they would be deleted after
the team which almost randomly created them died.
Benaphores are now only used if USE_BENAPHORES is defined - I have renamed
the Benaphore class to Semaphore to take the changed behaviour into account.
Added a Status() method to the Locker class.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 02:02:31 +00:00
Axel Dörfler
e335b08a33 Fixed the wrong maintainance of the max_number_of_levels field in the
B+tree's header.
Some style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-07 12:30:45 +00:00
Axel Dörfler
a3d39a9e8a Equation::Match() unlocked the small data section too soon (the contents
could be changed before or during the comparison).
Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-06 22:17:21 +00:00
Philippe Houdoin
44f6e3ce60 *** empty log message ***
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-05 02:07:38 +00:00
Philippe Houdoin
097bec0493 Build the print add-ons in a "print" folder, not "Print", to follow BeOS
system folders lowercase naming.
Build print transport add-ons in their own sub-folder, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-05 01:33:48 +00:00
Philippe Houdoin
03a92a2178 Moved rtstat & rt_tables declarations in route.c instead of posix/net/route.h 8-\
Update the protocols and interfaces modules names prefix to reflect the real
disk hierarchy where they lives.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-01 02:58:20 +00:00
Philippe Houdoin
2cd1ec325f No more conflict on /dev/netstack between net_stack_driver and net_server_driver:
- net_server_driver now publish a /dev/net/server entry,
- net_stack_driver still publish a /dev/net/stack entry.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 21:06:07 +00:00
beveloper
2f344cad19 some more clean up and renaming
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 20:59:25 +00:00
beveloper
570e196319 bugfix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 17:22:23 +00:00
beveloper
b282b44773 code cleanup. renamed exported socket functions as socket_ and removed void *
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 16:40:51 +00:00
beveloper
24a8c5cfe1 fix for two bugs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 14:06:52 +00:00
Philippe Houdoin
d8d42f5a47 Some comments updated to the net_userstack_driver -> net_server_driver shift.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 08:47:22 +00:00
Philippe Houdoin
6b94eecd7c net_userstack_driver renamed into net_server_driver,
and net_server_driver is now build too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 08:24:00 +00:00
beveloper
42415555d3 after many changes, the network stack can now be build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 01:21:54 +00:00
Axel Dörfler
9844285a44 Changed the kmalloc()/kfree() calls to malloc()/free().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 23:08:35 +00:00
Bruno G. Albuquerque
bbdc29a05d bfs_walk() should check for read permissions for iterating through directories, not execute permission.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 13:31:54 +00:00
beveloper
6652c2eae9 removed some unused headers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 19:27:39 +00:00
beveloper
e58131e398 Excluded the ipr and lpr transport from the build.
They use the old net kit api, and need to be updated.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 18:12:46 +00:00
Axel Dörfler
23d098b60b Forgot to set the new "start" within the blocks range in
AllocationGroup::Allocate()/Free().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 02:59:39 +00:00
Axel Dörfler
820dca1912 Rearranged some code in the BlockAllocator; AllocationGroup now has Allocate()
and Free() methods which operate on the AllocationBlocks.
BlockAllocator::AllocateBlocks() couldn't correctly reserve space for allocation
groups with more than 2 blocks - AllocationGroup::Allocate() now can, which
is now used by AllocateBlocks() (but it's slightly less fast).
Began implementing functionality for a chkbfs-like command.
Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 17:54:38 +00:00
Axel Dörfler
c35898079f Updated tasks to do.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 17:49:24 +00:00
Axel Dörfler
e891a05e6e Add a new DEBUGGER() macro (doesn't do anything for the release build).
Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 17:48:29 +00:00
Axel Dörfler
05f02d9b9a Volume::Ummount() now use the NO_WRITES mode for remove_cached_device_blocks()
if the volume is read-only.
Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 17:46:12 +00:00
Axel Dörfler
7ab95d9da9 Made it easier to switch from R5 compilation to the test "obfs" compilation.
$ COMPILE_FOR_R5=1 jam
will compile the "bfs" version, otherwise the "obfs" version is created.
Note: the final executable will always be called obfs (for now).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 02:23:24 +00:00
Matthew Wilber
940ff9b93c changed C-style casting to the C++ standard style casting
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 01:23:05 +00:00
Matthew Wilber
7266c9b6ec forget paranthesis in two places, next time, I won't forget to try to compile before I check in code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 01:06:28 +00:00
Matthew Wilber
2861a868b9 changed old C-style casting to the C++ standard style casting
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 01:03:00 +00:00
Matthew Wilber
b8f9ee8199 Added a checkbox for turning on/off Save as RLE, saves TGA Translator settings to a file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 00:02:46 +00:00
Matthew Wilber
e5497a45ce added a checkbox for turning on/off save as RLE, saves TGA Translator settings to a file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 00:02:06 +00:00
Matthew Wilber
34bec321e8 added support for saving settings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 00:00:12 +00:00
Matthew Wilber
d3d8762333 added support for saving settings, in various ways
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 23:59:37 +00:00
Matthew Wilber
ce992c6d0f initial checkin
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 23:58:41 +00:00
shatty
2ac2ef2b15 added stubs for scatter-gather and others
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-05 05:18:24 +00:00
shatty
661ede4b33 improved comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-05 05:17:59 +00:00
Matthew Wilber
0d5d2ca494 fixed Save As RLE and added Save As RLE support to low color images and removed some redundant code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-04 01:46:42 +00:00
Axel Dörfler
7e1d70ff27 Some minor cleanups.
Eliminated a macro by introducing an inline function.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-03 04:45:07 +00:00
Matthew Wilber
225f93a081 the RLE stuff still doesn't exactly work, but I'm getting somewhere
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-03 04:11:38 +00:00
Matthew Wilber
5d4da381b0 added support for saving as RLE comrpessed TGA images for some types of Be Bitmap Images
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-30 02:15:01 +00:00
Axel Dörfler
74708d31ce Cleaned up the code, merged _keyboard_read() and keyboard_read(), and
merged setup_keyboard() and init_driver().
Added TRACE_KEYBOARD define to easily enable debug output from the keyboard driver.
Also made the escape key dropping into KDL - all special keys (like the
F-keys, etc.) aren't working in BeBochs, so that's a simple work-around
for that problem.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-30 01:43:28 +00:00
shatty
54764c4439 initial commit of untested beos support files.
probably missing: some of those annoying windowsish types (like DWORD)
everything else maybe works?


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 11:04:17 +00:00
shatty
27327f1724 now with OpenBeOS support!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 11:01:12 +00:00
shatty
3895766d9c initial commit from files downloaded at:
http://www.echoaudio.com/Download/Developer/developer.htm
please see the enclosed open-source license. (MIT variant)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 11:00:20 +00:00
shatty
348ee26939 initial commit. mostly borrowed from ich driver.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 10:55:11 +00:00
shatty
b1abd16faa initial commit
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 10:54:32 +00:00
shatty
9ed520d828 changes in anticipation of useful double-clicking
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 07:36:36 +00:00
shatty
5bc7143bb9 fixed some casting bugs
fixed newline at end of file


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 09:26:42 +00:00
shatty
de52c54764 fixed casting bugs (builds now)
also fixed newline at end of file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 09:20:04 +00:00
shatty
ce832bb128 fixed newline at end of file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 08:50:32 +00:00
shatty
4e2492b438 fixed newline at the end of file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 08:46:37 +00:00
shatty
76b04a8655 fixed newline at end of file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 02:15:06 +00:00
shatty
648b25f2e1 added linkage line for be shared lib, building by jam works now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1223 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 02:13:34 +00:00
beveloper
106c88e9d2 some fixes to get it working on Gateway Profile 4 (ICH 4 chipset)
also experimental code for AD1886 (doesn't work)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-26 11:20:08 +00:00
Matthew Wilber
6092a116e9 moved the pixel conversion logic out of translate_from_bits_to_tgatc and into a new function (pix_bits_to_tga) in order to make the code easier to read and easier to add the option for saving as RLE compressed TGAs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 00:59:39 +00:00
Matthew Wilber
2ac3396c5d change the names of the member variables to use the OpenTracker guidelines rather than the MFC-ish m_ notation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 00:56:25 +00:00
Matthew Wilber
ba97a8bdec changed the names of the member variables to use the OpenTracker guidlines instead of using the MFC-ish m_ notation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 00:55:45 +00:00
shatty
232527b282 corrected nit in AbstractFileInterfaceAddOn.h
added demultiplexer to Jamfile


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 02:33:27 +00:00
shatty
0216fe7112 util functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 02:28:49 +00:00
shatty
a1eca89c99 broke out util-style functions into separate misc files.
also corrected some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 02:28:12 +00:00
shatty
30747068b4 broke out util-style functions into separate misc file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 02:27:01 +00:00
shatty
728a8c7497 it compiles
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 02:25:35 +00:00
shatty
d5525d8c93 initial (non-working) commit
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-20 05:53:23 +00:00
Philippe Houdoin
f5826b35dc Stick with net_stack_driver name, not simply "stack"!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 23:25:58 +00:00
Philippe Houdoin
45077455b7 Ooops, missing #endif at end of file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 23:24:28 +00:00
shatty
4895a3a9e0 added some format re-negotiation code for SetRef, moved lib functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 20:19:55 +00:00
shatty
981e41277b fixed debug fprintfs, comments, and a type cast.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 07:13:37 +00:00
shatty
dc44d571b3 fixed debug fprintfs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 07:11:43 +00:00
shatty
d25a7b31f6 implemented preliminary format re-negotiation for SetRef. re-ordered
library functions.  fixed some debug fprintfs.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 07:11:21 +00:00
Matthew Wilber
a2ad856f52 added extra buffering to improve RLE image load times
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 03:01:37 +00:00
Matthew Wilber
38bf7c3d50 added extra buffering to RLE image processing to improve performance
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 03:01:05 +00:00
Matthew Wilber
6ecc367b9f initial check in
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 02:59:59 +00:00
Matthew Wilber
1f10fa18ae initial checkin
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-19 02:59:26 +00:00
shatty
378762da1d fixed crashing bug by computing and setting internal latency properly
and checking buffer validity when a buffer is received.  removed the
downstream latency variable because there is no downstream from this
node.  also added helpful comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-18 07:37:15 +00:00
shatty
39a0622e4b fixed buffer period calculation bug.
changed start_time to be TimeSource()->Now().
added some helpful comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-18 06:26:44 +00:00
Matthew Wilber
6085f1efd6 removed a few areas of redundancy and attempted to improve performance
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-18 02:44:24 +00:00
Matthew Wilber
6b1d82e29e Added support for opening RLE compressed TGA images
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-18 00:15:03 +00:00
Matthew Wilber
1538999d55 added support for opening RLE compressed TGA images
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-18 00:14:38 +00:00
shatty
7229ad13fc removed unnessary status_t variable
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-17 07:37:40 +00:00
Axel Dörfler
2b5451f164 Added private non-implemented copy constructor and assignment operators
for many classes for the sake of completeness.
Added a Transaction::IsStarted() method to not let it look like as if the
transaction is started more than once.
Changes made after suggestions from Mike Nordell, again :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-17 01:26:18 +00:00
shatty
45ed7b19fd changed allocation scheme
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 22:01:44 +00:00
Philippe Houdoin
59e1220c9b Now building, sorry, will build the net stack driver addon as "net_stack_driver"
instead of the too shorter "stack", which incidently fix a target dependency issue
with the STL stack header.
Wait. No. It's the reverse! :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 19:55:54 +00:00
Axel Dörfler
6829a19b3f Now bfs_write() also don't trigger any notifications during write access
on uncached files (might be needed for the VM file).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 16:09:36 +00:00
Axel Dörfler
a00ac4bc29 bfs_write() called Volume::WriteCachedBlocksIfNecessary() also on uncached
files which might cause troubles with the VM file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 16:06:22 +00:00
Axel Dörfler
d801dfdd1c Added CachedBlock::BlockSize(), and CachedBlock::BlockShift() methods as
suggested by Mike Nordell.
Some code cleanups, added a comment in Inode::SetFileSize() to point out
that Stream<Cache>::WriteAt() denies growing the file size its own.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 16:03:05 +00:00
Axel Dörfler
850b731e4d Some small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 15:13:54 +00:00
Axel Dörfler
fb34ad79d7 Added a missing check of the return value of a cached write in
Inode::FillGapWithZeros(), pointed out by Mike Nordell.
Note, that function is currently not used.
Some smaller cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 15:13:23 +00:00
Axel Dörfler
502d10e3ff Mike Nordell pointed me to the fact that BufferPool::ReleaseBuffers() didn't
free anything if it couldn't acquire the semaphore.
That allowed me to get aware of a possible bug in the destructor :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1057 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 15:07:36 +00:00
shatty
e49967f361 missed comment now entered
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 05:46:51 +00:00
shatty
8811eeb6aa fixed for connecting and crashing bugs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 05:45:42 +00:00
shatty
2a6deaf6c4 Fixed allocation problem.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 05:17:06 +00:00
shatty
ca6f35b121 Fixed allocation problem and removed out-of-date parameter lines.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 05:16:24 +00:00
Matthew Wilber
a34a6d9c9f added capability to open 15, 16, 24 and 32 bit "true color" TGA images and 8-bit color mapped TGA images
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 03:33:58 +00:00
Matthew Wilber
343a35cc2d added capability to open 15, 16, 24, and 32-bit "true color" TGA images and 8-bit color mapped TGA images
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 03:33:15 +00:00
shatty
794887f87f uses abstract file interface node now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 03:31:02 +00:00
shatty
242094db6d abstract file interface node used for reader and writer
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 03:29:54 +00:00
Ingo Weinhold
35c2a0d5f7 Commented out subdir stack, as it currently doesn't build anyway.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-15 20:58:51 +00:00
Matthew Wilber
f124f0a2a1 initial program check in
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-15 04:11:43 +00:00
Matthew Wilber
9d1ceba3bd initial Jamfile check in
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-15 04:07:24 +00:00
Matthew Wilber
dff79725e4 Fixed conversion from B_RGB16_BIG to BMP, I had a 1 where I was supposed to have a 0
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-15 02:48:41 +00:00
shatty
7eb88330cf repaired damage done by cvs commit of writer into this dir.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 13:57:39 +00:00
shatty
9262d3ec4f accidently committed to wrong dir. now in "writer" dir.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 13:54:29 +00:00
shatty
389207789b initial commit. can be instantiated in cortex and can connected to the reader node.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 13:51:27 +00:00
shatty
8cd0aa93ba first building node that can be instantiated in cortex with connector
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 13:33:30 +00:00
shatty
912d7a22e2 Added writer to jamfile.
Made some robustness improvements to mediareader based on things
that I noticed while doing mediawriter.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 13:32:18 +00:00
shatty
6836f3623e fileproducer -> reader
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 10:48:17 +00:00
shatty
820c41b91e Renamed from fileproducer to reader, both classes and directories
Don't bother looking at fileproducer since there are no versions there
beyond the initial commit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 10:47:24 +00:00
shatty
9b0a15bb06 changed fileproducer to reader
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 10:42:01 +00:00
shatty
38fb7dfa99 renamed class and directory to "reader" and MediaReader
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 10:40:42 +00:00
shatty
8c5a53fbe5 initial commit
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 10:01:19 +00:00
shatty
abbf22f13e include fileproducer when building
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 10:00:14 +00:00
Axel Dörfler
b8cb2cade8 B_CUR_FS_API_VERSION must be 2 on R5; so you need to build it on Dano if
you want to use it for booting Dano.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-14 01:10:33 +00:00
Axel Dörfler
ccc09203a5 Added power management functions to support Dano (needed to boot Dano using
our file system):
- added bfs_wake_vnode(), and bfs_suspend_vnode()
- bumped B_CUR_FS_API_VERSION to 3 as needed for Dano

It should now be able to boot Dano with our BFS, although I haven't tested
it. The information was gained using some degree of reverse engineering...
It won't be part of the BFS implementation for OpenBeOS (that won't run on R5
anymore) :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-11 01:03:35 +00:00
Axel Dörfler
f1e38490eb If debugging is disabled and the "release build" of BFS is done, optimization
is no only "-O1", since gcc obviously produces bad code if compiled with more.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-08 17:08:45 +00:00
Axel Dörfler
a130fd5520 Inode::SetFileSize() now doesn't allow changing the file size of uncached
files anymore (only Inode::WriteAt() denied it before).
Introduced a BFS_NAME define to be able to switch easier between "obfs",
and "bfs".
bfs_write_stat() didn't return the error code if Inode::SetFileSize() failed;
instead, it always reported success.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-08 15:25:23 +00:00
Philippe Houdoin
085d0da283 Remove the misplaced current/src/add-ons/net/Jamfile and add the missing
current/src/add-ons/kernel/drivers/net/Jamfile so the network stack driver
will access to build party.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-07 23:21:28 +00:00
DarkWyrm
9cf7b05e49 Removed SRect and SPoint as per Erik
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-07 11:29:02 +00:00
Axel Dörfler
b98d9a335a Fixed two bugs in the block allocator:
- the maximum number of blocks a block_run can cover is 65535 not 65536
- allocations over a block boundary in the block bitmap always failed due
  to a incorrectly handled status

Both bugs could prevent BFS to create the VM swap file which led BeOS to
stop booting under certain circumstances.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-07 02:44:42 +00:00
beveloper
90abd04b34 Change int into status_t, and other changes for better BeOS type compatiblitly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 02:19:22 +00:00
Axel Dörfler
35931182a2 Finally implemented growing in the double indirect range.
Tested, and works - we are now feature complete (and now for the bugs... :-)).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 02:10:34 +00:00
beveloper
f817f7d9ac convert int into status_t
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 01:28:31 +00:00
beveloper
5813c3dff5 correct a few names.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-02 14:37:38 +00:00