Commit Graph

42046 Commits

Author SHA1 Message Date
Jerome Duval
57c324a753 arm: added some missing arch bits and changed asm section for arm compat. 2012-04-01 14:03:36 +02:00
Axel Dörfler
8175a2c342 Fixed warning. 2012-04-01 13:06:59 +02:00
Axel Dörfler
8f7ec006cb We need to remove the tree from the transaction. Fixes #3159.
* The tree does keep a reference to the inode as well as long as it is part
  of a transaction.
* Even if it wouldn't have done it (and would not have triggered the panic),
  Haiku would likely have crashed, as the inode (and therefore its tree) was
  already deleted at the time when the transaction discarded its listeners.
2012-04-01 13:04:36 +02:00
Axel Dörfler
15f4dcd831 The inode must be write locked. Dunno how that could work before. 2012-04-01 11:30:58 +02:00
Axel Dörfler
7fef0374fe Make sure it isn't part of a transaction upon destruction. 2012-04-01 11:30:58 +02:00
Axel Dörfler
8cf89e5cd3 Minor cleanup. 2012-04-01 11:30:57 +02:00
François Revol
8d33dc2971 An html5 <canvas> based drawing engine
This implements an html5 rendering engine.
Inspired by the Broadway GDK backend for Gnome.
Work in progress. For now it just connects and dumps debug output.
2012-04-01 11:04:41 +02:00
Adrien Destugues - PulkoMandy
d1abffcaa2 Force read/write mode for "removable media" devices as well. This makes
it possible to write files to my MP3 player.
2012-04-01 10:29:15 +02:00
François Revol
2c3d4bf64a Change accessor name for consistency. 2012-04-01 09:05:07 +02:00
scottmc2@gmail.com
c106a6bc2e Updated optionalpackages for texinfo, sqlite and bzr. 2012-03-31 17:58:24 -07:00
Axel Dörfler
5868dfb989 Reverted r43922, and instead improved bfs_block_runs command.
* Calling FindBlockRun() would only work for the direct range anyway, as it
  would need to call into the block cache for anything else.
* bfs_block_runs now accepts a few more arguments that make finding an offset
  much easier.
2012-04-01 00:43:49 +02:00
Axel Dörfler
b5310b1638 Fixed another bug I introduced with r43837.
* Really the same thing, just for fragment nodes this time.
2012-04-01 00:43:48 +02:00
Rene Gollent
cf0769649e Fix crashing corner case in screen prefs.
If the refresh limits only allowed a single refresh, the menu item constructed
had no BMessage. This caused _UpdateRefreshControls() to crash when attempting
to match the current refresh rate to the item. For simplicity, give it a message
containing the fixed refresh rate just as in all other cases. Should finally
fix #8431.
2012-03-31 17:31:21 -04:00
Axel Dörfler
dcfb930a98 Improved bfs_inode KDL command. 2012-03-31 23:13:05 +02:00
Axel Dörfler
e109dcf97b Don't bail out just because a node couldn't be read.
* Added a new CachedNode::SetTo() variant that actually returns an error code.
* Only bail out if there was an actual I/O error, not already if the offset
  was invalid.
* This should help fixing some corruption corner cases.
2012-03-31 21:57:55 +02:00
Axel Dörfler
bae8d9ab83 Reset the counter after each pass. 2012-03-31 21:57:14 +02:00
Axel Dörfler
7a085ce095 Fixed debug build of the kernel emulation. 2012-03-31 21:27:55 +02:00
Rene Gollent
484afd3a08 Updated Web+ package.
Fixes an oversight in yesterday's bug fix.
2012-03-31 14:21:04 -04:00
Axel Dörfler
cb8941c48f We must not check the node here.
* The node might not be a normal tree node, so we must not check it before
  writing.
* Also, it's always a good idea to check if the function you called didn't
  succeed.
* This fixes a crashing bug when running checkfs in some rare circumstances.
2012-03-31 17:00:02 +02:00
Axel Dörfler
e0927e2c44 Improved debug output. 2012-03-31 16:46:07 +02:00
François Revol
28b813df23 Move callbackFunction type declaration into the class to avoid a name clash with future code. 2012-03-31 16:12:17 +02:00
François Revol
6371cd4dea Fix uninitialized warning. 2012-03-31 16:12:17 +02:00
Axel Dörfler
624b5ef3e6 Minor cleanup. 2012-03-31 15:49:02 +02:00
Axel Dörfler
657e62d222 Fixed the invalid duplicate left over nodes.
* Accidently introduced that bug in r43837; the arrayCount variable was not
  being updated after the value got removed.
2012-03-31 15:45:21 +02:00
Axel Dörfler
55e5a42d73 Fixed misuse of Transaction::Split().
* This would cause "transaction too large" messages, and repairing the index
  would actually be thrown away.
