Commit Graph

33569 Commits

Author SHA1 Message Date
Ingo Weinhold
a8806e5e0d * Renamed headers/private/kernel/slab/Depot.h to ObjectDepot.h.
* Moved the object depot code to its own source file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 10:12:48 +00:00
Colin Günther
0b97b70b5c * Adding shipable firmwares to the repository. They aren't included in the
nightlies, though. As this will require an update of AboutSystem, which is
  scheduled for a later commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 09:58:11 +00:00
Colin Günther
6754b03459 Another driver settings file. Should have been part of r35158.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 09:45:28 +00:00
Colin Günther
3dc8c9b9ae Adding driver settings file with the firmware name mappings. Those files need
to be copied to /home/config/settings/kernel/drivers with omitting the file
endings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 09:44:02 +00:00
Colin Günther
b6dd23b149 Reverting to original firmware naming scheme. You now just have to extract
the Intel provided firmware archive in /system/data/firmware/ipw2100/ with out
the need of any renaming.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 09:15:27 +00:00
Colin Günther
865639deac * Changing the naming scheme for firmwares. Instead of directly renaming
the respective firmware files renaming is now done within the firmware loader.
  The mapping of original firmware names to FreeBSD internal firmware names is
  now done within driver specific settings files. Those are committed in a next
  step.
  This approach allows a clean separation of FreeBSD compat layer requirements
  and native driver requirements.
  For example: we have two Intel PRO/Wireless 2100 drivers. Do we prefer the
  naming scheme of the native driver or do we force the native driver to use
  the one of the FreeBSD driver? With this commit we prefer native over FreeBSD.
* Changed the firmware loader to make use of Haiku's file mapping facility.
* Implementing firmware unloading.
* Some minor cleanups in two compat layer header files, which are using Haiku
  defined identifiers, where apropriate.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 09:08:52 +00:00
Ingo Weinhold
6379e53e2d vm_page no longer points directly to its containing cache, but rather to a
VMCacheRef object which points to the cache. This allows to optimize
VMCache::MoveAllPages(), since it no longer needs to iterate over all pages
to adjust their cache pointer. It can simple swap the cache refs of the two
caches instead.

Reduces the total -j8 Haiku image build time only marginally. The kernel time
drops almost 10%, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 08:34:14 +00:00
Michael Lotz
2416d6ae42 anevilyak+mmlr:
accept() is supposed to return B_WOULD_BLOCK when SO_NONBLOCK is set.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 04:31:35 +00:00
Ingo Weinhold
3632eeedb9 * VMCache: Added a UserData attribute which can be used by the lock holder.
* Added "bool consumerLocked" parameter to VMCache::Unlock() and
  ReleaseRefAndUnlock(). Since Unlock() may cause the cache to be merged with
  a consumer cache, the flag is needed to prevent a deadlock in case the
  caller still holds a lock to the consumer. Hasn't been a problem yet, since
  that situation never occurred.
* VMCacheChainLocker: Reversed unlocking order to bottom-up. The other
  direction could cause a deadlock in case caches would be merged, since the
  locking order would be reversed. The way VMCacheChainLocker was used this
  didn't happen, though.
* fault_get_page(): While copying a page from a lower cache to the top cache,
  we do now unlock all caches but the top one, so we don't unnecessarily
  kill concurrency.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 03:02:11 +00:00
Michael Lotz
5ec7bd49cb The default for deleteWhenUnreferenced changed between the Referencable of the
old userlandfs and the BReferenceable now in use by netfs. So better explicitly
set that to avoid nasty surprises (like crashes left and right).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 02:41:06 +00:00
Ingo Weinhold
df6a690eae Patch by Matt Madia: Use "set -o errexit" to error out when a command failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 02:39:03 +00:00
Ingo Weinhold
3cfe017578 Corrected spelling of Samuel's surnames.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 02:35:43 +00:00
Michael Lotz
44b08ffcb9 The node parameter is a void ** but these calls expect the void * to the node we
got as a result from read_vnode. The joys of void pointers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 23:57:38 +00:00
Niels Sascha Reedijk
ae15171716 Update the SupportDefs documentation for several changes and document the atomic_* functions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 23:14:46 +00:00
Rene Gollent
27bb89cae1 BFS needs to also allocate a file cache when dealing with a long symlink inode. Fixes ticket #5282.
Axel and/or Ingo, please review.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 22:49:33 +00:00
Jérôme Duval
585a28af7b I thought afterwards the stub can still be useful to run R5 C only binaries on a GCC4 Haiku. It might be better placed in the arch folder though.
Also fixed a typo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 22:32:57 +00:00
Adrien Destugues
35c16bd3fe DeadYak over IRC:
-Fix gcc4 build


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 21:52:30 +00:00
Karsten Heimrich
0e56556dcd * Fix missing colon.
* Use sentence case in PrimaryPartitionEditor.
* Fixed double spacing in InitializeBFSEditor view. Since we are going
  to embed it anyway, don't put some extra spacing arround it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 20:41:22 +00:00
