[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MiNT 1.10: change blksize on biosfs and pipefs



I don't see any reason why blksize on biosfs cannot be 1024.  This is
so under SunOS and Linux, and it helps utilities like cp and cat which
uses blksize as the size of the buffer.  The same change should be
done for the pipefs.

*** orig/biosfs.c	Fri Feb 11 22:03:02 1994
--- biosfs.c	Fri Mar 25 02:49:08 1994
***************
*** 185,191 ****
  	xp->uid = curproc->euid;
  	xp->gid = curproc->egid;
  	xp->size = 0L;
! 	xp->blksize = 1L;
  	xp->nblocks = 0L;
  
  	xp->mtime = xp->atime = xp->ctime = timestamp;
--- 185,191 ----
  	xp->uid = curproc->euid;
  	xp->gid = curproc->egid;
  	xp->size = 0L;
! 	xp->blksize = 1024L;
  	xp->nblocks = 0L;
  
  	xp->mtime = xp->atime = xp->ctime = timestamp;
*** orig/pipefs.c	Thu Feb 10 00:08:10 1994
--- pipefs.c	Thu May 19 20:26:44 1994
***************
*** 164,170 ****
  	xattr->dev = fc->dev;
  	xattr->rdev = fc->dev;
  	xattr->nlink = 1;
! 	xattr->blksize = 1;
  
  	if (fc->index == 0) {		/* root directory? */
  		xattr->uid = xattr->gid = 0;
--- 164,170 ----
  	xattr->dev = fc->dev;
  	xattr->rdev = fc->dev;
  	xattr->nlink = 1;
! 	xattr->blksize = 1024L;
  
  	if (fc->index == 0) {		/* root directory? */
  		xattr->uid = xattr->gid = 0;
***************
*** 186,192 ****
  			xattr->attr &= ~FA_RDONLY;
  		}
  
- 		xattr->nblocks = PIPESIZ;
  		if (this->dosflags & FA_SYSTEM) {	/* pseudo-tty */
  			xattr->size = PIPESIZ/4;
  			xattr->rdev = PIPE_RDEV|1;
--- 186,191 ----
***************
*** 194,199 ****
--- 193,199 ----
  			xattr->size = PIPESIZ;
  			xattr->rdev = PIPE_RDEV|0;
  		}
+ 		xattr->nblocks = xattr->size / 1024L;
  	}
  	return 0;
  }