Commit Graph

1155 Commits

Author SHA1 Message Date
Axel Dörfler dd36c5aa04 Renamed "calls" to "ops" (yeah, I know, that doesn't make really much sense :).
Completed load_file_system().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 16:34:33 +00:00
Stefano Ceccherini 14d32cf634 First BMemoryIO tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 15:03:51 +00:00
Stefano Ceccherini 3f541a71c8 First tests for BMemoryIO
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 15:00:55 +00:00
Axel Dörfler e04fced505 The available file systems aren't load anymore on startup.
Reimplemented file system handling, it's now loading file systems on an
on-demand basis - code is not tested yet, but should work!
That also fixed a bug that was in that code before (the image was not
unloaded in case of an error in vfs_load_fs_module()).
Renamed fs_id to mount_id.
Renamed all global variables to have the 'g' prefix in vfs.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 14:10:50 +00:00
Axel Dörfler 62781e5bc4 Renamed fs_id to mount_id.
Some clean-ups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 14:05:44 +00:00
Axel Dörfler 4dc5ecd3cb Renamed fs_id to mount_id.
Moved typedefs for mount_id and vnode_id to fs_interface.h.
Removed some unused stuff in ktypes.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 13:57:06 +00:00
Axel Dörfler ba8080175e Changed the rename_attr() call to allow moving attributes to other files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 12:14:57 +00:00
Axel Dörfler 99e81006d0 Added some tests against wrong values in simple names, like attribute names,
or entry_ref names (paths are safe).
Implemented attr_remove(), and attr_rename().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 12:13:09 +00:00
Stefano Ceccherini 0bb4177544 BMallocIO use cases
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 08:46:19 +00:00
jrand b5b2bdae33 Finishing BDeskbar implementation and fixing minor test issue.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 03:24:17 +00:00
Axel Dörfler 0ee7f6972b Rearranged some functions to better fit in their context.
new_file_fd() is now called get_new_fd(), and can also create fds for other
types as well. Furthermore, it lost some memory if it couldn't allocate a
new fd.
Implemented most of the VFS attribute API (kernel internal only), only
remove_attr(), and rename_attr() is missing for now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 02:18:20 +00:00
Axel Dörfler bae1b21a60 Reworked the fs API a bit, it's quite complete now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-25 02:15:00 +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
DarkWyrm 83a57b389a Many misc. updates, including a couple new font classes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 22:49:57 +00:00
Stefano Ceccherini c9ea158353 Write() Returns B_NO_MEMORY if it cant allocate memory
iVS: ----------------------------------------------------------------------


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 19:04:22 +00:00
ejakowatz 5da124ea94 Initial checkin
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 16:26:43 +00:00
Axel Dörfler 570b6eaeeb Removed the fs_ prefix from the fs_calls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 16:17:22 +00:00
Axel Dörfler ec152b4fff Some more changes to the attributes fs API:
Since BFS can't resolve a vnode_id to an attribute, fs_create_attr() now
doesn't return a new vnode_id anymore. Changed all fs_vnode variables to
"file" instead of "attr" to avoid any confusion.
That means for BFS that the cookie which fs_open_attr() returns will have
to include a pointer to the real inode, if the attribute is not part of the
file's inode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 16:09:02 +00:00
Axel Dörfler 10567eeb6e Changed an unused field of struct stat (st_rdev) to st_type, so that we
can use this structure to call fstat() on attributes and indices.
Added more functions to the file system interface (attributes, and indices).
Added header fs_attr.h, and fs_index.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 16:02:53 +00:00
Stefano Ceccherini 0c444b4265 Changed the way WriteAt() works, and fixed a small bug in SetSize()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 15:48:09 +00:00
Phil Greenway bd3f5af3d4 Command Line Beep. Coded by Mahmoud Al Gammal
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 12:58:04 +00:00
Tyler Dauwalder 789d7cbe2d Fixed parse(NULL,...) test descrepancy
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 09:36:43 +00:00
jrand 74ec84df17 Adding first attempt at source code for BDeskbar.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:45:52 +00:00
Tyler Dauwalder 4bd7d39cde Added AssociateTypes.cpp and SnifferRules.cpp to the mix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:36:41 +00:00
Tyler Dauwalder 1bd963b6c2 + Added file-extension based mime type guessing
+ Added sniffer rule based mime type guessing
+ Added get_device_icon()
+ Added complete (synchronous, asynchronous; recursive,
  non-recursive; forcing, non-forcing; you name it we got it :-)
  update_mime_info() implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:36:03 +00:00
Tyler Dauwalder 743e936ee7 Augmented a comment to include a note on string length requirements.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:30:20 +00:00
Tyler Dauwalder 4e722de38f Tidied up a couple of minor oversights.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:29:32 +00:00
Tyler Dauwalder 2150894b73 Added BytesNeeded() functions to all the sniffer classes to allow
a pre-read data stream to be sniffed instead of actual files on disk.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:27:46 +00:00
Tyler Dauwalder 2f1ee757aa + Added B_REG_MIME_UPDATE_MIME_INFO_ASYNC and
B_REG_MIME_ASYNC_THREAD_FINISHED.
+ Tweaked some wording.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:24:42 +00:00
Tyler Dauwalder 4494844f12 Initial checkin. BPrivate::Storage::Mime::SnifferRules class, which is
responsible for managing sniffer rules and sniffing files and data
streams.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:22:40 +00:00
Tyler Dauwalder 09b4d458da Initial checkin. BPrivate::Storage::Mime::AssociatedTypes class, which
is responsible for managing associations between mime types and
file extensions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:20:30 +00:00
jrand 0af8a6afe0 Add the header for the BDeskbar class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 04:11:55 +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
Axel Dörfler 366a7cf67c Fixed a prototype.
Updated several structures because of the int/int32/status_t change.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 00:09:38 +00:00
Axel Dörfler d98c7edc06 Fixed more warnings due to the int/int32/status_t change.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 00:08:50 +00:00
Axel Dörfler e58fbc960b Adapted the VFS and internal file systems with respect to changes made
in fs_interface.h.
Fixed many warnings due to the int/int32/status_t changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 23:24:12 +00:00
Axel Dörfler 88e54ccc26 Added the fs_ops calls for attribute/index/query handling - not yet finished
or completed, though.
Renamed fs_cookie to fs_volume, and file_cookie to fs_cookie.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 23:22:18 +00:00
Phil Greenway f7afd44bda Initial Check in. Coded by Mattias Sundblad.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 23:01:55 +00:00
Ingo Weinhold b23dde8600 Extended the item about the maximal length of MIME strings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:19:10 +00:00
Ingo Weinhold 344a28b86f Added debug output to understand why the parser test fails.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:17:41 +00:00
Ingo Weinhold ce61895f3e We now support MIME strings of maximal length B_MIME_TYPE_LENGTH including the null only. Adjusted the tests accordingly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:08:51 +00:00
Ingo Weinhold 9a17c3cfac Dealt with the *_LENGTH+1 issue: Removed all "+1"s in buffer allocations and adjusted checks etc.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:06:09 +00:00
Stefano Ceccherini 893d12fc2c Lots of bug fixes and code semplification
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:02:00 +00:00
Ingo Weinhold afac6ebecb Initialize the global be_roster for the registrar.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 19:46:15 +00:00