summaryrefslogtreecommitdiff
path: root/libdiskfs
AgeCommit message (Collapse)Author
2010-08-01Fix libdiskfs bootstrap race conditionJeremie Koenig
exec_exec() probably triggers a call to file_exec(), so the exec server port needs to be cached earlier. * libdiskfs/boot-start.c: Move caching the exec server port to just after initializing it.
2009-10-12Make rename("something", "something/.") not hangSamuel Thibault
* libdiskfs/dir-rename.c: Include <string.h> (diskfs_S_dir_rename): If source or destination ends with "." or "..", return EINVAL as required by POSIX.
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-162009-02-16 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge
* diskfs.h: Instead of `st_?time', talk about `st_?tim'. * node-times.c: Likewise. * priv.h: 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.
2008-08-262008-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* dir-lookup.c (diskfs_S_dir_lookup): Initialize NEWPI and NEWPO to 0, set back to 0 when they do not need to be referenced any more, dereference them if needed just before exit, after all unlocking.
2008-08-202008-08-20 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* dir-lookup.c (diskfs_S_dir_lookup): Revert 2008-06-06 change, as it breaks when np == dnp.
2008-07-01Update copyright years.Thomas Schwinge
2008-07-01Correct file name.Thomas Schwinge
2008-06-10[doc/ChangeLog]Samuel Thibault
2008-06-10 Samuel Thibault <samuel.thibault@ens-lyon.org> * hurd.texi (Diskfs Callbacks): Add const qualifier to parameter `name' of function diskfs_lookup. [libdiskfs/ChangeLog] 2008-06-10 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir-lookup.c (diskfs_lookup): Add const qualifier to parameter `name'. * dir-lookup.h (diskfs_lookup): Likewise.
2008-06-092008-06-06 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* dir-lookup.c (diskfs_S_dir_lookup): Unlock np in case of errors.
2007-12-11Update list of copyright years.Thomas Schwinge
2007-11-162007-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* dir-rename.c (diskfs_S_dir_rename): Call diskfs_nput (tnp) in the EISDIR and EMLINK cases too. Reported by Olaf Buddenhagen <olafbuddenhagen@gmx.net>.
2007-11-132007-11-13 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge
* node-times.c (diskfs_set_node_times): Adapt to ``struct stat'' changes.
2007-10-052007-10-05 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge
* node-times.c (diskfs_set_node_atime): Fix typo from last commit.
2007-10-05Update copyright years.Thomas Schwinge
2007-08-20[doc/ChangeLog]Samuel Thibault
2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * hurd.texi: Document diskfs_set_node_atime. [ext2fs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. [fatfs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. [libdiskfs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * diskfs.h (diskfs_set_node_atime): New declaration. * node-times.c (diskfs_set_node_atime): New function. [ufs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. * inode.c (read_symlink_hook): Likewise.
2007-04-042007-04-04 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge
* opts-std-startup.c (parse_startup_opt) <_diskfs_no_inherit_dir_group>: Swap the options into the correct order. Reported by Olaf Buddenhagen <olafbuddenhagen@gmx.net>.
2006-06-282006-06-28 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge
* Makefile (HURDLIBS): Add `pager'.
2006-03-142006-03-15 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge
* priv.h: Include <argp.h>.
2006-03-05.Roland McGrath
2006-03-052006-03-05 Roland McGrath <roland@frob.com>Roland McGrath
* io-seek.c (diskfs_S_io_seek): Return EINVAL if file pointer would become negative.
2004-02-11.Roland McGrath
2004-02-112004-02-10 Roland McGrath <roland@frob.com>Roland McGrath
* opts-runtime.c (diskfs_runtime_argp): Include <argp.h>.
2003-10-102003-10-11 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* notify-nosenders.c, notify-stubs.c: Delete obsolete files.
2003-07-282003-06-11 Ognyan Kulev <ogi@fmi.uni-sofia.bg>Jeff Bailey
* dir-renamed.c (diskfs_rename_dir): Check permissions to remove FROMNAME before any modification could take place. Check result of removing the from node.
2002-06-27hurd/Marcus Brinkmann
2002-06-26 Marcus Brinkmann <marcus@gnu.org> * fs_notify.defs: Add MsgOption for send timeout. (dir_changed): Changed to simpleroutine. Change type of first argument to fs_notify_t. Add TICKNO argument. (file_changed): Likewise. * hurd_types.defs (fs_notify_t): New type. * hurd_types.h (fs_notify_t): Likewise. libdiskfs/ 2002-06-26 Marcus Brinkmann <marcus@gnu.org> * Makefile (DIST_FILES): Variable removed. (MIGSTUBS): Use fs_notifyUser.o, not ourfs_notifyUser.o. * ourfs_notify.defs: File removed. * diskfs.h (struct node): New members DIRMOD_TICK and FILEMOD_TICK. * node-make.c (diskfs_make_node): Initialize DIRMOD_TICK and FILEMOD_TICK. * dir-chg.c: Include "fs_notify_U.h" instead "ourfs_notify_U.h". (diskfs_S_dir_notice_changes): Use new dir_changed invocation instead nowait_dir_changed. (diskfs_notice_dirchange): Likewise. Increase tick number. Ignore send timeout error. * file-chg.c: Include "fs_notify_U.h" instead "ourfs_notify_U.h". (diskfs_S_file_notice_changes): Use new file_changed invocation instead nowait_file_changed. (diskfs_notice_filechange): Likewise. Increase tick number. Ignore send timeout error. console/ 2002-06-27 Marcus Brinkmann <marcus@gnu.org> * Makefile (MIGSTUBS): Add fs_notifyUser.o. (MIGSFLAGS): New variable. * console.c: Include "fs_notify_U.h". (struct modreq): New structure. (struct cons): New members DIRMOD_REQS and DIRMOD_TICK. (cons_notice_dirchange): New function. (vcons_lookup): Call cons_notice_dirchange. (netfs_S_dir_notice_changes): New function. (main): Initialize new members in CONS. * display.c (nowait_file_changed): Update to new interface (new argument TICKNO). (do_mach_notify_msg_accepted): Call nowait_file_changed with new argument. (display_notice_changes): Likewise. (display_notice_filechange): Likewise.
2002-06-13.Roland McGrath
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir-readdir.c (diskfs_S_dir_readdir): Revert last change.
2002-06-11.Roland McGrath
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* io-identity.c (diskfs_S_io_identity): Use ino_t for FILENO.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* dir-readdir.c (diskfs_S_dir_readdir): Use vm_size_t for AMT.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* diskfs.h (struct node): Use io_statbuf_t instead of struct stat. (struct node): Use ino64_t for cache_id. (struct node): Use loff_t instead of off_t. (diskfs_grow, diskfs_truncate, diskfs_node_rdwr): Likewise. (diskfs_notice_filechange): Likewise. (diskfs_cached_lookup): Use ino64_t for CACHE_ID argument.
2002-05-27.Roland McGrath
2002-05-272002-05-26 Roland McGrath <roland@frob.com>Roland McGrath
* dir-unlink.c (diskfs_S_dir_unlink): Return EPERM instead of EISDIR, as per POSIX.
2002-05-13.Roland McGrath
2002-05-132002-05-12 Roland McGrath <roland@frob.com>Roland McGrath
* dir-lookup.c (diskfs_S_dir_lookup): Fail with EACCES instead of EOPNOTSUPP when attempting to open a special file for io or exec.
2002-05-12.Roland McGrath
2002-05-122002-05-11 Roland McGrath <roland@frob.com>Roland McGrath
* trans-callback.c (_diskfs_translator_callback1_fn): Add an assert that netfs_get_translator not fail with EOPNOTSUPP.
2002-05-112001-11-20 Neal H Walfield <neal@cs.uml.edu>Marcus Brinkmann
* diskfs.h (diskfs_boot_filesystem): Documentation fix.
2002-05-08.Roland McGrath
2002-05-082002-05-08 Roland McGrath <roland@frob.com>Roland McGrath
* dir-lookup.c (diskfs_S_dir_lookup): int -> size_t * dir-readdir.c (diskfs_S_dir_readdir): Likewise. * file-get-trans.c (diskfs_S_file_get_translator): Likewise. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * diskfs.h (diskfs_append_args): unsigned -> size_t in argument type. (diskfs_append_std_options): Likewise. (diskfs_get_directs): Likewise. * file-exec.c (diskfs_S_file_exec): Likewise. * file-get-fs-opts.c (diskfs_S_file_get_fs_options): Likewise. * file-get-trans.c (diskfs_S_file_get_translator): Likewise. * file-getfh.c (diskfs_S_file_getfh): Likewise. * file-set-trans.c (diskfs_S_file_set_translator): Likewise. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Likewise. * opts-append-std.c (diskfs_append_std_options): Likewise. * opts-get.c (diskfs_append_args): Likewise. * dir-readdir.c (diskfs_S_dir_readdir): Likewise.
2002-05-082002-05-08 Roland McGrath <roland@frob.com>Roland McGrath
* dir-lookup.c (diskfs_S_dir_lookup): int -> size_t * dir-readdir.c (diskfs_S_dir_readdir): Likewise. * file-get-trans.c (diskfs_S_file_get_translator): Likewise. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise.
2002-05-082002-05-08 Roland McGrath <roland@frob.com>Roland McGrath
* io-map-cntl.c (diskfs_S_io_map_cntl): u_int -> vm_address_t
2002-05-082002-05-08 Roland McGrath <roland@frob.com>Roland McGrath
* sync-interval.c (diskfs_set_sync_interval): Cast int to intptr_t before any_t.
2002-05-082002-05-08 Roland McGrath <roland@frob.com>Roland McGrath
* disk-pager.c (fault_handler): Use %z format for sc_pc.
2002-05-082002-05-08 Roland McGrath <roland@frob.com>Roland McGrath
* diskfs.h (diskfs_append_args): unsigned -> size_t in argument type. (diskfs_append_std_options): Likewise. (diskfs_get_directs): Likewise. * file-exec.c (diskfs_S_file_exec): Likewise. * file-get-fs-opts.c (diskfs_S_file_get_fs_options): Likewise. * file-get-trans.c (diskfs_S_file_get_translator): Likewise. * file-getfh.c (diskfs_S_file_getfh): Likewise. * file-set-trans.c (diskfs_S_file_set_translator): Likewise. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Likewise. * opts-append-std.c (diskfs_append_std_options): Likewise. * opts-get.c (diskfs_append_args): Likewise. * dir-readdir.c (diskfs_S_dir_readdir): Likewise.
2002-05-08.Roland McGrath
2002-05-082002-05-08 Roland McGrath <roland@frob.com>Roland McGrath
* io-restrict-auth.c (diskfs_S_io_restrict_auth): Remove unused var.
2002-05-05.Roland McGrath