embox
1/**
2* @file
3* @details Read-only filesystem with direct address space mapping.
4*
5* @date 7 May 2015
6* @author Anton Bondarev
7* - initial implementation
8* @author Nikolay Korotky
9* - rework using vfs
10* @author Eldar Abusalimov
11* - rework mount to use cpio_parse_entry
12* @author Denis Deryugin
13* - port from old VFS
14*
15* @note Initfs is based on CPIO archive format. By design, this format
16* has no directory abstraction, as all files are stored with full
17* path names. Because of this it could be tricky to handle some
18* VFS calls.
19*/
20#include <util/log.h>21
22#include <stdint.h>23#include <cpio.h>24#include <string.h>25
26#include <fs/inode.h>27#include <fs/super_block.h>28
29#include "initfs.h"30
31extern struct idesc *dvfs_file_open_idesc(struct lookup *lookup, int __oflag);32
33struct super_block_operations initfs_sbops = {34.open_idesc = dvfs_file_open_idesc,35.destroy_inode = initfs_destroy_inode,36};37