Age | Commit message (Collapse) | Author |
|
* tmpfs.c (main): If get_privileged_ports fails with EPERM, try to
open /servers/default-pager instead.
|
|
* tmpfs.c (diskfs_append_args): Use %Ld format for off_t value.
|
|
* dir.c (diskfs_get_directs): u_int -> size_t
* tmpfs.c (diskfs_append_args): unsigned -> size_t
|
|
* tmpfs.c (diskfs_extra_version): New variable.
|
|
* tmpfs.c (startup_argp): Use OPTIONS array in initializer.
|
|
* tmpfs.c (parse_opt): Grok % suffix on number to mean percentage
of the machine's RAM.
|
|
* tmpfs.c (options): New static const variable. Add --mode/-m.
(struct option_values): New type.
(parse_opt): Use that for VALUES. Grok -m to set VALUES->mode.
Grok ARGP_KEY_FINI and free our data structure.
(tmpfs_root_mode): New variable, set by -m.
(main): If -m was given, use that instead of underlying node's
permissions.
|
|
* tmpfs.c (main): Don't release REALNODE.
|
|
* tmpfs.c (main): Pass diskfs_demuxer to
diskfs_spawn_first_thread to conform to new libdiskfs semantics.
|
|
* tmpfs.c (main): Set diskfs_root_node->dn_stat.st_nlink to 2.
|
|
* tmpfs.c (diskfs_shortcurt_chrdev): Rename to diskfs_shortcut_chrdev.
(diskfs_shortcurt_blkdev): Rename to diskfs_shortcut_blkdev.
(diskfs_shortcurt_fifo): Rename to diskfs_shortcut_fifo.
(diskfs_shortcurt_ifsock): Rename to diskfs_shortcut_ifsock.
|
|
* tmpfs.c (main): Don't lock diskfs_root_node after alloc,
which already locks it. In root node's mode, clear S_ITRANS bits
and set S_IROOT bit.
|
|
* node.c (diskfs_S_file_get_storage_info): New function.
* tmpfs.c (diskfs_synchronous): New variable.
|
|
* dir.c: Include <stddef.h>, <unistd.h>, <sys/mman.h>
(diskfs_get_directs): Cast *data to struct dirent *.
* node.c: Include <stddef.h>.
(diskfs_alloc_node): Remove unused variables err, st, np.
(diskfs_free_node): Use *np->dn, not *dn to calculate used space.
(recompute_blocks): Replace DT_DEV with DT_BLK.
(diskfs_node_norefs): Likewise.
(recompute_blocks): Take address of np->dn_stat for pointer st.
(diskfs_cached_lookup): New variable st.
(diskfs_cached_lookup): Set st to &np->dn_stat, not &dn->dn_stat.
(create_symlink_hook): Fix malloc call and return code check.
(read_symlink_hook): Return 0.
* tmpfs.c: Include <argp.h>, <string.h>, <inttypes.h>, <argz.h>,
<error.h>.
(parse_opt): Reverse second and third argument of strtoimax call.
* tmpfs.h (struct disknode): Remove blind passenger (unnamed copy
of anonymous struct {} reg).
Some of the above were also reported by Alexey Dejneka
<adejneka@comail.ru>.
|
|
|