|
AquilaOS documentation
How it works, and its code
|
Go to the source code of this file.
Functions | |
| ssize_t | rofs_write (struct vnode *vnode, off_t offset, struct iobuf *io) |
| Refuses a write to a read-only filesystem. | |
| int | rofs_trunc (struct vnode *vnode, off_t len) |
| Refuses to truncate a file on a read-only filesystem. | |
| int | rofs_vmknod (struct vnode *dir, const char *fn, uint32_t mode, dev_t dev, struct uio *uio, struct vnode **ref) |
| Refuses to make a node on a read-only filesystem. | |
| int | rofs_vunlink (struct vnode *dir, const char *fn, struct uio *uio) |
| Refuses to remove a name from a read-only filesystem. | |
| int | rofs_vlink (struct vnode *dir, const char *fn, struct vnode *vnode, struct uio *uio) |
| Refuses to make a hard link on a read-only filesystem. | |
| int | rofs_vrename (struct vnode *odir, const char *ofn, struct vnode *ndir, const char *nfn, struct uio *uio) |
| Refuses to rename on a read-only filesystem. | |
| int | rofs_setattr (struct vnode *vnode) |
| Refuses to change a node's attributes on a read-only filesystem. | |
| int rofs_setattr | ( | struct vnode * | vnode | ) |
Refuses to change a node's attributes on a read-only filesystem.
| vnode | the node |
Definition at line 100 of file rofs.c.
References rofs_setattr().
Referenced by rofs_setattr().
Refuses to truncate a file on a read-only filesystem.
| vnode | the file |
| len | the length asked for |
Definition at line 31 of file rofs.c.
References rofs_trunc().
Referenced by rofs_trunc().
Refuses to make a hard link on a read-only filesystem.
| dir | the directory |
| fn | the new name |
| vnode | the file to link |
| uio | who is asking |
Definition at line 74 of file rofs.c.
References rofs_vlink().
Referenced by rofs_vlink().
| int rofs_vmknod | ( | struct vnode * | dir, |
| const char * | fn, | ||
| uint32_t | mode, | ||
| dev_t | dev, | ||
| struct uio * | uio, | ||
| struct vnode ** | ref ) |
Refuses to make a node on a read-only filesystem.
| dir | the directory |
| fn | the new node's name |
| mode | its type and permissions |
| dev | its device number |
| uio | who is asking |
| ref | not set |
Definition at line 47 of file rofs.c.
References rofs_vmknod().
Referenced by rofs_vmknod().
| int rofs_vrename | ( | struct vnode * | odir, |
| const char * | ofn, | ||
| struct vnode * | ndir, | ||
| const char * | nfn, | ||
| struct uio * | uio ) |
Refuses to rename on a read-only filesystem.
| odir | the old directory |
| ofn | the old name |
| ndir | the new directory |
| nfn | the new name |
| uio | who is asking |
Definition at line 89 of file rofs.c.
References rofs_vrename().
Referenced by rofs_vrename().
Refuses to remove a name from a read-only filesystem.
| dir | the directory |
| fn | the name |
| uio | who is asking |
Definition at line 60 of file rofs.c.
References rofs_vunlink().
Referenced by rofs_vunlink().
Refuses a write to a read-only filesystem.
| vnode | the file |
| offset | where the write would be |
| io | the data |
Definition at line 19 of file rofs.c.
References rofs_write().
Referenced by rofs_write().