Commit Graph

168 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
beveloper
0170038a31 better codec detection and allow codec specific functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-01 21:23:57 +00:00
Philippe Houdoin
0e29915606 Ooops, forgot these initial network kernel stack protocoles modules Jamfiles...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-29 08:08:58 +00:00
Philippe Houdoin
5de6083d95 Network stack kernel modules moved to /current tree.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-29 08:07:10 +00:00
Philippe Houdoin
c374d17e22 Changes in the network kernel modules source tree: removing misnamed and/or misplaced
old one.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-29 07:36:01 +00:00
Philippe Houdoin
c5b60ec4fd The network stack "kernel" modules was previously misplaced under the
misnamed /current/src/add-ons/net directory.
Should be into /current/src/add-ons/kernel/network, as they are *kernel* modules add-ons
and as they all share the "network/" prefix in their respective module names.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-29 07:23:59 +00:00
Philippe Houdoin
0fce772df1 Moving the network stack driver (/dev/net/stack) from old /net_kit/source/driver/
to /current repository


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-27 07:34:55 +00:00
beveloper
fd93cc35b3 reverted the latest change
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-26 14:49:16 +00:00
beveloper
32ffa52615 This solve some problems where the driver seemed to work, but you couldn't
hear any sound. Looks like certain chipsets use the optional aux output,
instead of line out


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-26 14:48:24 +00:00
Axel Dörfler
2d38e3f603 The beginning of letting a stream grow into the double indirect range.
Not yet finished, nor tested, but almost complete :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-21 15:52:21 +00:00
Axel Dörfler
bc62229fce Volume::Free(), and BlockAllocator::Free() now pass the block_run by value
rather than by reference.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-21 15:51:03 +00:00
Axel Dörfler
ba04be1db0 Fixed the dirent.d_reclen calculation - define KEEP_WRONG_DIRENT_RECLEN to
enable the old and compatible behaviour (on BeOS R5, all available file
systems seem to do that wrong).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 13:31:04 +00:00
beveloper
33d6854bee changed codec detection and special ICH4 handling
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-17 19:59:33 +00:00
beveloper
15ea765d53 Change debugging routines, add more ICH4 support, add tertiary codec support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-15 21:33:17 +00:00
beveloper
6c3c3848cc This should fix problems with ICH4 chipsets.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-15 13:54:21 +00:00
Axel Dörfler
ba5530fdc9 Now only "jam install" triggers the installation of bfs (in this directory only).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 22:50:45 +00:00
Axel Dörfler
8a1faae799 Fixed the build process of bfs; -g and -O2 don't mix well together...
To enable debug output, type:
$ DEBUG=1 jam
Also, it's now automatically installed in /boot/home/config/add-ons/kernel/file_systems


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 22:10:06 +00:00
Axel Dörfler
ae38c6e93d Fixed a bug that could lead to the wrong last_modified time in an inode;
bfs_close() updated the last_modified time & index, but it didn't write
the inode back to disk.
Furthermore, bfs_write() should have already updated the last_modified
time, not bfs_close.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 21:49:03 +00:00
Axel Dörfler
e238bce6f5 BufferPool::ReleaseBuffers() didn't set fFirstFree correctly.
Setting uncached access to a file no longer returns an error (if it succeeds).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 16:55:12 +00:00
Axel Dörfler
ee77e6d68f Implemented uncached access for files (untested though).
Uses a template class to provide generic access to the file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 16:29:46 +00:00
Axel Dörfler
6a2e071075 Fixed compilation (stupid me :-).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 21:41:12 +00:00
Axel Dörfler
beddff0f56 Replaced opendir.c with directory.c, implemented chdir(), fchdir(), and
getcwd().
Introduced new xyz(int fd, char *path, ...) style of functions for
sys_setcwd(), and sys_write_stat().
Added missing sys_fstat(). Removed duplicated prototypes in syscalls.h
Fixed some minor bugs.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 20:20:28 +00:00
Axel Dörfler
533bfa8744 Updated Jamfile to compile "bfs" rather than "befs"
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 01:34:27 +00:00
Axel Dörfler
40f7fd6cf3 Implemented the basics to allow uncached file access under BeOS.
This is needed for the VM swap file and if you want to mount disk images
located on the BFS volume.
There is now a BufferPool class that manages a pool of buffers, so that
Inode::ReadAt()/Inode::WriteAt() can access a file without having to use
the cache or malloc()/free().
The real uncached file access is not yet implemented, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 01:23:04 +00:00
Axel Dörfler
e57d105cfe Moved the befs/ directory and contents to bfs/ (hey, this is not linux :-).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-07 23:25:01 +00:00
Axel Dörfler
c42ee13401 Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-07 23:14:13 +00:00
Axel Dörfler
f7bfd5f065 The '|' character didn't work (fixed by geist).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 07:09:37 +00:00
beveloper
08d3f7d47c Add user friendly debugging, and enable an external amplifier.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 22:16:23 +00:00
beveloper
01f8c701b9 removed volatile statements that should not be used with functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 10:56:08 +00:00
beveloper
2d3138349f Installing an interrupt handler in init_hardware() without
removing it is bad. Other small changes, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 00:41:56 +00:00
David Reid
bcfd132286 Change to the way that interrupts are called. These now are the correct
calls for the recent changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 18:36:14 +00:00
David Reid
161de6e63c Add the ps2mouse.h header next to the code it deals with. It's not used
anywhere else...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 18:27:48 +00:00
David Reid
fd2ee3a598 Change to the interrupt handler return values.
Also, the style police have visited ps2mouse.c


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 16:02:58 +00:00
Tyler Dauwalder
2de17bd3e8 Ooops :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 01:09:06 +00:00