Adrien Destugues
4e7bc18cbc - Fix style and bugs in the davicom driver
- Also remove and add some debug output to try to spot the problem without getting flooded with too much messages


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 20:12:48 +00:00
Jérôme Duval
a4248cf53b * Rename _thread_do_exit_notification() to _thread_do_exit_work() as suggested by Ingo.
Also added an empty stub for _thread_do_exit_notification() when compiling for GCC2.
* Removed the check testing if the thread is already dead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 17:58:38 +00:00
Stephan Aßmus
16940ab877 Now that the speed is displayed right away, increase the number of slots for
calculating the average speed to get a more stable value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 08:52:42 +00:00
Stephan Aßmus
0dd025d0c4 Applied patch by "vegardw":
* Fix order of Source/Destination buttons in Expander after porting the UI
   to use layout management.

Fixes #5283. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 08:44:18 +00:00
Karsten Heimrich
35982ed847 * Fix can't cut and drag a piece of picture from ShowImage to Desktop, ticket #4874.
* Set the current image mime as first in the translators list, thus on drag&drop with
  left mouse button the same image type is created as the currently loaded in ShowImage.

  Still this does more hide than fix the real problem, beeing ICO translator the first in
  the generated translator list due to the high capabilitys values and a limited set of
  output sizes it can handle. I attached a further fix to the ticket, still i would like
  to get some other opinions on it before commiting.


