Commit Graph

379 Commits

Author SHA1 Message Date
Ingo Weinhold
0fbb290f51 Some changes to/fixes of the KDiskSystem interface and the disk system module interface.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 21:41:32 +00:00
Tyler Dauwalder
09405cc9e2 - Added missing #include <stdio.h>
- Fixed sprintf warning


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:54:06 +00:00
Tyler Dauwalder
04062eb904 Added kernel utils to header search path
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:52:56 +00:00
Tyler Dauwalder
865abd0ebc Added DirectoryIterator.cpp and Utils.cpp to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:48:22 +00:00
Tyler Dauwalder
981aa8f472 Initial implementations of:
- udf_get_vnode()
- udf_release_vnode()
- udf_walk
- udf_open_dir()
- udf_read_dir()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:47:31 +00:00
Tyler Dauwalder
b8f1212a91 Added Type(), IsFile(), IsDirectory(), and GetDirectoryIterator()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:43:57 +00:00
Tyler Dauwalder
267fd7e7d1 Addded Philips UDF verifier link
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:42:26 +00:00
Tyler Dauwalder
42ba13e82b Directory iterators.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:41:45 +00:00
Tyler Dauwalder
24ec5f4377 Udf utility functions
- Added vnode_id to udf_long_address (and vice-versa) conversion functions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:41:03 +00:00
Philippe Houdoin
2a1f1e5a23 Export socket_shutdown from stack core module.
Fix and build again net_server_driver.
Rollback to NET_STACK_GET_COOKIE trick for accept() implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 01:07:21 +00:00
Ingo Weinhold
c54d68a84e Should have waited a few more minutes... Renamed the methods {B,K}Partition::Is{Mountable,Partitionable}() to Contains{File,Partitioning}System(). Similar change for the respective flags (B_PARTITION_{MOUNTABLE,PARTITIONABLE}).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 17:38:45 +00:00
Ingo Weinhold
55bf93d80d Fixed handling of partition and device flags and statuses.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 17:25:32 +00:00
Niels Sascha Reedijk
d1becfd8a4 Made the modifications needed to make this driver platform independant
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3890 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-07 15:01:55 +00:00
Tyler Dauwalder
6c92bff25c Finished up udf_mount(), added udf_release_node()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:24:20 +00:00
Tyler Dauwalder
d2e3d64aa6 Got rid of throw()'s
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:23:37 +00:00
Tyler Dauwalder
3f4628f1ae Finished up initial volume recognition implementation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:22:15 +00:00
Tyler Dauwalder
8279a93bdb - Added CF_HELPER category
- Updated DUMP_INIT to automatically add the CF_DUMP category


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:21:04 +00:00
Tyler Dauwalder
f0f808aff1 UDF -> Udf namespace change
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:19:29 +00:00
Tyler Dauwalder
7e57ce9132 Added StaticMemoryChunk class
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:18:10 +00:00
Tyler Dauwalder
e90fa96289 Added Icb.cpp and CS0String.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:17:30 +00:00
Tyler Dauwalder
d0da916694 More endianness support and debugging dump functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:16:35 +00:00
Tyler Dauwalder
33e6eac459 Added operator[] which doesn't seem to work for some reason.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:15:24 +00:00
Tyler Dauwalder
e1016e4f8a Icb class initial checkin.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:14:06 +00:00
Tyler Dauwalder
466c605a47 Static Unicode string class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:13:10 +00:00
Waldemar Kornewald
e19f10fab7 Corrected get_ip_id() so that it uses atomic_add() instead of a semaphore.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-29 15:47:40 +00:00
Ingo Weinhold
38cf1a986c Small fixes. Make use of the types of types defined in <DiskDeviceTypes.h>.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:27:00 +00:00
Ingo Weinhold
4ab0785cd8 Ported the BFS module over to the new disk device manager API. It still lives here to not interfere with Axel's FS add-on. Should be merged some day.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:15:37 +00:00
Niels Sascha Reedijk
2c5845b559 Improved the way that version id's were parsed. Also added version id for the
rtl8139D. Phillipe, let's start testing!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 18:55:13 +00:00
Axel Dörfler
f14bae95b6 Renamed "blocks" to "blocksRequested" in Inode::GrowStream() to make its
usage clearer. Also added a comment that explains why it's okay that
blocksNeeded and blocksRequested can be different.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 17:11:53 +00:00
Niels Sascha Reedijk
93780ea379 Implemented free hook. The driver now cleanly works when the net_server is restarted via the Network preference panel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 14:52:59 +00:00
Philippe Houdoin
a91f266ff3 Hide the accept() trick more deeper: now the stack driver manage the trick himself.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 01:02:50 +00:00
Axel Dörfler
4a9d9dfa14 Added new RecursiveLock and RecursiveLocker classes.
Added file system global locking around creating, deleting, and renaming
inodes - that's not nice, but since we have only sequential journal access,
it won't hurt concurrency much. The locks are needed to prevent certain
things from happening like two threads could theoretically create the same
file twice (one of them would have failed, but relatively late in the process).
Anyway, a better locking scheme will be implemented at a later date, but maybe
not for R1.
Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 15:11:31 +00:00
Niels Sascha Reedijk
6ad250bc87 In theory the driver should now work. though I'm not really buying it yet, I
think that it shouldn't drop any packets anymore (only delay them)
- I implemented a packet wrap, so after 64k the driver will start over again
- I fixed a bug where packets with the largest ethernet frame size (1514)
  weren't accepted.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 10:45:52 +00:00
