libsysio-commit Mailing List for libsysio (Page 50)
Brought to you by:
lward
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
(25) |
May
(28) |
Jun
(25) |
Jul
(30) |
Aug
(60) |
Sep
(52) |
Oct
(100) |
Nov
(15) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(89) |
Feb
(48) |
Mar
(22) |
Apr
(59) |
May
(16) |
Jun
(15) |
Jul
(50) |
Aug
(26) |
Sep
(40) |
Oct
(27) |
Nov
(12) |
Dec
|
2005 |
Jan
(24) |
Feb
(11) |
Mar
|
Apr
|
May
(3) |
Jun
(6) |
Jul
|
Aug
(14) |
Sep
(21) |
Oct
(10) |
Nov
|
Dec
|
2006 |
Jan
(8) |
Feb
(5) |
Mar
(2) |
Apr
(6) |
May
(11) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2007 |
Jan
(3) |
Feb
(5) |
Mar
(20) |
Apr
(41) |
May
(21) |
Jun
(3) |
Jul
(5) |
Aug
(12) |
Sep
(21) |
Oct
(5) |
Nov
(16) |
Dec
|
2008 |
Jan
|
Feb
(2) |
Mar
(4) |
Apr
(23) |
May
|
Jun
(22) |
Jul
(13) |
Aug
|
Sep
|
Oct
(9) |
Nov
(3) |
Dec
(13) |
2009 |
Jan
(14) |
Feb
(10) |
Mar
(2) |
Apr
(11) |
May
(7) |
Jun
(1) |
Jul
(1) |
Aug
(36) |
Sep
(12) |
Oct
|
Nov
|
Dec
(10) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: <rk...@us...> - 2003-04-29 19:08:45
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv13351 Modified Files: Tag: cplant configure.in Log Message: configure tweaks Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -C2 -d -r1.5.2.1 -r1.5.2.2 *** configure.in 28 Apr 2003 20:16:13 -0000 1.5.2.1 --- configure.in 29 Apr 2003 19:08:39 -0000 1.5.2.2 *************** *** 77,81 **** PORTALS_INCLUDE="-I${withval} -I${withval}/sys" YOD_DRIVER_INCLUDE="-I../../drivers/yod" - AC_CONFIG_FILES(drivers/yod/Makefile) if test x${with_stdfd_dev} != xyes; then with_stdfd_dev=yes --- 77,80 ---- *************** *** 85,89 **** AC_MSG_ERROR(include dir ${withval} not found for --with-cplant-yod) fi;; ! esac]) AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod != xno) AC_SUBST(PORTALS_INCLUDE) --- 84,89 ---- AC_MSG_ERROR(include dir ${withval} not found for --with-cplant-yod) fi;; ! esac], ! [with_cplant_yod=no]) AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod != xno) AC_SUBST(PORTALS_INCLUDE) *************** *** 336,339 **** --- 336,340 ---- drivers/native/Makefile drivers/incore/Makefile + drivers/yod/Makefile dev/Makefile dev/stdfd/Makefile |
From: <rk...@us...> - 2003-04-29 18:52:37
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv5338 Modified Files: Tag: cplant write.c Log Message: __write needed only for alpha Index: write.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/write.c,v retrieving revision 1.2.8.1 retrieving revision 1.2.8.2 diff -C2 -d -r1.2.8.1 -r1.2.8.2 *** write.c 28 Apr 2003 20:30:06 -0000 1.2.8.1 --- write.c 29 Apr 2003 18:52:33 -0000 1.2.8.2 *************** *** 232,236 **** #endif ! #ifdef __GLIBC__ ssize_t __write(int fd, const void *buf, size_t count) --- 232,236 ---- #endif ! #if defined(ALPHA_LINUX) && defined(__GLIBC__) ssize_t __write(int fd, const void *buf, size_t count) *************** *** 239,240 **** --- 239,241 ---- } #endif + |
From: <rk...@us...> - 2003-04-29 17:13:19
|
Update of /cvsroot/libsysio/libsysio/drivers/yod In directory sc8-pr-cvs1:/tmp/cvs-serv16135 Modified Files: Tag: cplant fs_yod.c Log Message: make _sysio_i_new call consistent with merged trunk changes Index: fs_yod.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/yod/Attic/fs_yod.c,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** fs_yod.c 28 Apr 2003 20:21:40 -0000 1.1.2.1 --- fs_yod.c 29 Apr 2003 17:13:07 -0000 1.1.2.2 *************** *** 317,320 **** --- 317,321 ---- #endif 0, + 0, &yod_i_ops, nino); |
From: <rk...@us...> - 2003-04-28 20:56:08
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv3175 Modified Files: Tag: cplant fcntl.c fs.c inode.c mount.c Log Message: merge trunk changes into cplant branch Index: fcntl.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/fcntl.c,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -C2 -d -r1.2 -r1.2.6.1 *** fcntl.c 9 Mar 2003 06:20:47 -0000 1.2 --- fcntl.c 28 Apr 2003 20:55:54 -0000 1.2.6.1 *************** *** 79,83 **** goto out; } ! err = _sysio_fd_dup2(fd, (int )newfd); } break; --- 79,83 ---- goto out; } ! return _sysio_fd_dup2(fd, (int )newfd); } break; Index: fs.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/fs.c,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** fs.c 24 Mar 2003 22:09:06 -0000 1.3 --- fs.c 28 Apr 2003 20:55:56 -0000 1.3.2.1 *************** *** 133,141 **** abort(); n = FS_ITBLSIZ; - head = fs->fs_itbl; do { while (head->lh_first) _sysio_i_gone(head->lh_first); ! } while (--n); if (n) abort(); --- 133,141 ---- abort(); n = FS_ITBLSIZ; do { + head = &fs->fs_itbl[--n]; while (head->lh_first) _sysio_i_gone(head->lh_first); ! } while (n); if (n) abort(); Index: inode.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/inode.c,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** inode.c 24 Mar 2003 22:09:06 -0000 1.5 --- inode.c 28 Apr 2003 20:55:56 -0000 1.5.2.1 *************** *** 163,167 **** ino = next; next = ino->i_nodes.tqe_next; ! if (ino->i_ref) continue; _sysio_i_gone(ino); --- 163,167 ---- ino = next; next = ino->i_nodes.tqe_next; ! if (ino->i_ref || ino->i_immune) continue; _sysio_i_gone(ino); *************** *** 184,187 **** --- 184,188 ---- mode_t type, dev_t rdev, + unsigned immunity, struct inode_ops *ops, void *private) *************** *** 217,221 **** ino->i_ops.inop_ioctl = o->inop_ioctl; } ! I_INIT(ino, fs, inum, type, rdev, &ino->i_ops, fid, private); ino->i_ref = 1; TAILQ_INSERT_TAIL(&_sysio_inodes, ino, i_nodes); --- 218,222 ---- ino->i_ops.inop_ioctl = o->inop_ioctl; } ! I_INIT(ino, fs, inum, type, rdev, &ino->i_ops, fid, immunity, private); ino->i_ref = 1; TAILQ_INSERT_TAIL(&_sysio_inodes, ino, i_nodes); *************** *** 783,790 **** --- 784,794 ---- struct intnl_stat *stbuf) { + /* It is possible that pno is null (for ftruncate call). */ + if (pno) { assert(!(pno->p_base->pb_ino && ino) || pno->p_base->pb_ino == ino); if (IS_RDONLY(pno, ino)) return -EROFS; + } if (!ino && pno->p_base->pb_ino) ino = pno->p_base->pb_ino; Index: mount.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/mount.c,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** mount.c 24 Mar 2003 22:09:06 -0000 1.4 --- mount.c 28 Apr 2003 20:55:56 -0000 1.4.2.1 *************** *** 337,353 **** if (err) goto out; /* * Do the deed. */ if (!pno->p_cover) { err = -EINVAL; goto error; } assert(pno->p_mount); err = _sysio_do_unmount(pno->p_mount); - error: - P_RELE(pno); out: if (err) { --- 337,354 ---- if (err) goto out; + P_RELE(pno); /* was ref'd */ /* * Do the deed. */ + #if 0 if (!pno->p_cover) { err = -EINVAL; goto error; } + #endif assert(pno->p_mount); err = _sysio_do_unmount(pno->p_mount); out: if (err) { |
From: <rk...@us...> - 2003-04-28 20:43:57
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv28828 Modified Files: Tag: cplant inode.h Log Message: merge trunk changes into cplant branch Index: inode.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/inode.h,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** inode.h 24 Mar 2003 22:09:05 -0000 1.4 --- inode.h 28 Apr 2003 20:43:50 -0000 1.4.2.1 *************** *** 122,126 **** #define SETATTR_UID 0x08 #define SETATTR_GID 0x10 ! #define SETATTR_LEN 0x11 /* --- 122,126 ---- #define SETATTR_UID 0x08 #define SETATTR_GID 0x10 ! #define SETATTR_LEN 0x20 /* *************** *** 129,132 **** --- 129,133 ---- struct inode { LIST_ENTRY(inode) i_link; /* FS i-nodes link */ + unsigned i_immune : 1; /* immune from GC */ unsigned i_ref; /* soft ref counter */ ino_t i_num; /* i-num (deprecate!) */ *************** *** 143,148 **** * Init an i-node record. */ ! #define I_INIT(ino, fs, inum, mode, rdev, ops, fid, private) \ do { \ (ino)->i_ref = 0; \ (ino)->i_num = (inum); \ --- 144,150 ---- * Init an i-node record. */ ! #define I_INIT(ino, fs, inum, mode, rdev, ops, fid, immunity, private) \ do { \ + (ino)->i_immune = (immunity) ? 1 : 0; \ (ino)->i_ref = 0; \ (ino)->i_num = (inum); \ *************** *** 399,402 **** --- 401,405 ---- mode_t type, dev_t rdev, + unsigned immunity, struct inode_ops *ops, void *private); |
From: <rk...@us...> - 2003-04-28 20:41:40
|
Update of /cvsroot/libsysio/libsysio/drivers/native In directory sc8-pr-cvs1:/tmp/cvs-serv27341/native Modified Files: Tag: cplant fs_native.c Log Message: merge trunk changes into cplant branch Index: fs_native.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/native/fs_native.c,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** fs_native.c 26 Mar 2003 00:14:52 -0000 1.8 --- fs_native.c 28 Apr 2003 20:41:34 -0000 1.8.2.1 *************** *** 331,334 **** --- 331,335 ---- #endif 0, + 0, &native_i_ops, nino); *************** *** 723,727 **** if (err) mask &= ~(SETATTR_UID|SETATTR_GID); ! if (mask & SETATTR_LEN) { /* * Do the truncate last. It can't be undone. --- 724,728 ---- if (err) mask &= ~(SETATTR_UID|SETATTR_GID); ! else if (mask & SETATTR_LEN) { /* * Do the truncate last. It can't be undone. *************** *** 842,846 **** return -ENOMEM; ! err = syscall(SYS_symlink, path, data); free(path); return err; --- 843,847 ---- return -ENOMEM; ! err = syscall(SYS_symlink, data, path); free(path); return err; |
From: <rk...@us...> - 2003-04-28 20:41:38
|
Update of /cvsroot/libsysio/libsysio/drivers/incore In directory sc8-pr-cvs1:/tmp/cvs-serv27341/incore Modified Files: Tag: cplant fs_incore.c Log Message: merge trunk changes into cplant branch Index: fs_incore.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/incore/fs_incore.c,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** fs_incore.c 26 Mar 2003 00:06:01 -0000 1.3 --- fs_incore.c 28 Apr 2003 20:41:33 -0000 1.3.2.1 *************** *** 592,595 **** --- 592,596 ---- icino->ici_st.st_mode, 0, + 1, &_sysio_incore_dir_ops, icino); *************** *** 736,740 **** --- 737,743 ---- struct lookup_data lookup_data; struct file_identifier fileid; + #ifdef notdef struct inode_ops *ops; + #endif /* *************** *** 770,773 **** --- 773,777 ---- ino = _sysio_i_find(ino->i_fs, de->d_ino, &fileid); + #ifdef notdef if (ino) goto out; *************** *** 793,802 **** --- 797,810 ---- icino->ici_st.st_mode, 0, + 1, ops, icino); + #endif if (!ino) return -ENOMEM; + #ifdef notdef out: + #endif *inop = ino; return 0; *************** *** 1054,1057 **** --- 1062,1066 ---- stat.st_mode, 0, + 1, &_sysio_incore_dir_ops, icino); *************** *** 1069,1081 **** stat.st_ino, INCORE_D_TYPEOF(S_IFDIR)); if (err) { de->d_ino = 0; /* bad parent */ I_RELE(ino); return err; } ! /* ! * Leave reference so the inode is not reclaimed. ! */ return 0; } --- 1078,1090 ---- stat.st_ino, INCORE_D_TYPEOF(S_IFDIR)); + if (err) { de->d_ino = 0; /* bad parent */ I_RELE(ino); + _sysio_i_gone(ino); return err; } ! pno->p_base->pb_ino = ino; return 0; } *************** *** 1163,1166 **** --- 1172,1176 ---- st->st_mode, st->st_rdev, + 1, S_ISREG(st->st_mode) ? &_sysio_incore_file_ops *************** *** 1182,1192 **** if (err) { I_RELE(ino); return err; } pno->p_base->pb_ino = ino; - /* - * Leave reference so the inode is not reclaimed. - */ return 0; } --- 1192,1200 ---- if (err) { I_RELE(ino); + _sysio_i_gone(ino); return err; } pno->p_base->pb_ino = ino; return 0; } |
From: <rk...@us...> - 2003-04-28 20:30:12
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv21813a Modified Files: Tag: cplant write.c Log Message: glibc calls __write directly so wrap it Index: write.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/write.c,v retrieving revision 1.2 retrieving revision 1.2.8.1 diff -C2 -d -r1.2 -r1.2.8.1 *** write.c 7 Mar 2003 03:31:36 -0000 1.2 --- write.c 28 Apr 2003 20:30:06 -0000 1.2.8.1 *************** *** 231,232 **** --- 231,240 ---- } #endif + + #ifdef __GLIBC__ + ssize_t + __write(int fd, const void *buf, size_t count) + { + return write(fd, buf, count); + } + #endif |
From: <rk...@us...> - 2003-04-28 20:22:10
|
Update of /cvsroot/libsysio/libsysio/drivers In directory sc8-pr-cvs1:/tmp/cvs-serv17795 Modified Files: Tag: cplant Makefile.am Log Message: add cplant yod driver, mostly stubs Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/Makefile.am,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** Makefile.am 24 Mar 2003 22:09:03 -0000 1.2 --- Makefile.am 28 Apr 2003 20:21:36 -0000 1.2.2.1 *************** *** 12,14 **** endif ! SUBDIRS = $(NATIVE_DRIVER) $(INCORE_DRIVER) --- 12,20 ---- endif ! if WITH_CPLANT_YOD ! YOD_DRIVER = yod ! else ! YOD_DRIVER = ! endif ! ! SUBDIRS = $(NATIVE_DRIVER) $(INCORE_DRIVER) $(YOD_DRIVER) |
From: <rk...@us...> - 2003-04-28 20:21:43
|
Update of /cvsroot/libsysio/libsysio/drivers/yod In directory sc8-pr-cvs1:/tmp/cvs-serv17795/yod Added Files: Tag: cplant Makefile.am fs_yod.c fs_yod.h portals_io.c portals_io.h Log Message: add cplant yod driver, mostly stubs --- NEW FILE: Makefile.am --- lib_LIBRARIES = libsysio_yod.a EXTRA_DIST = fs_yod.h libsysio_yod_a_SOURCES = fs_yod.c portals_io.c include $(top_srcdir)/Rules.make AM_CPPFLAGS += $(PORTALS_INCLUDE) --- NEW FILE: fs_yod.c --- /* * This Cplant(TM) source code is the property of Sandia National * Laboratories. * * This Cplant(TM) source code is copyrighted by Sandia National * Laboratories. * * The redistribution of this Cplant(TM) source code is subject to the * terms of the GNU Lesser General Public License * (see cit/LGPL or http://www.gnu.org/licenses/lgpl.html) * * Cplant(TM) Copyright 1998-2003 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the US Government. * Export of this program may require a license from the United States * Government. */ /* [...1114 lines suppressed...] yod_inop_gone(struct inode *ino) { struct yod_inode *nino = I2NI(ino); if (nino->ni_fd) (void )close(nino->ni_fd); free(ino->i_private); } static void yod_fsop_gone(struct filesys *fs) { /* * Release fs private data */ if (fs->fs_private) free(fs->fs_private); } --- NEW FILE: fs_yod.h --- /* * This Cplant(TM) source code is the property of Sandia National * Laboratories. * * This Cplant(TM) source code is copyrighted by Sandia National * Laboratories. * * The redistribution of this Cplant(TM) source code is subject to the * terms of the GNU Lesser General Public License * (see cit/LGPL or http://www.gnu.org/licenses/lgpl.html) * * Cplant(TM) Copyright 1998-2003 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the US Government. * Export of this program may require a license from the United States * Government. */ /* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Questions or comments about this library should be sent to: * * Lee Ward * Sandia National Laboratories, New Mexico * P.O. Box 5800 * Albuquerque, NM 87185-1110 * * le...@sa... */ /* * Native file system driver support. */ extern int _sysio_yod_init(int, int, int, off_t, off_t, off_t); --- NEW FILE: portals_io.c --- /* * This Cplant(TM) source code is the property of Sandia National * Laboratories. * * This Cplant(TM) source code is copyrighted by Sandia National * Laboratories. * * The redistribution of this Cplant(TM) source code is subject to the * terms of the GNU Lesser General Public License * (see cit/LGPL or http://www.gnu.org/licenses/lgpl.html) * * Cplant(TM) Copyright 1998-2003 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the US Government. * Export of this program may require a license from the United States * Government. */ /* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Questions or comments about this library should be sent to: * * Lee Ward * Sandia National Laboratories, New Mexico * P.O. Box 5800 * Albuquerque, NM 87185-1110 * * le...@sa... */ #ifdef __linux__ #define _BSD_SOURCE #endif #include <fcntl.h> #include <ctype.h> #include <unistd.h> #include <stdlib.h> #include <stdarg.h> #include <errno.h> #include <string.h> #include <utime.h> #include <dirent.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/vfs.h> #include <sys/uio.h> #include "portals/rpc_msgs.h" #include "portals_io.h" /* * server nid, pid, ptl and yod std{in,out,err} file * handles are established in startup.c and passed * to _sysio_yod_init which records them in the * variables below. rank and nnodes are also set in * startup.c */ extern server_t _yod_server; extern off_t _yodfd_handles[]; extern int _my_rank; extern int _my_nnodes; int rpc_stat (const char *path, struct stat *sbuf); int rpc_fstat (int fd, struct stat *sbuf); int rpc_chmod (const char *path, mode_t mode); int rpc_fchmod (int fd, mode_t mode); int rpc_chdir (const char *path); int rpc_fchdir (int fd); int rpc_chown (const char *path, uid_t user, gid_t group); int rpc_fchown (int fd, uid_t user, gid_t group); int rpc_truncate (const char *path, off_t len); int rpc_ftruncate(int fd, off_t len); int rpc_utime (const char *path, struct utimbuf *buf); int rpc_mkdir (const char *path, mode_t mode); int rpc_rmdir (const char *path, mode_t mode); int rpc_symlink (const char *old, const char *new); int rpc_readlink (const char *path, char *buf, size_t bufsiz); int rpc_unlink (const char *path); int rpc_open (const char *path, int flags, mode_t mode); int rpc_creat (const char *path, mode_t mode); int rpc_close (int fd); int rpc_statfs (const char *path, struct statfs *buf); int rpc_fstatfs (int fd, struct statfs *buf); int rpc_fsync (int fd); int rpc_fdatasync(int fd); int rpc_getdents (unsigned int fd, struct dirent *dirp, unsigned int count); off_t rpc_lseek (int fd, off_t off, int whence); ssize_t rpc_read (int fd, char *buf, size_t len); ssize_t rpc_write (int fd, const char *buf, size_t len); int rpc_stat(const char *path, struct stat *sbuf) { hostCmd_t cmd; hostReply_t ack; size_t len; len = strlen(path); cmd.info.statCmd.fnameLen = len; if (_host_rpc(&cmd, &ack, CMD_STAT, _yod_server.nid, _yod_server.pid, _yod_server.ptl, path, len, (char *) sbuf, sizeof(struct stat)) != 0) return -1; if (ack.retVal == -1) errno = ack.hostErrno; return(ack.retVal); } int rpc_fstat(int fd, struct stat *sbuf) { return 0; } int rpc_chmod (const char *path, mode_t mode) { return 0; } int rpc_fchmod (int fd, mode_t mode) { return 0; } int rpc_chdir (const char *path) { return 0; } int rpc_fchdir (int fd) { return 0; } int rpc_chown (const char *path, uid_t user, gid_t group) { return 0; } int rpc_fchown (int fd, uid_t user, gid_t group) { return 0; } int rpc_truncate (const char *path, off_t len) { return 0; } int rpc_ftruncate(int fd, off_t len) { return 0; } int rpc_utime (const char *path, struct utimbuf *buf) { return 0; } int rpc_mkdir (const char *path, mode_t mode) { return 0; } int rpc_rmdir (const char *path, mode_t mode) { return 0; } int rpc_symlink (const char *old, const char *new) { return 0; } int rpc_readlink (const char *path, char *buf, size_t bufsiz) { return 0; } int rpc_unlink (const char *path) { return 0; } int rpc_open (const char *path, int flags, mode_t mode) { hostCmd_t cmd; hostReply_t ack; size_t len; UID_INIT(cmd); cmd.info.openCmd.fnameLen = strlen(path); cmd.info.openCmd.mode = mode; cmd.info.openCmd.flags = flags; if (_host_rpc(&cmd, &ack, CMD_OPEN, _yod_server.nid, _yod_server.pid, _yod_server.ptl, path, len, NULL, 0) != 0 ) return( -1); if (ack.retVal == -1) errno = ack.hostErrno; return (ack.retVal); } int rpc_creat (const char *path, mode_t mode) { return open(path, O_WRONLY | O_CREAT | O_TRUNC, mode); } int rpc_dup (int fd) { return fcntl(fd, F_DUPFD, 0); } int rpc_close (int fd) { return 0; } ssize_t rpc_read(int fd, char *buf, size_t len) { hostCmd_t cmd; hostReply_t ack; UID_INIT(cmd); cmd.info.readCmd.hostFileIndex = _yodfd_handles[fd]; cmd.info.readCmd.nbytes = len; cmd.info.readCmd.curPos = 0; cmd.info.readCmd.rank = _my_rank; cmd.info.readCmd.nnodes = _my_nnodes; if (_host_rpc(&cmd, &ack, CMD_READ, _yod_server.nid, _yod_server.pid, _yod_server.ptl, NULL, 0, (void *)buf, len) != 0 ) return( -1); if (ack.retVal == -1) errno = ack.hostErrno; return((ssize_t)ack.retVal); } ssize_t rpc_write(int fd, const char *buf, size_t len) { hostCmd_t cmd; hostReply_t ack; UID_INIT(cmd); cmd.info.writeCmd.hostFileIndex = _yodfd_handles[fd]; cmd.info.writeCmd.nbytes = len; cmd.info.writeCmd.curPos = 0; cmd.info.writeCmd.rank = _my_rank; cmd.info.writeCmd.nnodes = _my_nnodes; if (_host_rpc(&cmd, &ack, CMD_WRITE, _yod_server.nid, _yod_server.pid, _yod_server.ptl, (void *)buf, len, NULL, 0) != 0 ) return( -1); if (ack.retVal == -1) errno = ack.hostErrno; return((ssize_t )ack.retVal); } int rpc_statfs (const char *path, struct statfs *buf) { return 0; } int rpc_fstatfs (int fd, struct statfs *buf) { return 0; } int rpc_fsync (int fd) { return 0; } int rpc_fdatasync(int fd) { return 0; } int rpc_getdents64 (unsigned int fd, struct dirent *dirp, unsigned int count) { return 0; } off_t rpc_lseek (int fd, off_t off, int whence) { return 0; } --- NEW FILE: portals_io.h --- /* * This Cplant(TM) source code is the property of Sandia National * Laboratories. * * This Cplant(TM) source code is copyrighted by Sandia National * Laboratories. * * The redistribution of this Cplant(TM) source code is subject to the * terms of the GNU Lesser General Public License * (see cit/LGPL or http://www.gnu.org/licenses/lgpl.html) * * Cplant(TM) Copyright 1998-2003 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the US Government. * Export of this program may require a license from the United States * Government. */ /* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Questions or comments about this library should be sent to: * * Lee Ward * Sandia National Laboratories, New Mexico * P.O. Box 5800 * Albuquerque, NM 87185-1110 * * le...@sa... */ typedef struct { int nid; int pid; int ptl; } server_t; extern server_t _yod_server; extern uid_t _yod_uid, _yod_euid; extern gid_t _yod_gid, _yod_egid; #define UID_INIT(c) \ do { \ c.uid = _yod_uid; \ c.gid = _yod_gid; \ c.euid = _yod_euid; \ c.egid = _yod_egid; \ } while(0) /* stuff defined in yod_io_fns that * isn't in libsysio closeHost creat_cplant dup_cplant fcntl_cplant fcntlHost ioctl_cplant lstat_cplant mmap_cplant munmap_cplant rename_cplant ttyname_cplant */ |
From: <rk...@us...> - 2003-04-28 20:20:19
|
Update of /cvsroot/libsysio/libsysio/drivers/yod In directory sc8-pr-cvs1:/tmp/cvs-serv17308/yod Log Message: Directory /cvsroot/libsysio/libsysio/drivers/yod added to the repository --> Using per-directory sticky tag `cplant' |
From: <rk...@us...> - 2003-04-28 20:18:58
|
Update of /cvsroot/libsysio/libsysio/dev/stdfd In directory sc8-pr-cvs1:/tmp/cvs-serv16719 Modified Files: Tag: cplant Makefile.am stdfd.c Log Message: add cplant yod read/write defs Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/dev/stdfd/Makefile.am,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** Makefile.am 24 Mar 2003 22:09:02 -0000 1.2 --- Makefile.am 28 Apr 2003 20:18:53 -0000 1.2.2.1 *************** *** 6,7 **** --- 6,15 ---- include $(top_srcdir)/Rules.make + + if WITH_CPLANT_YOD + YOD_DRIVER_FLAGS = -DCPLANT_YOD $(PORTALS_INCLUDE) $(YOD_DRIVER_INCLUDE) + else + YOD_DRIVER_FLAGS = + endif + + AM_CPPFLAGS += $(YOD_DRIVER_FLAGS) Index: stdfd.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/dev/stdfd/stdfd.c,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** stdfd.c 24 Mar 2003 22:09:02 -0000 1.2 --- stdfd.c 28 Apr 2003 20:18:54 -0000 1.2.2.1 *************** *** 59,62 **** --- 59,70 ---- #include "stdfd.h" + #ifdef CPLANT_YOD + #define dowrite(f, b, n) rpc_write(f, b, n) + #define doread(f, b, n) rpc_read(f, b, n) + #else + #define dowrite(f, b, n) syscall(SYS_write, f, b, n) + #define doread(f, b, n) syscall(SYS_read, f, b, n) + #endif + /* * Pre-opened standard file descriptors driver. *************** *** 154,158 **** { ! return syscall(SYS_read, fd, buf, nbytes); } --- 162,166 ---- { ! return doread(fd, buf, nbytes); } *************** *** 172,176 **** { ! return syscall(SYS_write, fd, buf, nbytes); } --- 180,184 ---- { ! return dowrite(fd, buf, nbytes); } |
From: <rk...@us...> - 2003-04-28 20:17:27
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv16093 Modified Files: Tag: cplant Makefile.am Log Message: tests not config'd to build with cplant yet Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/Makefile.am,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** Makefile.am 26 Mar 2003 00:00:15 -0000 1.7 --- Makefile.am 28 Apr 2003 20:17:19 -0000 1.7.2.1 *************** *** 1,5 **** --- 1,9 ---- if WITH_TESTS + if WITH_CPLANT_YOD + TESTS = + else TESTS = tests + endif else TESTS = *************** *** 17,20 **** --- 21,25 ---- -rm -f Makefile.in \ drivers/native/Makefile.in drivers/incore/Makefile.in \ + drivers/yod/Makefile.in \ drivers/Makefile.in \ dev/stdfd/Makefile.in \ |
From: <rk...@us...> - 2003-04-28 20:16:18
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv15548 Modified Files: Tag: cplant configure.in Log Message: add cplant-yod configure option Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** configure.in 26 Mar 2003 00:05:59 -0000 1.5 --- configure.in 28 Apr 2003 20:16:13 -0000 1.5.2.1 *************** *** 20,38 **** AC_HEADER_TIME ! AC_ARG_WITH(with_native_driver, [ --with-native-driver build native test driver], ! [ with_native_driver=${withval} ! case "${withval}" in yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-native-driver) ;; ! esac], ! [with_native_driver=yes]) AM_CONDITIONAL(WITH_NATIVE_DRIVER, test x$with_native_driver = xyes) ! AC_ARG_WITH(with_incore_driver, [ --with-incore-driver build incore test driver], ! [ with_incore_driver=${withval} ! case "${withval}" in yes) ;; no) ;; --- 20,36 ---- AC_HEADER_TIME ! AC_ARG_WITH(native_driver, [ --with-native-driver build native test driver], ! [ case "${withval}" in yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-native-driver) ;; ! esac;], ! [with_native_driver=yes;]) AM_CONDITIONAL(WITH_NATIVE_DRIVER, test x$with_native_driver = xyes) ! AC_ARG_WITH(incore-driver, [ --with-incore-driver build incore test driver], ! [ case "${withval}" in yes) ;; no) ;; *************** *** 42,49 **** AM_CONDITIONAL(WITH_INCORE_DRIVER, test x$with_incore_driver = xyes) ! AC_ARG_WITH(with_tests, [ --with-tests build tests], ! [ with_tests=${withval} ! case "${withval}" in yes) ;; no) ;; --- 40,46 ---- AM_CONDITIONAL(WITH_INCORE_DRIVER, test x$with_incore_driver = xyes) ! AC_ARG_WITH(tests, [ --with-tests build tests], ! [ case "${withval}" in yes) ;; no) ;; *************** *** 55,71 **** AC_ARG_WITH(automount, [ --with-automount=[automount-file-name] with automounts], ! with_automount=$withval, ! [with_automount=]) ! if test x$with_automount != x; then ! AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"$with_automount\\\"" ! fi AC_SUBST(AUTOMOUNT) ! AC_ARG_WITH(with_stdfd_dev, [ --with-stdfd-dev build standard file descriptors pseudo-driver], ! [ with_stdfd_dev=${withval} ! case "${withval}" in ! yes) ! ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-stdfd-dev) ;; --- 52,64 ---- AC_ARG_WITH(automount, [ --with-automount=[automount-file-name] with automounts], ! [ if test x${withval} != x; then ! AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"${withval}\\\"" ! fi]) AC_SUBST(AUTOMOUNT) ! AC_ARG_WITH(stdfd-dev, [ --with-stdfd-dev build standard file descriptors pseudo-driver], ! [ case "${withval}" in ! yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-stdfd-dev) ;; *************** *** 74,77 **** --- 67,93 ---- AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) + AC_ARG_WITH(cplant_yod, + [ --with-cplant-yod=[portals-include-path] build cplant yod I/O driver], + [ case "${withval}" in + yes) + AC_MSG_ERROR(missing include dir argument for --with-cplant-yod);; + no);; + *) + if test -d ${withval}; then + PORTALS_INCLUDE="-I${withval} -I${withval}/sys" + YOD_DRIVER_INCLUDE="-I../../drivers/yod" + AC_CONFIG_FILES(drivers/yod/Makefile) + if test x${with_stdfd_dev} != xyes; then + with_stdfd_dev=yes + AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) + fi + else + AC_MSG_ERROR(include dir ${withval} not found for --with-cplant-yod) + fi;; + esac]) + AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod != xno) + AC_SUBST(PORTALS_INCLUDE) + AC_SUBST(YOD_DRIVER_INCLUDE) + # We keep the original values in `$config_*' and never modify them, so we # can write them unchanged into config.make. Everything else uses *************** *** 323,324 **** --- 339,341 ---- dev/stdfd/Makefile tests/Makefile) + |
From: <rk...@us...> - 2003-04-28 18:20:11
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv28966 Modified Files: Tag: cplant open.c lseek.c Log Message: merge trunk changes into cplant branch Index: open.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/open.c,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** open.c 24 Mar 2003 22:09:06 -0000 1.6 --- open.c 28 Apr 2003 18:19:58 -0000 1.6.2.1 *************** *** 103,107 **** : -EROFS; } - P_RELE(parent); } else if ((flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL)) err = -EEXIST; --- 103,106 ---- Index: lseek.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/lseek.c,v retrieving revision 1.3 retrieving revision 1.3.6.1 diff -C2 -d -r1.3 -r1.3.6.1 *** lseek.c 9 Mar 2003 06:27:04 -0000 1.3 --- lseek.c 28 Apr 2003 18:20:03 -0000 1.3.6.1 *************** *** 86,90 **** break; off = stbuf.st_size; ! off -= offset; break; default: --- 86,90 ---- break; off = stbuf.st_size; ! off += offset; break; default: |
From: Lee W. <le...@sa...> - 2003-04-27 21:05:16
|
Oh my. That's wrong isn't it? Please ignore what I've said. I believe our changes lie in some Sandia-only branch. Please ignore what I've said and we'll reconcile against your check-in. Sorry. --Lee On Sun, 2003-04-27 at 14:03, Lee Ward wrote: > Ouch. This bug was found and fixed at Sandia awhile back. It is in the > main branch of the repository. Can you update your copy? > > --Lee > > > On Sun, 2003-04-27 at 09:20, me...@us... wrote: > > Update of /cvsroot/libsysio/libsysio/src > > In directory sc8-pr-cvs1:/tmp/cvs-serv29894/src > > > > Modified Files: > > lseek.c > > Log Message: > > fix a wrong offset computing > > > > > > > > Index: lseek.c > > =================================================================== > > RCS file: /cvsroot/libsysio/libsysio/src/lseek.c,v > > retrieving revision 1.3 > > retrieving revision 1.4 > > diff -C2 -d -r1.3 -r1.4 > > *** lseek.c 9 Mar 2003 06:27:04 -0000 1.3 > > --- lseek.c 27 Apr 2003 13:20:01 -0000 1.4 > > *************** > > *** 86,90 **** > > break; > > off = stbuf.st_size; > > ! off -= offset; > > break; > > default: > > --- 86,90 ---- > > break; > > off = stbuf.st_size; > > ! off += offset; > > break; > > default: > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Libsysio-commit mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libsysio-commit > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Libsysio-commit mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libsysio-commit |
From: Lee W. <le...@sa...> - 2003-04-27 18:03:25
|
Ouch. This bug was found and fixed at Sandia awhile back. It is in the main branch of the repository. Can you update your copy? --Lee On Sun, 2003-04-27 at 09:20, me...@us... wrote: > Update of /cvsroot/libsysio/libsysio/src > In directory sc8-pr-cvs1:/tmp/cvs-serv29894/src > > Modified Files: > lseek.c > Log Message: > fix a wrong offset computing > > > > Index: lseek.c > =================================================================== > RCS file: /cvsroot/libsysio/libsysio/src/lseek.c,v > retrieving revision 1.3 > retrieving revision 1.4 > diff -C2 -d -r1.3 -r1.4 > *** lseek.c 9 Mar 2003 06:27:04 -0000 1.3 > --- lseek.c 27 Apr 2003 13:20:01 -0000 1.4 > *************** > *** 86,90 **** > break; > off = stbuf.st_size; > ! off -= offset; > break; > default: > --- 86,90 ---- > break; > off = stbuf.st_size; > ! off += offset; > break; > default: > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Libsysio-commit mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libsysio-commit |
From: <me...@us...> - 2003-04-27 13:20:06
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv29894/src Modified Files: lseek.c Log Message: fix a wrong offset computing Index: lseek.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/lseek.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** lseek.c 9 Mar 2003 06:27:04 -0000 1.3 --- lseek.c 27 Apr 2003 13:20:01 -0000 1.4 *************** *** 86,90 **** break; off = stbuf.st_size; ! off -= offset; break; default: --- 86,90 ---- break; off = stbuf.st_size; ! off += offset; break; default: |
From: <me...@us...> - 2003-04-24 02:15:33
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv25784 Modified Files: fs.c Log Message: ok, back out the test commit Index: fs.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/fs.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** fs.c 24 Apr 2003 02:14:54 -0000 1.7 --- fs.c 24 Apr 2003 02:15:29 -0000 1.8 *************** *** 42,46 **** */ - #include <stdlib.h> #include <string.h> --- 42,45 ---- |
From: <me...@us...> - 2003-04-24 02:14:58
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv25590 Modified Files: fs.c Log Message: test commit Index: fs.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/fs.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fs.c 24 Apr 2003 02:04:34 -0000 1.6 --- fs.c 24 Apr 2003 02:14:54 -0000 1.7 *************** *** 42,45 **** --- 42,46 ---- */ + #include <stdlib.h> #include <string.h> |
From: Lee W. <le...@sa...> - 2003-04-23 20:54:55
|
Applied diff sent by Eric Mei that fixed a problem during shutdown when attempting to release all i-nodes. Also, fixed a bug in open.c (reported by Eric Mei) with an unmatched P_RELE. This involved a new i-node flag (immune) that when set, keeps the garbage collector from trying to reclaim an i-node, without regard to the number of soft refs. --Lee |