Searched +hist:4 +hist:fc4f2c8 (Results 1 - 9 of 9) sorted by relevance
/haiku/headers/private/fs_shell/ | ||
H A D | fssh_fs_cache.h | diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a31d30e Tue Nov 13 03:34:48 MST 2007 Axel Dörfler <axeld@pinc-software.de> * The file map needs to know the actual file size to be able to know if it has the complete extent info or not. * file_map_translate() now cuts down the request to the file bounds. * Adjusted BFS and FAT to the API changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22913 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8aeefd8548dc95f51af64beabc07a4ec5 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a31d30e84d78b7d06b9efa6c1dd96c292262e4a Tue Nov 13 03:34:48 MST 2007 Axel Dörfler <axeld@pinc-software.de> * The file map needs to know the actual file size to be able to know if it has the complete extent info or not. * file_map_translate() now cuts down the request to the file bounds. * Adjusted BFS and FAT to the API changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22913 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
H A D | fssh_api_wrapper.h | diff 4a5a077f Sun Oct 24 14:47:46 MDT 2010 Clemens Zeidler <clemens.zeidler@googlemail.com> Add a private B_ATTR_CHANGE_NOTIFICATION flag to the open query syscall to tell the query to send notifications when an entry attribute changed and the entry stays in the query. Previously you only get created and removed messages, now you can also get updated messages. Only implement it for bfs. Fix copy right. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39131 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a57f843 Wed Jun 02 12:22:38 MDT 2010 Ingo Weinhold <ingo_weinhold@gmx.de> Introduced types [__haiku_]generic_{addr,size}_t which are wide enough for virtual and physical addresses. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36996 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4ab3fa3b Fri Jun 12 03:31:25 MDT 2009 Axel Dörfler <axeld@pinc-software.de> * Added real_time_clock(), and real_time_clock_usecs(). * Added support for timespec stat times. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31012 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a5a077ff79e1b1ffb2571fdfc5ea8218a64196c Sun Oct 24 14:47:46 MDT 2010 Clemens Zeidler <clemens.zeidler@googlemail.com> Add a private B_ATTR_CHANGE_NOTIFICATION flag to the open query syscall to tell the query to send notifications when an entry attribute changed and the entry stays in the query. Previously you only get created and removed messages, now you can also get updated messages. Only implement it for bfs. Fix copy right. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39131 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a57f843964b2598ff06ba9a15e206a0a72a82ff Wed Jun 02 12:22:38 MDT 2010 Ingo Weinhold <ingo_weinhold@gmx.de> Introduced types [__haiku_]generic_{addr,size}_t which are wide enough for virtual and physical addresses. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36996 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4ab3fa3b5a45a509c954d8183f9c37770515dd31 Fri Jun 12 03:31:25 MDT 2009 Axel Dörfler <axeld@pinc-software.de> * Added real_time_clock(), and real_time_clock_usecs(). * Added support for timespec stat times. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31012 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8aeefd8548dc95f51af64beabc07a4ec5 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
/haiku/src/tools/fs_shell/ | ||
H A D | block_cache.cpp | diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8aeefd8548dc95f51af64beabc07a4ec5 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
/haiku/headers/os/drivers/ | ||
H A D | fs_cache.h | diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a31d30e Tue Nov 13 03:34:48 MST 2007 Axel Dörfler <axeld@pinc-software.de> * The file map needs to know the actual file size to be able to know if it has the complete extent info or not. * file_map_translate() now cuts down the request to the file bounds. * Adjusted BFS and FAT to the API changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22913 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8aeefd8548dc95f51af64beabc07a4ec5 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a31d30e84d78b7d06b9efa6c1dd96c292262e4a Tue Nov 13 03:34:48 MST 2007 Axel Dörfler <axeld@pinc-software.de> * The file map needs to know the actual file size to be able to know if it has the complete extent info or not. * file_map_translate() now cuts down the request to the file bounds. * Adjusted BFS and FAT to the API changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22913 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
/haiku/src/add-ons/kernel/file_systems/bfs/ | ||
H A D | Journal.h | diff 4e643107 Tue Jul 28 14:55:26 MDT 2009 Axel Dörfler <axeld@pinc-software.de> * Some preparations to be able to split transactions if they become too large for the log. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31860 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4e6431078812df05c84361aee80e27d458589cc5 Tue Jul 28 14:55:26 MDT 2009 Axel Dörfler <axeld@pinc-software.de> * Some preparations to be able to split transactions if they become too large for the log. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31860 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8aeefd8548dc95f51af64beabc07a4ec5 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
H A D | Journal.cpp | diff 4e643107 Tue Jul 28 14:55:26 MDT 2009 Axel Dörfler <axeld@pinc-software.de> * Some preparations to be able to split transactions if they become too large for the log. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31860 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a553d36 Sat Jan 19 09:35:19 MST 2008 Axel Dörfler <axeld@pinc-software.de> Forgot to update logStart after every written array - this caused old entries (that were part of the same transaction) to be overwritten. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23642 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4afaeabb Sun Dec 02 09:38:38 MST 2007 Axel Dörfler <axeld@pinc-software.de> * bfs_free_cookie() accidently reverted a transaction after having updated the inode's internal last modified and size copies, causing in inconsistent data. This fixes #1643. * The block being replayed are now dumped to the debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23050 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4e6431078812df05c84361aee80e27d458589cc5 Tue Jul 28 14:55:26 MDT 2009 Axel Dörfler <axeld@pinc-software.de> * Some preparations to be able to split transactions if they become too large for the log. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31860 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a553d369626d1529af3ad857eeb83d3d470fde7 Sat Jan 19 09:35:19 MST 2008 Axel Dörfler <axeld@pinc-software.de> Forgot to update logStart after every written array - this caused old entries (that were part of the same transaction) to be overwritten. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23642 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8aeefd8548dc95f51af64beabc07a4ec5 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4afaeabbd858d959a57593f0ad52e4c481709495 Sun Dec 02 09:38:38 MST 2007 Axel Dörfler <axeld@pinc-software.de> * bfs_free_cookie() accidently reverted a transaction after having updated the inode's internal last modified and size copies, causing in inconsistent data. This fixes #1643. * The block being replayed are now dumped to the debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23050 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
H A D | Inode.cpp | diff 3637e0e0 Mon Oct 19 18:29:11 MDT 2009 Axel Dörfler <axeld@pinc-software.de> * Fixed double indirect ranges again: I've messed them up when I tried to make them more BeOS compatible while still keeping them somewhat flexible. * _GrowStream() did actually not check if the double indirect region was already filled up - this caused it to overwrite innocent memory. This fixes the bug Rudolf showed me on this laptop that happened while copying a large file. * Loosened file size restriction on a heavy fragmented disk: the indirect block does not require a minimum array size anymore; before, you just couldn't let a stream grow into the indirect range if it couldn't allocate NUM_ARRAY_BLOCKS (4) blocks in a row. This considerably reduced the maximum file size in this case. * Removed no longer valid TODO. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33675 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff c1b4d0ec Fri Jun 26 08:49:48 MDT 2009 Axel Dörfler <axeld@pinc-software.de> * Directories now only preallocate 4 KB. * Reworked how preallocations are chosen, and also take the grow rate into account. * Also, the preallocation is now rounded to the next multiple of the preallocation size (previously, a 64K write would only allocate 64K). * This should also close bug #2573. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31253 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 34d496f8 Mon Aug 04 08:54:22 MDT 2008 Axel Dörfler <axeld@pinc-software.de> * For regular files, BFS will now preallocate much more than the previous 64 KB, which are now only used for directories and for files smaller than 1 MB. * For files between 1 MB and 32 MB 512 KB are used as preallocation size, everything beyond that will get a 1/16 of their file size, ie. 4 MB with a file size of 64 MB, 64 MB with a file size of 1 GB. * This should help a lot with fragmentation of large files when they are written synchronously. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26794 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff c6f752c0 Thu Mar 06 13:11:56 MST 2008 Axel Dörfler <axeld@pinc-software.de> Corrected patch to fix warnings when compiled with GCC 4, thanks Vasilis! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24279 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a31d30e Tue Nov 13 03:34:48 MST 2007 Axel Dörfler <axeld@pinc-software.de> * The file map needs to know the actual file size to be able to know if it has the complete extent info or not. * file_map_translate() now cuts down the request to the file bounds. * Adjusted BFS and FAT to the API changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22913 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4ecd0171 Wed Feb 07 09:46:42 MST 2007 Axel Dörfler <axeld@pinc-software.de> * Fixed a bug that would not remove an existing attribute from the small data section when the new attribute data was too large to fit into the small data section at all. This fixes the Trash icon update with a block size of 1024 bytes. * This also fixes a bug where AddSmallData() required you to write back the inode even if it failed with B_DEVICE_FULL, but no one did it. * _RemoveSmallData() no longer requires you to write the inode back on success. * Made most small data methods private. * WriteAttribute() now tries to put the data into the small data section even if it existed as a separate file before (the file is then removed). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20103 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff b61fdf78 Tue Feb 28 17:57:54 MST 2006 Axel Dörfler <axeld@pinc-software.de> * The inode block wasn't written back when it was opened with O_TRUNC/B_ERASE_FILE which could cause inconsistency of on-disk structures. * Fixed copy&paste bug introduced by Ingo when he did the GCC 4 work-around: when shrinking the direct range, the new size was written to the indirect range. * Some cleanup, renamed private Inode methods to have a leading '_' symbol. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16557 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 758b1d0e Sat Nov 12 16:27:14 MST 2005 Ingo Weinhold <ingo_weinhold@gmx.de> Fixes that make Haiku build with gcc 4. Mainly out of the following categories: * Missing includes (like <stdlib.h> and <string.h>). * Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so. * Local variables shadowing parameters. * Default parameters in function definitions (as opposed to function declarations). * All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported explicitly from the std:: namespace now. * "new (sometype)[...]" must read "new sometype[...]", even if sometype is something like "const char *". * __FUNCTION__ is no longer a string literal (but a string expression), i.e. 'printf(__FUNCTION__ ": ...\n")' is invalid code. * A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes" is an invalid expression. * "friend class SomeClass" only works when SomeClass is known before. Otherwise the an inner class with that name is considered as friend. gcc 4 is much pickier about scopes. * gcc 4 is generally stricter with respect to type conversions in C. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 758b1d0e Sat Nov 12 16:27:14 MST 2005 Ingo Weinhold <ingo_weinhold@gmx.de> Fixes that make Haiku build with gcc 4. Mainly out of the following categories: * Missing includes (like <stdlib.h> and <string.h>). * Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so. * Local variables shadowing parameters. * Default parameters in function definitions (as opposed to function declarations). * All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported explicitly from the std:: namespace now. * "new (sometype)[...]" must read "new sometype[...]", even if sometype is something like "const char *". * __FUNCTION__ is no longer a string literal (but a string expression), i.e. 'printf(__FUNCTION__ ": ...\n")' is invalid code. * A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes" is an invalid expression. * "friend class SomeClass" only works when SomeClass is known before. Otherwise the an inner class with that name is considered as friend. gcc 4 is much pickier about scopes. * gcc 4 is generally stricter with respect to type conversions in C. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 758b1d0e Sat Nov 12 16:27:14 MST 2005 Ingo Weinhold <ingo_weinhold@gmx.de> Fixes that make Haiku build with gcc 4. Mainly out of the following categories: * Missing includes (like <stdlib.h> and <string.h>). * Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so. * Local variables shadowing parameters. * Default parameters in function definitions (as opposed to function declarations). * All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported explicitly from the std:: namespace now. * "new (sometype)[...]" must read "new sometype[...]", even if sometype is something like "const char *". * __FUNCTION__ is no longer a string literal (but a string expression), i.e. 'printf(__FUNCTION__ ": ...\n")' is invalid code. * A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes" is an invalid expression. * "friend class SomeClass" only works when SomeClass is known before. Otherwise the an inner class with that name is considered as friend. gcc 4 is much pickier about scopes. * gcc 4 is generally stricter with respect to type conversions in C. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
H A D | BlockAllocator.cpp | diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8aeefd8548dc95f51af64beabc07a4ec5 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
/haiku/src/system/kernel/cache/ | ||
H A D | block_cache.cpp | diff 4af30335 Wed Aug 18 10:44:51 MDT 2010 Axel Dörfler <axeld@pinc-software.de> * We need to reset the blockNumber, or else we'll discard the wrong blocks which has rather desastrous consequences - thanks to Stippi for the heads up :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38242 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4ea83177 Mon Feb 15 06:07:14 MST 2010 Axel Dörfler <axeld@pinc-software.de> * Implemented a BlockWriter class that now performs writing back blocks. * Renamed the "busy" stuff to "busy_reading", and added a "busy_writing" concept. * This now allows reading a block (and other blocks), while blocks are written back. This should speed all operations needing to write back blocks, like unzipping or compiling. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35464 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 98092e98 Wed Mar 18 16:43:47 MDT 2009 Ingo Weinhold <ingo_weinhold@gmx.de> gcc 4 fixes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29602 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4bfeb6f3 Wed Aug 20 02:09:18 MDT 2008 Axel Dörfler <axeld@pinc-software.de> * Changed the way how a cache is destructed: now, it is removed from the global cache list before locking it. This allows to get rid of the block_cache::deleting field, as well as simplifies some code. * This also fixes a possible deadlock I recently introduced (on destruction, the locking order was wrong). * Now uses an anonymous condition variable instead. * Moved the block_cache initialization code into a dedicated method that will now also fail in case the low resource handler couldn't be registered (as pointed out by Salvatore). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27074 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff fae99f15 Fri Mar 14 16:03:26 MDT 2008 Ingo Weinhold <ingo_weinhold@gmx.de> cached_block::Compare() was ignoring the upper 32 bit of the block number. Was a problem only for partitions > 2^32 * block size (4TB for 1KB blocks). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24393 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4a67038e Mon Jan 21 12:57:40 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a new function hash_insert_grow() that grows the hash table when needed. * Removed the public hash_grow() function again (at least for now, it's only private). * Removed the newSize argument from hash_grow(); it will compute the new size automatically. * The block cache is now using hash_insert_grow() instead of hash_insert() which should make hash lookups much faster with some 10 thousand blocks, also increased the initial table size from 32 to 1024... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23692 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4fc4f2c8 Sun Jan 13 10:18:29 MST 2008 Axel Dörfler <axeld@pinc-software.de> * Added a transaction listener mechanism to be notified when a transaction ends or has been aborted. * BFS now listens for transactions when it created an inode to see if the transaction will be aborted without freeing the inode (in which case it will panic for now). * Started implementing tracing support, but it's not working yet. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23492 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4afaeabb Sun Dec 02 09:38:38 MST 2007 Axel Dörfler <axeld@pinc-software.de> * bfs_free_cookie() accidently reverted a transaction after having updated the inode's internal last modified and size copies, causing in inconsistent data. This fixes #1643. * The block being replayed are now dumped to the debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23050 a95241bf-73f2-0310-859d-f6bbb57e9c96 diff 4c0f46e2 Fri Dec 16 08:50:13 MST 2005 Axel Dörfler <axeld@pinc-software.de> The block_cache::LowMemoryHandler() must check if it could acquire the cache's lock; it might have been deleted in the mean time. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15565 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
Completed in 389 milliseconds