By default the transla


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-18 00:14:40 +00:00
Philippe Saint-Pierre
431bbe1cc2 [Pulse] More compact display of the dragger in replicants. (follow-up of #4244)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 22:51:24 +00:00
Rene Gollent
89af054816 Employ a similar naming abstraction for the desktop as has been done for Trash to allow that name to be localized visually later (same on-disk location though).
SlowContextPopup also needed to be adjusted to account for trash's new location.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 21:35:42 +00:00
Stephan Aßmus
35de4b4862 Implement showing the estimated time to finish a file process. It will toggle
automatically between showing amount copied + speed and estimated finish time
+ time left. It could be implemented to toggle on mouse click, but then it would
be a hidden feature. Comments welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 21:02:50 +00:00
Rene Gollent
114580cd78 Update find_directory to use a lowercase path for the on-disk trash location like more or less all other system dirs. Should be the last of the trash changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 20:47:28 +00:00
Rene Gollent
b37100b2bf Missed a few instances in the previous cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 20:07:30 +00:00
Jérôme Duval
6aee58a4cb * Revert the reverse the addons iteration of r35121.
* The media_addon_server before unloading addons need to be sure the nodes are deleted.
For instance, applications could keep references on global nodes, thus preventing deletion.
To release all references, the media_addon server uses a new method BMediaRosterEx::ReleaseNodeAll().
* Quit the MediaRoster looper when quitting media_addon server before unloading addons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 20:05:01 +00:00
Rene Gollent
d9626569fb Model: Add accessor for Trash node property and cleanup spacing between inlines.
Rest: Use the IsTrash() accessor on Model where possible in place of the more expensive FSIsTrashDir() check.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 19:58:46 +00:00
Stephan Aßmus
9589965cbd Change the algorithm that calculates the average copy speed, so it begins to
display much earlier (two seconds).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 19:47:22 +00:00
Rene Gollent
bdf7d02094 Update the new mail notification add-on's name to match the sentence case changes. Should fix ticket #5257. MDR's account add-on chain format should probably be modified to not be so dependent on the actual name of the add-on as opposed to some alternate UID though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 19:18:31 +00:00
Stephan Aßmus
4e1bbd4d0d Implemented display of current size/total size copied and current copy speed.
It will begin to play after a short time (10 seconds). Estimated finish time
is still a TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 18:40:25 +00:00
Stephan Aßmus
406799c165 Copy and paste bugs prevented the copy progress bar to function properly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 18:39:05 +00:00
Rene Gollent
0e848e2d69 Fix error spotted by Adrien: don't return Trash name for anonymous volumes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 18:27:21 +00:00
Rene Gollent
6abd81fcf0 Add a special node type for the Trash analogous to the one used for the root dir. This allows the model to return an arbitrary name not directly tied to the on-disk name for the Trash directory, which a) makes it localizable in the future, and b) means it's not tied to the on-disk name, which removes the requirement that the Trash dir name be uppercase on disk.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 18:12:39 +00:00
Rene Gollent
782fbf00a7 Overlooked this with my previous Trash-related changes: updated NavMenu to be
behaviorally in sync - it now hides the root volume Trash dir like PoseView,
and adds the Trash entry as needed when navigating down the Desktop.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 17:35:06 +00:00
Oliver Ruiz Dorantes
eb30e0668a Update bluetooth optional package
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 17:23:48 +00:00
Karsten Heimrich
fc17c9d286 * Fixes ticket #4913.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 17:13:04 +00:00
Philippe Saint-Pierre
ebb64acec1 [Expander]:
* Use be_fixed_font in the Show Content TextView (fixes ticket #5272).
 * Minor cleanup in ExpanderThread.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 17:00:08 +00:00
Jérôme Duval
1952dab0df * we release nodes which were instantiated or autostarted.
* I had to reverse the addons iteration when quitting, the mixer wasn't releasing correctly if released last.
* use IncrementAddonFlavorInstancesCount on autostarted flavors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 16:51:06 +00:00
Karsten Heimrich
deed298ba4 *Fixes ticket #4415.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 16:45:43 +00:00
Jérôme Duval
f0bddd1112 * also prints out the node ref_count on Dump()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 16:43:03 +00:00
Rene Gollent
aa61ee48ef Cleaned up legacy icon mappings and add some missing resource definitions to
TrackerIcons.h. Also removed the setup for the folder icon mimetype in 
TrackerInitialState, as it was using a non-existent resource ID to do so with.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 16:35:40 +00:00
Oliver Ruiz Dorantes
9760dcae20 - Move bluetooth net_device module to a independent module HCI, remake API interfaces
- Move functionality for assembling ACL/events packets of the driver to this module
- Move h2generic driver to c++ (not style)
- Pass checkstyle.py to all commited files.
Fixes:
- Wrong condition for finishing l2cap packet segmentation.
- Place NetBuffersPrependers in a inner scope to avoid Sycing twice in destructor.
- Avoid keeping trace of l2cap responses of any other kind of thread.
- Do not free net_buffers of for Frame containers.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 15:46:36 +00:00
Philippe Saint-Pierre
9b178bf778 Make sure the Replicant PopUpMenu says "About Pulse..." rather than "About CPUButton...". (Follow-up of #4244).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 15:29:04 +00:00
Stephan Aßmus
3cc5c3ffb1 Further cleanup of TrackerLoopControl. gStatusWindow is now nowhere used anymore
except inside TrackerLoopControl. The only expected change of behavior is when
trying to copy something onto a read-only volume. AFAICS, it would previously
prompt an alert and not already show the status window. Now it will show the
status window and prompt an alert, like in all the other situations when the
operation would be stopped before it even started by an alert. I was able to
remove quite a few code duplications along the way. CopyLoopControl can be
instantiated by itself and provides default implementations which could in turn
be removed from TrackerLoopControl.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 13:32:06 +00:00
Jérôme Duval
d3bb2b9543 style clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 12:51:31 +00:00
Stephan Aßmus
8aad948744 * 80 chars/line limit cleanup
* Fixed one more occurance of "dos" filesystem check.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 12:16:22 +00:00
Stephan Aßmus
0bf7f1f8cd When an error occurs to incrase the node monitor limit, reset the current
value and don't keep it at the value we wanted it increased to.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-17 12:15:50 +00:00