Thread: [Libsysio-commit] HEAD: libsysio/misc init-env.sh
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-02-14 19:49:38
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16325/misc Added Files: init-env.sh Log Message: + Merged in changes from namespace_assembly branch (see .../misc/init-env.sh) This provoked a bunch of bugs. See below. + Fixed a bug in _sysio_enumerate_extents(). If the IO operation was short, it would go round the loop again, mistakenly trying to fill more of the extent. + In rw.c, fixed bugs in [p]{read,write}[vx] (all the synchronous routines) that improperly propagated error returns. They were returning -errno instead of setting errno and returning -1. + In fs_native.c:doiov, fixed a bug where a zero-length IO was improperly thought to be an error. + In lseek.c:_sysio_lseek, fixed final position check to properly determine {under,over}flow. + In link.c:link, fixed the existence check. No error is returned for nonexistent files when ND_NEGOK is specified. We're supposed to check whether it's a negative entry or not. + A new macro, I_GONE, was added to inode.h. This will *try* to kill an inode but if it can't, it becomes a zombie instead. + In unlink.c:unlink, link.c:link, rename.c:rename, the driver ops were being called but the actual operation in the internal path tree was not reflected. Also, for unlink and rename, use the new I_GONE macro on the destroyed inode. + In fs_native.c:native_inop_gone, close() was always called, even when the fildes was -1. + In fs_native.c:native_inop_gone, close() was called. We really meant to call syscal(SYS_close, ...); + In namei.c:_sysio_path_walk, fixed broken symlink handling. It wasn't following symlinks anywhere if ND_NOFOLLOW was set. That flag only means that the *last* component should not be followed. + In namei.c:_sysio_path_walk, fixed buffer overrun problem for very long symlinks. + In fs_incore.c, fixed dirop_{link,rename,unlink,rmdir} because they were manipulating the system path cache and shouldn't. + In mount.c:_sysio_unmount_all we were mistakenly releasing an FS root after a failed unmount attempt. + Fixes in test_regions.c free allocated memory at the end so valgrind doesn't show a leak. |
From: Lee W. <lw...@us...> - 2004-02-25 16:00:35
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15618 Modified Files: init-env.sh Log Message: Changed permissions for the automount-directory in /mnt. Need the sticky bit or namei won't even try. Index: init-env.sh =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/init-env.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -b -B -p -r1.2 -r1.3 --- init-env.sh 14 Feb 2004 19:42:58 -0000 1.2 +++ init-env.sh 25 Feb 2004 15:45:31 -0000 1.3 @@ -16,7 +16,7 @@ if [ "x${SYSIO_AUTOMOUNT}" == "xyes" ]; # _extras=" \ {mnt, dev=\"incore:0755+0+0\",dir=\"/mnt\",fl=2} \ - {creat, ft=dir,nm=\"/mnt/home\",pm=0755,ow=0,gr=0} \ + {creat, ft=dir,nm=\"/mnt/home\",pm=01755,ow=0,gr=0} \ {creat, ft=file,nm=\"/mnt/home/.mount\",pm=0600, \ str=\"native:/usr/home\"} \ " |
From: Lee W. <lw...@us...> - 2004-03-05 13:29:22
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25438/misc Modified Files: init-env.sh Log Message: The indication that a directory *might* be an automount candidate is the ISUID flag. Not ISVTX. Changed to reflect that. Index: init-env.sh =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/init-env.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -b -B -p -r1.3 -r1.4 --- init-env.sh 25 Feb 2004 15:45:31 -0000 1.3 +++ init-env.sh 5 Mar 2004 13:07:18 -0000 1.4 @@ -16,9 +16,9 @@ if [ "x${SYSIO_AUTOMOUNT}" == "xyes" ]; # _extras=" \ {mnt, dev=\"incore:0755+0+0\",dir=\"/mnt\",fl=2} \ - {creat, ft=dir,nm=\"/mnt/home\",pm=01755,ow=0,gr=0} \ + {creat, ft=dir,nm=\"/mnt/home\",pm=04755,ow=0,gr=0} \ {creat, ft=file,nm=\"/mnt/home/.mount\",pm=0600, \ - str=\"native:/usr/home\"} \ + str=\"native:/home\"} \ " fi export SYSIO_NAMESPACE="\ |
From: Lee W. <lw...@us...> - 2004-06-24 19:58:36
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32257/misc Modified Files: init-env.sh Log Message: Mods to namespace boot. Added the "open" command in order to pre-open a file on a given file descriptor. Usage: open, nm=<path>,fd=<#>,m=<#> Where: nm is the path to the file -- it should already exist fd is the desired fildes m mode flags to open -- only one of O_RDONLY, O_WRONLY, O_RDWR supported Index: init-env.sh =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/init-env.sh,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -b -B -p -r1.4 -r1.5 --- init-env.sh 5 Mar 2004 13:07:18 -0000 1.4 +++ init-env.sh 24 Jun 2004 19:58:28 -0000 1.5 @@ -29,8 +29,11 @@ export SYSIO_NAMESPACE="\ {creat, ft=chr,nm=\"/dev/stderr\",pm=0200,mm=0+2} \ {creat, ft=dir,nm=\"/dev/fd\",pm=0755,ow=0,gr=0} \ {creat, ft=chr,nm=\"/dev/fd/0\",pm=0400,mm=0+0} \ + {open, nm=\"/dev/fd/0\",fd=0,m=0} \ {creat, ft=chr,nm=\"/dev/fd/1\",pm=0200,mm=0+1} \ + {open, nm=\"/dev/fd/1\",fd=1,m=1} \ {creat, ft=chr,nm=\"/dev/fd/2\",pm=0200,mm=0+2} \ + {open, nm=\"/dev/fd/2\",fd=2,m=1} \ {cd, dir=\"$HOME\"} \ ${_extras} \ " |
From: Sonja T. <so...@us...> - 2004-07-21 21:22:32
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv514/misc Modified Files: init-env.sh Log Message: Fixing bugs to do with device files. Now, you cant open devices that do not have an associated driver. Also, you can now do an fstat() on a device Index: init-env.sh =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/init-env.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -b -B -p -r1.5 -r1.6 --- init-env.sh 24 Jun 2004 19:58:28 -0000 1.5 +++ init-env.sh 21 Jul 2004 21:22:24 -0000 1.6 @@ -24,6 +24,9 @@ fi export SYSIO_NAMESPACE="\ {mnt, dev=\"native:/\",dir=/,fl=${_root_flags:-0}} \ {mnt, dev=\"incore:0755+0+0\",dir=\"/dev\"} \ + {mnt, dev=\"incore:0755+0+0\",dir=\"/mnt\",fl=2} + {creat, ft=dir,nm=\"/mnt/dev\",pm=04755,ow=0,gr=0} \ + {mnt, dev=\"native:/dev\",dir=\"/mnt/dev\"} \ {creat, ft=chr,nm=\"/dev/stdin\",pm=0400,mm=0+0} \ {creat, ft=chr,nm=\"/dev/stdout\",pm=0200,mm=0+1} \ {creat, ft=chr,nm=\"/dev/stderr\",pm=0200,mm=0+2} \ |
From: Lee W. <lw...@us...> - 2004-10-14 14:59:46
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8149/misc Modified Files: init-env.sh Log Message: Merging in the defer-cwd branch. These changes include: + Carry full stat info in the inode now + Use that stat info (careful with intents!) instead of calling getattr + Cached attributes for the native driver + Abstracted and localized system call defs (see .../include/native.h) + The ability to defer path traversal to the "current working directory" unless and until a relative pathname is specified. This alters _sysio_boot to take an extra parameter (the init cwd) and must be configured with "--with-defer-init-cwd". Index: init-env.sh =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/init-env.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -b -B -p -r1.5 -r1.6 --- init-env.sh 24 Jun 2004 19:58:28 -0000 1.5 +++ init-env.sh 14 Oct 2004 14:59:29 -0000 1.6 @@ -34,7 +34,6 @@ export SYSIO_NAMESPACE="\ {open, nm=\"/dev/fd/1\",fd=1,m=1} \ {creat, ft=chr,nm=\"/dev/fd/2\",pm=0200,mm=0+2} \ {open, nm=\"/dev/fd/2\",fd=2,m=1} \ - {cd, dir=\"$HOME\"} \ ${_extras} \ " unset _root_flags |
From: Lee W. <lw...@us...> - 2007-03-09 19:36:25
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2357/misc Modified Files: init-env.sh Log Message: Changed to remove hard permissions from incore file systems. Just inherits the callers uid and gid, now. Index: init-env.sh =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/init-env.sh,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -b -B -p -r1.6 -r1.7 --- init-env.sh 14 Oct 2004 14:59:29 -0000 1.6 +++ init-env.sh 9 Mar 2007 19:36:21 -0000 1.7 @@ -15,19 +15,19 @@ if [ "x${SYSIO_AUTOMOUNT}" == "xyes" ]; # file system. Further automounts in the sub-mounts are not enabled. # _extras=" \ - {mnt, dev=\"incore:0755+0+0\",dir=\"/mnt\",fl=2} \ - {creat, ft=dir,nm=\"/mnt/home\",pm=04755,ow=0,gr=0} \ + {mnt, dev=\"incore:0755\",dir=\"/mnt\",fl=2} \ + {creat, ft=dir,nm=\"/mnt/home\",pm=04755} \ {creat, ft=file,nm=\"/mnt/home/.mount\",pm=0600, \ str=\"native:/home\"} \ " fi export SYSIO_NAMESPACE="\ {mnt, dev=\"native:/\",dir=/,fl=${_root_flags:-0}} \ - {mnt, dev=\"incore:0755+0+0\",dir=\"/dev\"} \ + {mnt, dev=\"incore:0755\",dir=\"/dev\"} \ {creat, ft=chr,nm=\"/dev/stdin\",pm=0400,mm=0+0} \ {creat, ft=chr,nm=\"/dev/stdout\",pm=0200,mm=0+1} \ {creat, ft=chr,nm=\"/dev/stderr\",pm=0200,mm=0+2} \ - {creat, ft=dir,nm=\"/dev/fd\",pm=0755,ow=0,gr=0} \ + {creat, ft=dir,nm=\"/dev/fd\",pm=0755} \ {creat, ft=chr,nm=\"/dev/fd/0\",pm=0400,mm=0+0} \ {open, nm=\"/dev/fd/0\",fd=0,m=0} \ {creat, ft=chr,nm=\"/dev/fd/1\",pm=0200,mm=0+1} \ |
From: Lee W. <lw...@us...> - 2008-06-17 15:17:33
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32385/misc Modified Files: init-env.sh Log Message: Integrate and initialize new, built-in, stddev pseudo-driver that gives us /dev/null, /dev/zero, and /dev/full functionality. Index: init-env.sh =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/init-env.sh,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- init-env.sh 9 Mar 2007 19:36:21 -0000 1.7 +++ init-env.sh 17 Jun 2008 15:17:30 -0000 1.8 @@ -24,6 +24,9 @@ fi export SYSIO_NAMESPACE="\ {mnt, dev=\"native:/\",dir=/,fl=${_root_flags:-0}} \ {mnt, dev=\"incore:0755\",dir=\"/dev\"} \ + {creat, ft=chr,nm=\"/dev/null\",pm=0666,mm=1+3} \ + {creat, ft=chr,nm=\"/dev/zero\",pm=0666,mm=1+5} \ + {creat, ft=chr,nm=\"/dev/full\",pm=0666,mm=1+7} \ {creat, ft=chr,nm=\"/dev/stdin\",pm=0400,mm=0+0} \ {creat, ft=chr,nm=\"/dev/stdout\",pm=0200,mm=0+1} \ {creat, ft=chr,nm=\"/dev/stderr\",pm=0200,mm=0+2} \ |