* We now properly finish/restart transactions instead which is actually
  working.
* Removed the misleading Split() method altogether, as it's not even used
  anywhere (not very surprising given that it doesn't do what its name
  suggests).
2012-03-31 15:14:46 +02:00
Axel Dörfler
0f94d73aaa Make PrepareIndices() fail if there isn't anything left to do. 2012-03-31 15:14:09 +02:00
Axel Dörfler
97b80db250 Fixed a possible KDL; the inode might be NULL.
* This happens in case the inode could not be opened in the first place.
2012-03-31 14:25:43 +02:00
Axel Dörfler
439495d8d4 Inode was leaking its small data lock.
* This should not have harmed normal operation (as an Inode is only destroyed
  when it is no longer being used), but the fs_shell could run out of
  semaphores easily.
2012-03-31 14:25:42 +02:00
Axel Dörfler
09ec0ad9c3 Also report errors when the free list is broken.
* This will cause the whole B+tree to be rewritten in that case, too.
* Added a TODO comment that describes an alternative solution for this.
2012-03-31 14:25:42 +02:00
JackBurton
577265d14f Avoid calling BMenu::HitTestItems() if the cursor is over a submenu. 2012-03-31 13:30:21 +02:00
Jerome Duval
0efb8b6639 Screen: fixed a warning and gcc2 build. 2012-03-31 10:43:37 +02:00
Axel Dörfler
a300055ed7 Minor cleanup. 2012-03-31 10:36:36 +02:00
Axel Dörfler
ce17af69dc Implemented repairing index b+trees.
* There are now two passes in case a corrupted index tree has been found.
* The second pass will clear the affected indices at first, and will then walk
  over all inodes again to fill them.
* As a side effect, this will also defragment the indices; ie. the same
  mechanism could be used for this some day.
2012-03-31 10:36:35 +02:00
Rene Gollent
ab2948538e Update Web+ optional package.
- Fixes a problem in Web+'s autocompletion handler that would
  result in it eating things like workspace switching shortcuts
  if Web+'s URL input had focus.
2012-03-30 22:23:58 -04:00
Rene Gollent
294a85aa68 Fix build. 2012-03-30 20:58:18 -04:00
Rene Gollent
7e44de362f Fix several issues in Screen preflet.
- Always initialize other menu item data member.
- Always use refresh_rate_to_string() to generate item labels.
- When searching for the item matching the selected refresh rate,
  look for it by the actual refresh rate stored in the item's message
  rather than by string comparisons of the label.
- Don't assume the Other menu item exists, since it doesn't in cases
  where the refresh rate constraints only allow a single rate.
- Update copyright year.

Fixes #8431.
2012-03-30 18:17:01 -04:00
Axel Dörfler
1674a53a45 Added recursive_lock_transfer_lock() to the fs_shell. 2012-03-31 00:09:47 +02:00
Axel Dörfler
225e1b1190 Minor cleanup. 2012-03-31 00:09:46 +02:00
Axel Dörfler
aed54a9a46 Use ID() instead of BlockNumber() for the debug output. 2012-03-31 00:09:46 +02:00
Axel Dörfler
b81ce43017 Made fLock a recursive lock instead of a mutex.
* This should fix bug #8069.
2012-03-31 00:09:45 +02:00
Axel Dörfler
fd8b9d4326 Added a recursive_lock_transfer() function. 2012-03-31 00:09:45 +02:00
Axel Dörfler
17f695029a No need for 'else' after return. 2012-03-31 00:09:45 +02:00
Alexander von Gluck IV
948be77f87 swrast: Cleanup, no functional change 2012-03-30 16:50:28 -05:00
Alexander von Gluck IV
d0df888925 swrast: Fix inverted rendering
* Override swrast RenderBuffer mapping function
  so we can invert Y at rendertime.
2012-03-30 16:43:21 -05:00
Alexander von Gluck IV
df82ad659d swrast: Style cleanup, no functional change 2012-03-30 15:28:28 -05:00
Alexander von Gluck IV
cd0ba1c23a swrast: Header comment cleanup
* Clean up header information and dates
* We can safely remove this Mesa blurb now
2012-03-30 15:02:27 -05:00
Alexander von Gluck IV
1044ebb29c swrast: Set RowStride, remove Viewport hook 2012-03-30 14:43:27 -05:00
Alexander von Gluck IV
ca55f49062 swrast: remove unneeded component ordering 2012-03-30 14:00:24 -05:00
Alexander von Gluck IV
db8c0f96f6 swrast: Remove unused clear code 2012-03-30 13:09:09 -05:00
Alexander von Gluck IV
21e0911b7d swrast: Header style cleanup
* Functions are pushed out one tab due to
  very long types
2012-03-30 13:07:53 -05:00