|
|
@ce7311fc
|
17 years |
jakub |
Cram VFS_MOUNT into one message. This creates a hidden demand for the …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@e811bde
|
17 years |
jakub |
Add synchronization to fat_match().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@add5835
|
17 years |
jakub |
Add locks to FAT index structures, FAT in-core node structures. Add …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@78a1b7b
|
17 years |
jakub |
Introduce a futex protecting the up_hash and ui_hash.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@4452366
|
17 years |
jakub |
Introduce futex for protecting the list of unused structures in FAT server.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@34b3ce3
|
17 years |
jakub |
Implement fat_node_put() and remove the node from the free node list …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@2c4bbcde
|
17 years |
jakub |
More bits of fat_node_get().
Still needs to do some locking.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@4573a79
|
17 years |
jakub |
New first bits of fat_node_get().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@4797132
|
17 years |
jakub |
Need a way to locate the FAT index structure by VFS index. Also fix …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@9a5ccfb3
|
17 years |
jakub |
Add hash table for used fat_idx_t structures and implement fat_idx_map().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@0c1ad7ac
|
17 years |
jakub |
merge vs. coalesce
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@5a324099
|
17 years |
jakub |
Code for de/allocation of VFS indices for FAT.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@297f1197
|
17 years |
jakub |
Add a dedicated source file for handling FAT indices.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@869e546
|
17 years |
jakub |
Introduce the foundation for unique and stable FAT VFS node indices.
…
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@34f62f8
|
17 years |
jakub |
Revert libfs node_get() API to a model without the parent node pointer …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@9a5f0cb
|
17 years |
jakub |
Add fat_block_get().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@45f244b
|
17 years |
jakub |
libfs destroy operation should rather return an error code instead of …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@80e8482
|
17 years |
jakub |
Add stubs for unimplemented FAT libfs operations.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@d9e9caf
|
17 years |
jakub |
Add a locking scheme for FAT in-core cache and nodes.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@e13d1feb
|
17 years |
jakub |
fat_node_put(). No locking so far.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@06901c6b
|
17 years |
jakub |
Add node_put() to libfs operations and instrument libfs_lookup() to …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@32fb10ed
|
17 years |
jakub |
Add fat_has_children(). Alse assume that fat_block_get() can never …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@74ea3c6
|
17 years |
jakub |
Add fat_root_get() and fat_plb_get_char().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@e22632a9
|
17 years |
jakub |
Somewhat complete implementation of fat_node_get().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@e1e3b26
|
17 years |
jakub |
Commit progress on the FAT file system server implementation.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@5446bee0
|
17 years |
jakub |
BPS read from FAT bootsector is little-endian. It must converted to …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@79dbc3e
|
17 years |
jakub |
Introduce and also use the foundation of block cache API in FAT's …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f689a3e
|
17 years |
jakub |
Update comment.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@776f2e6
|
17 years |
jakub |
Replace all endian.h in uspace with a copy of the kernel's respective …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@dfa7bac
|
17 years |
jakub |
Convert FAT on-disk metadata from little-endian to native representation.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@a2aa1dec
|
17 years |
jakub |
First untested bits of FAT lookup support.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@94b0b63
|
17 years |
jakub |
libfs' node_get() operation does not need the file system handle.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@736c164
|
17 years |
jakub |
Make libfs_lookup() more generic.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@5e790e6
|
17 years |
jakub |
Fix FAT boot sector definition and introduce the FAT in-core node type.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@2f60a529
|
17 years |
jakub |
Return EBUSY if trying to mount something over an already mounted root …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f2ec8c8
|
17 years |
jakub |
Introduce fs_handle_t, dev_handle_t and fs_index_t.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@8ad8e49
|
17 years |
jakub |
VFS index needs to be treated as uint64_t.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@07deef5
|
17 years |
jakub |
Fibril serialization is required when two file systems register …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c31d773
|
17 years |
jakub |
Grab the nodes_futex when manipulating node link counts in rename() …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@a8e9ab8d
|
17 years |
jakub |
Support for rename().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@3298ddc
|
17 years |
jakub |
Support for multiple TMPFS node names.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@7b6d98b
|
17 years |
jakub |
No need to keep the parent pointer in the TMPFS node. Moreover, other …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@3ca7059
|
17 years |
jakub |
Set the TMPFS root node's link count to 1.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@adc8a63
|
17 years |
jakub |
Introduce real link counts for TMPFS.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@dadcec1
|
17 years |
jakub |
Move canonify() to libc so that it can be used also on the libc side.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@d6084ef
|
17 years |
jakub |
Make VFS canonify path names on lookup.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@9bb85f3
|
17 years |
jakub |
Add canonify() for file system path canonization.
Not yet used by VFS.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ee68e4bc
|
17 years |
jakub |
contents_rwlock should not be acquired as a futex but rather as a rwlock.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@7fe1f75
|
17 years |
jakub |
Support for O_TRUNC.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@2c448fb
|
17 years |
jakub |
Move the core lookup logic from TMPFS to libfs.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@fdb7795
|
17 years |
jakub |
Separate creation of a TMPFS node and its linking in the file system …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@d1ce550
|
17 years |
jakub |
Initialize the VFS node properly.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@75c426b4
|
17 years |
jakub |
Remove duplicate initialization.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@cf19ab5
|
17 years |
jakub |
Unlink a TMPFS node more thoroughly.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f15cf1a6
|
17 years |
jakub |
Support for rmdir(), unlink() and the respective VFS operations.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@e704503
|
17 years |
jakub |
Support for close().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@16105cba
|
17 years |
jakub |
Add TMPFS support for destroying leaf links in the file system namespace.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@2616965d
|
17 years |
jakub |
When freeing up a TMPFS node, it should also be removed from the …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f17667a
|
17 years |
jakub |
Add the VFS_FREE operation. This operation frees up whatever …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@b5553a2
|
17 years |
jakub |
Introduce the notion of VFS node link counts.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@8ccd2ea
|
17 years |
jakub |
Descend vs. descent.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@acfdcb0
|
17 years |
jakub |
Remove the debugging hack from tmpfs_init(), which created several …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f7017572
|
17 years |
jakub |
VFS_WRITE and tmpfs_write fixes.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@15b9970
|
17 years |
jakub |
VFS_OPEN and VFS_WRITE now understand O_APPEND.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@2db4ac8
|
17 years |
jakub |
VFS_OPEN now understands O_CREAT and O_EXCL.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@72bde81
|
17 years |
jakub |
Support for mkdir().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@1fe186f
|
17 years |
jakub |
Move handling of the miss on excessive components out of the main loop …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@b8b23c8
|
17 years |
jakub |
More elegant, flexible and complete version of tmpfs_lookup.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@9415601
|
17 years |
jakub |
Additional VFS lookup flags.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ae78b530
|
17 years |
jakub |
Introduce the notion of lflag (i.e. lookup flags) to support the …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@5973fd0
|
17 years |
jakub |
Finish implementation of readdir(). Functions from this family are …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@62da45a
|
17 years |
jakub |
Small fix for VFS_TRUNCATE. Move lookup and registration code to …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@0ee4322
|
17 years |
jakub |
Add ftruncate() and support for VFS_TRUNCATE to VFS and TMPFS.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@eb27ce5a
|
17 years |
jakub |
Improve the API for converting (VFS triplets, size) to VFS nodes by …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@cad9c72
|
17 years |
jakub |
Make a distinction between VFS operations that are common to VFS and …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@861e7d1
|
17 years |
jakub |
Merge all VFS operations into one file.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@67f63c4
|
17 years |
jakub |
Make uspace rwlock API naming conventions consistent with kernel …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@7fff5eab
|
17 years |
jakub |
Management of the cached VFS node size.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@752ccee
|
17 years |
jakub |
Previous commit was toxic. When emulating gaps, zero out the …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@41a0d27
|
17 years |
jakub |
TMPFS must handle file gaps.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@222e57c
|
17 years |
jakub |
Add libc and VFS implementation of lseek(), VFS_SEEK resp.
Add the …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@10d6b858
|
17 years |
jakub |
Introduce the open file lock. Modify vfs_rdwr() to take this lock into …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@4db6eaf
|
17 years |
jakub |
Fix type in declaration of VFS node rwlock.
Introduce a dedicated type …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@b3c38750
|
17 years |
jakub |
Turn the namespace futex into rwlock.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@9413c0d
|
17 years |
jakub |
Add basic rwlock API for uspace so that VFS can be …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f57f8ea
|
17 years |
jakub |
Rename unlink_futex to namespace_futex and introduce a new futex for …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@215e375
|
17 years |
jakub |
The IPC_M_SHARE_* and IPC_M_DATA_* calls pass through 3 stages. Rename …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@27d293a
|
17 years |
jakub |
Rename IPC_M_AS_AREA_SEND to IPC_M_SHARE_OUT. Rename …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@3115355
|
17 years |
jakub |
Simplify the IPC_M_DATA_WRITE protocol. Do not pass the source address …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@92688eb
|
17 years |
jakub |
Rename variable from 'size' to 'len'.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c1bf5cb
|
17 years |
jakub |
The previous commit was not entirely sane.
Handle VFS_WRITE correctly …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ee1b8ca
|
17 years |
jakub |
VFS and TMPFS support for VFS_WRITE.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@7dab6b8
|
17 years |
jakub |
Fix two bugs in TMPFS-side VFS_READ.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@a92da0a
|
17 years |
jakub |
Reimplement VFS_READ using IPC_M_DATA_READ.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@36d852c
|
17 years |
jakub |
Rename IPC_M_DATA_SEND to IPC_M_DATA_WRITE. Now, when we also add …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@5c786d1
|
17 years |
jakub |
After VFS_READ, update the position pointer in the open file.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@a4eb8a60
|
17 years |
jakub |
VFS work.
Foundation for TMPFS-side VFS_READ and fixes in VFS-side …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c9957b6
|
17 years |
jakub |
VFS work.
Cleaner VFS_MOUNT protocol.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@4b11571
|
17 years |
jakub |
TMPFS work.
VFS_LOOKUP implemented.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@338c943
|
17 years |
jakub |
VFS work.
Don't hang up the connection to VFS after VFS_MOUNT.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|