Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5581b469 in mainline


Ignore:
Timestamp:
2010-11-29T19:33:07Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
f07f6b2
Parents:
7329e6a
Message:

Introduce new boolean properties into vfs_info_t.

The FS can set concurrent_read_write to true if it is ready to handle
concurrent reads and writes from/to one node.

The FS can set write_retains_size if its write method never modifies the
size of the node.

Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/vfs.h

    r7329e6a r5581b469  
    3636#define LIBC_IPC_VFS_H_
    3737
     38#include <ipc/ipc.h>
    3839#include <sys/types.h>
    39 #include <ipc/ipc.h>
     40#include <bool.h>
    4041
    4142#define FS_NAME_MAXLEN  20
     
    5556        /** Unique identifier of the fs. */
    5657        char name[FS_NAME_MAXLEN + 1];
     58        bool concurrent_read_write;
     59        bool write_retains_size;
    5760} vfs_info_t;
    5861
  • uspace/srv/fs/devfs/devfs.c

    r7329e6a r5581b469  
    5353static vfs_info_t devfs_vfs_info = {
    5454        .name = NAME,
     55        .concurrent_read_write = false,
     56        .write_retains_size = false,
    5557};
    5658
  • uspace/srv/fs/fat/fat.c

    r7329e6a r5581b469  
    5252vfs_info_t fat_vfs_info = {
    5353        .name = NAME,
     54        .concurrent_read_write = false,
     55        .write_retains_size = false,   
    5456};
    5557
  • uspace/srv/fs/tmpfs/tmpfs.c

    r7329e6a r5581b469  
    5757vfs_info_t tmpfs_vfs_info = {
    5858        .name = NAME,
     59        .concurrent_read_write = false,
     60        .write_retains_size = false,
    5961};
    6062
Note: See TracChangeset for help on using the changeset viewer.