Changeset fc840d9 in mainline for uspace/srv/fs/tmpfs
- Timestamp:
- 2008-10-27T16:53:38Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7a5cdded
- Parents:
- 04619ba
- Location:
- uspace/srv/fs/tmpfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/Makefile
r04619ba rfc840d9 32 32 LIBC_PREFIX = ../../../lib/libc 33 33 LIBFS_PREFIX = ../../../lib/libfs 34 LIBBLOCK_PREFIX = ../../../lib/libblock 34 35 SOFTINT_PREFIX = ../../../lib/softint 35 36 include $(LIBC_PREFIX)/Makefile.toolchain 36 37 37 CFLAGS += -I $(LIBFS_PREFIX) 38 CFLAGS += -I $(LIBFS_PREFIX) -I $(LIBBLOCK_PREFIX) 38 39 39 LIBS = $(LIBC_PREFIX)/libc.a $(LIBFS_PREFIX)/libfs.a 40 LIBS = \ 41 $(LIBC_PREFIX)/libc.a \ 42 $(LIBFS_PREFIX)/libfs.a \ 43 $(LIBBLOCK_PREFIX)/libblock.a 40 44 41 45 ## Sources -
uspace/srv/fs/tmpfs/tmpfs_dump.c
r04619ba rfc840d9 46 46 #include <sys/types.h> 47 47 #include <as.h> 48 #include <lib fs.h>48 #include <libblock.h> 49 49 #include <ipc/services.h> 50 50 #include <ipc/devmap.h> … … 71 71 uint32_t size; 72 72 73 if (! libfs_blockread(phone, block, bufpos, buflen, pos, &entry,73 if (!blockread(phone, block, bufpos, buflen, pos, &entry, 74 74 sizeof(entry), TMPFS_BLOCK_SIZE)) 75 75 return false; … … 91 91 } 92 92 93 if (! libfs_blockread(phone, block, bufpos, buflen, pos,94 fname,entry.len, TMPFS_BLOCK_SIZE)) {93 if (!blockread(phone, block, bufpos, buflen, pos, fname, 94 entry.len, TMPFS_BLOCK_SIZE)) { 95 95 ops->destroy((void *) node); 96 96 free(fname); … … 106 106 free(fname); 107 107 108 if (! libfs_blockread(phone, block, bufpos, buflen, pos,109 &size,sizeof(size), TMPFS_BLOCK_SIZE))108 if (!blockread(phone, block, bufpos, buflen, pos, &size, 109 sizeof(size), TMPFS_BLOCK_SIZE)) 110 110 return false; 111 111 … … 117 117 118 118 node->size = size; 119 if (! libfs_blockread(phone, block, bufpos, buflen, pos,119 if (!blockread(phone, block, bufpos, buflen, pos, 120 120 node->data, size, TMPFS_BLOCK_SIZE)) 121 121 return false; … … 133 133 } 134 134 135 if (! libfs_blockread(phone, block, bufpos, buflen, pos,136 fname,entry.len, TMPFS_BLOCK_SIZE)) {135 if (!blockread(phone, block, bufpos, buflen, pos, fname, 136 entry.len, TMPFS_BLOCK_SIZE)) { 137 137 ops->destroy((void *) node); 138 138 free(fname); … … 188 188 189 189 char tag[6]; 190 if (! libfs_blockread(phone, block, &bufpos, &buflen, &pos, tag, 5,190 if (!blockread(phone, block, &bufpos, &buflen, &pos, tag, 5, 191 191 TMPFS_BLOCK_SIZE)) 192 192 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.