summaryrefslogtreecommitdiff
path: root/tmpfs
AgeCommit message (Collapse)Author
2011-11-20Work with memory object only after vm_map has been performedMaksym Planeta
* tmpfs/node.c (diskfs_get_filemap): Work with memory object only after vm_map has been performed.
2011-08-20fix common misspellingsJonathan Neuschäfer
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2010-08-27Revert "Fix tmpfs assertion"Samuel Thibault
As discussed up to http://lists.gnu.org/archive/html/bug-hurd/2010-06/msg00021.html this reverts commit 97c5690abeaa88767acf2ffbb55552e8278052c8 and removes the corresponding assertion. This is related to commit 2f7f90ce15cce79ef83a8d273e3a27b5b527c7d7 which changes how much st_size is increased. * tmpfs/tmpfs.h (tmpfs_dirent): Remove `padding' field. * tmpfs/dir.c (diskfs_get_directs): Remove assertion on the position of the `name' field of struct tmpfs_dirent compared to the position of the `d_name' field of struct dirent.
2010-08-27Fix malloc size in tmpfsCarl Fredrik Hammar
* tmpfs/dir.c (diskfs_direnter_hard): Fix malloc size.
2010-08-27Fix comment on when Mach would try to clear tmpfs dataSamuel Thibault
* tmpfs/node.c (diskfs_get_filemap): Fix comment according to second patch from Sergio Lopez.
2010-08-27Keep a reference on objects to preserve their content.Samuel Thibault
Modify tmpfs to keep a reference (by mapping it into its own space) to each memory object created by the user, so they don't get inmediately terminated at the end of the current operation. * tmpfs/tmpfs.h (struct disknode): Add `memref' field. * tmpfs/node.c (diskfs_get_filemap): vm_map() the first page of the newly-allocated object, store in `memref' field. (diskfs_free_node) vm_deallocate the page pointed by `memref' field.
2010-01-11Fix tmpfs assertionSamuel Thibault
* tmpfs/tmpfs.h (tmpfs_dirent): Add padding field to push the name field after its position in struct dirent.
2009-07-11Switch to the new ChangeLog style.Thomas Schwinge
* ChangeLog: Wipe out content, and add instructions about how to get it back. * auth/ChangeLog: Remove file. * benchmarks/ChangeLog: Likewise. * boot/ChangeLog: Likewise. * bsdfsck/ChangeLog: Likewise. * config/ChangeLog: Likewise. * console-client/ChangeLog: Likewise. * console/ChangeLog: Likewise. * daemons/ChangeLog: Likewise. * defpager/ChangeLog: Likewise. * doc/ChangeLog: Likewise. * exec/ChangeLog: Likewise. * ext2fs/ChangeLog: Likewise. * fatfs/ChangeLog: Likewise. * fstests/ChangeLog: Likewise. * ftpfs/ChangeLog: Likewise. * hostmux/ChangeLog: Likewise. * hurd/ChangeLog: Likewise. * include/ChangeLog: Likewise. * init/ChangeLog: Likewise. * isofs/ChangeLog: Likewise. * libcons/ChangeLog: Likewise. * libdirmgt/ChangeLog: Likewise. * libdiskfs/ChangeLog: Likewise. * libfshelp/ChangeLog: Likewise. * libftpconn/ChangeLog: Likewise. * libhurdbugaddr/ChangeLog: Likewise. * libihash/ChangeLog: Likewise. * libiohelp/ChangeLog: Likewise. * libnetfs/ChangeLog: Likewise. * libpager/ChangeLog: Likewise. * libpipe/ChangeLog: Likewise. * libports/ChangeLog: Likewise. * libps/ChangeLog: Likewise. * libshouldbeinlibc/ChangeLog: Likewise. * libstore/ChangeLog: Likewise. * libthreads/ChangeLog: Likewise. * libtrivfs/ChangeLog: Likewise. * login/ChangeLog: Likewise. * mach-defpager/ChangeLog: Likewise. * nfs/ChangeLog: Likewise. * nfsd/ChangeLog: Likewise. * pfinet/ChangeLog: Likewise. * pflocal/ChangeLog: Likewise. * proc/ChangeLog: Likewise. * release/ChangeLog: Likewise. * serverboot/ChangeLog: Likewise. * storeio/ChangeLog: Likewise. * sutils/ChangeLog: Likewise. * term/ChangeLog: Likewise. * tmpfs/ChangeLog: Likewise. * trans/ChangeLog: Likewise. * ufs-fsck/ChangeLog: Likewise. * ufs-utils/ChangeLog: Likewise. * ufs/ChangeLog: Likewise. * usermux/ChangeLog: Likewise. * utils/ChangeLog: Likewise.
2009-02-02[ftpfs]Samuel Thibault
2009-02-02 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (ftpfs_refresh_node): Use st_mtim.tv_sec members instead of st_mtime. Also compare st_mtim.tv_nsec members. [libdiskfs] 2009-02-02 Samuel Thibault <samuel.thibault@ens-lyon.org> * file-utimes.c (diskfs_S_file_utimes): Use st_atim.tv_sec/ st_mtim.tv_sec members instead of st_atime/st_mtime. Also set st_atim.tv_nsec/st_mtim.tv_nsec members. [libftpconn] 2009-02-02 Samuel Thibault <samuel.thibault@ens-lyon.org> * unix.c (parse_dir_entry): Use st_mtim.tv_sec instead of st_mtime. Set st_atim.tv_nsec, st_ctim.tv_nsec and st_mtim.tv_nsec to 0. [login] 2009-02-02 Samuel Thibault <samuel.thibault@ens-lyon.org> * utmp.c (S_login_get_idle_time): Use st_atim.tv_sec and st_atim.tv_nsec members instead of st_atime and st_atime_usec. [tmpfs] 2009-02-02 Samuel Thibault <samuel.thibault@ens-lyon.org> * tmpfs.h (struct disknode): Make atime, mtime and ctime members struct timespec instead of time_t. * tmpfs.c (main): Copy st_atim/st_mtim/st_ctim members from st to diskfs_root_node->dn_stat instead of st_atime/st_mtime/st_ctime. * node.c (diskfs_node_norefs): Copy st_atime/st_mtime/st_ctime members from np->dn_stat to atime/mtime/ctime members of np->dn (diskfs_cached_lookup): Conversely.
2005-03-202005-03-20 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* tmpfs.c (parse_opt): Use the right argument for parsing the mode.
2002-06-25.Roland McGrath
2002-06-252002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* tmpfs.c (main): If get_privileged_ports fails with EPERM, try to open /servers/default-pager instead.
2002-06-13.Roland McGrath
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_lookup_hard): Cast int to intptr_t before ino_t.
2002-06-13.Roland McGrath
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_lookup_hard): int -> ino_t
2002-06-11.Roland McGrath
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* node.c (diskfs_cached_lookup): Use ino_t for argument. * node.c (diskfs_alloc_node): Case to uintptr_t before ino_t. (diskfs_cached_lookup): Likewise, and vice versa. * dir.c (diskfs_get_directs, diskfs_lookup_hard): Likewise.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* tmpfs.c (diskfs_append_args): Use %Ld format for off_t value.
2002-06-02.Roland McGrath
2002-06-02finish reverting unintentional checkin, take 3Roland McGrath
2002-06-022002-05-29 Roland McGrath <roland@frob.com>Roland McGrath
* node.c (diskfs_S_file_get_storage_info): Return a null port when the peropen is not open for read/write. Set STORE_READONLY if O_WRITE set.
2002-06-01finish reverting unintentional checkinRoland McGrath
2002-05-29revert unintentional checkinRoland McGrath
2002-05-29revert unintentional checkinRoland McGrath
2002-05-28.Roland McGrath
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_get_directs): u_int -> size_t * tmpfs.c (diskfs_append_args): unsigned -> size_t
2002-05-132002-05-13 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* tmpfs.c (diskfs_extra_version): New variable.
2002-05-08.Roland McGrath
2002-05-082002-05-03 Roland McGrath <roland@frob.com>Roland McGrath
* tmpfs.c (startup_argp): Use OPTIONS array in initializer.
2002-03-24.Roland McGrath
2002-03-242002-03-23 Roland McGrath <roland@frob.com>Roland McGrath
* tmpfs.c (parse_opt): Grok % suffix on number to mean percentage of the machine's RAM.
2002-03-24.Roland McGrath
2002-03-242002-03-23 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2002-03-24.Roland McGrath
2002-03-242002-03-23 Roland McGrath <roland@frob.com>Roland McGrath
* tmpfs.c (main): Don't release REALNODE.
2002-03-24.Roland McGrath
2002-03-242002-03-23 Roland McGrath <roland@frob.com>Roland McGrath
* node.c: Include "default_pager_U.h", not <mach/default_pager.h>. (diskfs_truncate): Return early if page-rounded size is unchanged. Call default_pager_object_set_size on the memory object. (diskfs_grow): Likewise.
2002-03-242002-03-23 Roland McGrath <roland@frob.com>Roland McGrath
* Makefile (OBJS): Add default_pagerUser.o here.
2001-10-01.Roland McGrath
2001-10-012001-09-30 Roland McGrath <roland@frob.com>Roland McGrath
* node.c (diskfs_S_file_get_storage_info): Implement it to return the memory object port with STORAGE_MEMORY.
2001-05-06.Roland McGrath
2001-05-062001-04-23 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* tmpfs.c (main): Pass diskfs_demuxer to diskfs_spawn_first_thread to conform to new libdiskfs semantics.
2001-05-06.Roland McGrath
2001-05-062001-05-05 Roland McGrath <roland@frob.com>Roland McGrath
* node.c (diskfs_truncate): Set st_size before rounding it up, and do set it when there is a memory object.
2001-05-02.Roland McGrath
2001-05-022001-05-01 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* tmpfs.c (main): Set diskfs_root_node->dn_stat.st_nlink to 2.
2001-04-15.Roland McGrath
2001-04-152001-04-15 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* dir.c (diskfs_get_directs): Total rewrite. (diskfs_lookup_hard): Likewise. (diskfs_enter_hard): Count node size in the size of the dirent so diskfs_get_directs does not have to guess; this is only a few bytes different. Check the amount of space correctly, i.e. we cannot compare bytes and pages. * node.c: (diskfs_free_node): We already hold diskfs_node_refcnt_lock; do not try to lock it again. (diskfs_cached_lookup): Use diskfs_nref, that is why we have it. Link the nodes correctly. (diskfs_set_translator): Add or remove S_IPTRANS from np->dn_stat.st_mode as appropriate. (diskfs_truncate): Set the new np->dn_stat.st_size. (diskfs_grow): Move the assert up.
2001-04-12.Roland McGrath