* fhandler.h (PREFERRED_IO_BLKSIZE): Define as 64K.

* fhandler.cc (fhandler_base::fstat): Set st_blksize to
	PREFERRED_IO_BLKSIZE.
	* fhandler_disk_file.cc (fhandler_base::fstat_helper): Ditto.
	* fhandler_mailslot.cc (fhandler_mailslot::fstat): Ditto.
	* fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto.
This commit is contained in:
Corinna Vinschen
2007-01-04 09:17:55 +00:00
parent 48edcc3fcc
commit 7bef7db5cc
6 changed files with 24 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
/* fhandler_mailslot.cc. See fhandler.h for a description of the fhandler classes.
Copyright 2005 Red Hat, Inc.
Copyright 2005, 2007 Red Hat, Inc.
This file is part of Cygwin.
@@ -42,7 +42,7 @@ fhandler_mailslot::fstat (struct __stat64 *buf)
buf->st_uid = geteuid32 ();
buf->st_gid = getegid32 ();
buf->st_nlink = 1;
buf->st_blksize = S_BLKSIZE;
buf->st_blksize = PREFERRED_IO_BLKSIZE;
time_as_timestruc_t (&buf->st_ctim);
buf->st_atim = buf->st_mtim = buf->st_ctim;
}