Ingo Weinhold
09eceed9b8 Added support for installing the networking stuff. Use: jam [un]install-networking.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 18:15:52 +00:00
Niels Sascha Reedijk
1a20f41c7e I DID IT
Sorry for the enthousiasm. For the first time in my life a made a driver
somewhat work. There's still a major list of things to do, but at least I
feel safer now that this is working. I can already do pings. Moreover, I'm
doing this commit with my own driver. I'm just ashamed for the major mistake
I made that took me so much time to find. I'm off sending this beast to
testers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 14:02:51 +00:00
Niels Sascha Reedijk
b1045c6e31 Fix dprintf warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 13:42:32 +00:00
Niels Sascha Reedijk
a068a53e10 Update TODO accordingly
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 20:10:43 +00:00
Niels Sascha Reedijk
99e393eacc I have changed the way packet reception is handled. Instead of managing it at
the interrupt handler, now it is done in the read_hook itself. This means that
less memory is used because the packet reception isn't double-buffered anymore.
It also wasn't the performance it I'd expect it to be (probably thanks to BeOS
scheduling!). The problem with the strange loss of around 50% of the packets
remains.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 20:10:09 +00:00
Axel Dörfler
4a5e9fec88 Updated some comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:23:38 +00:00
Ingo Weinhold
e5e5ddc13a ep_scan_partition(): Removed erroneous check for cookie (it's unused here), and fixed child index counting.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-14 00:12:12 +00:00
Ingo Weinhold
852d12ef4c Ported the intel partitioning system module to the new interface
(disk device manager) and moved it to a nicer place.
First tests look good, though my hard disk structure doesn't even
have extended partitions. Going to install Linux now...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 22:01:51 +00:00
Philippe Houdoin
dbafe172c0 Import, on behalf of Niels Reedijk (SF ID: nielx), his RTL8139 network cards driver.
Add a Jamfile to build it (thanks to Axel's sis900 jamfile).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 23:39:38 +00:00
Axel Dörfler
c59538b901 Some cleanups, courtesy of Jack Burton.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-08 18:37:42 +00:00
Axel Dörfler
8ea8d0c2bb Fixed queries a bit more (maybe even completely...). In several situations,
the old attribute value wasn't evaluated at all.
Also, Index::Update() got a type code of zero, instead of the real value
in situations where this didn't make any sense.
Minor cleanup in kernel_interface.cpp.
New method Volume::CheckForLiveQuery() that checks if there is a live query
depending on the specified attribute - not yet implemented, but already used;
always returns "true" right now, which doesn't cause any harm but reducing
the speed lightly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-01 02:55:33 +00:00
Axel Dörfler
cca15c0166 Added a little more debug output in BPlusTree::Find().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-01 02:49:38 +00:00
Axel Dörfler
c3f10b4674 Added a simple magic field mechanism to make chkbfs calls a little more safe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 01:02:18 +00:00
Axel Dörfler
f2024b1158 Fixed debug output in bfs_setflags().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 23:12:18 +00:00
Tyler Dauwalder
e4edcddbc5 Fixed nothrow declaration and definition to what I think should
be the proper values.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 07:35:04 +00:00
Axel Dörfler
a9aa5ee181 Implemented bfs_setflags().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:56:24 +00:00
Axel Dörfler
a13beecdee Removed the possibility to create a Semaphore object without specifying
a name - that's mostly done to:
1) force better fitting lock names
2) make the API consistent (the empty ReadWriteLock constructor doesn't
   initialize the lock anymore).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:34:18 +00:00