vfs_vnops.c (99009) | vfs_vnops.c (100201) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94 |
39 * $FreeBSD: head/sys/kern/vfs_vnops.c 99009 2002-06-29 01:50:25Z alfred $ | 39 * $FreeBSD: head/sys/kern/vfs_vnops.c 100201 2002-07-16 22:36:00Z mckusick $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/fcntl.h> 45#include <sys/file.h> 46#include <sys/stat.h> 47#include <sys/proc.h> --- 567 unchanged lines hidden (view full) --- 615 sb->st_gid = vap->va_gid; 616 sb->st_rdev = vap->va_rdev; 617 if (vap->va_size > OFF_MAX) 618 return (EOVERFLOW); 619 sb->st_size = vap->va_size; 620 sb->st_atimespec = vap->va_atime; 621 sb->st_mtimespec = vap->va_mtime; 622 sb->st_ctimespec = vap->va_ctime; | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/fcntl.h> 45#include <sys/file.h> 46#include <sys/stat.h> 47#include <sys/proc.h> --- 567 unchanged lines hidden (view full) --- 615 sb->st_gid = vap->va_gid; 616 sb->st_rdev = vap->va_rdev; 617 if (vap->va_size > OFF_MAX) 618 return (EOVERFLOW); 619 sb->st_size = vap->va_size; 620 sb->st_atimespec = vap->va_atime; 621 sb->st_mtimespec = vap->va_mtime; 622 sb->st_ctimespec = vap->va_ctime; |
623 sb->st_createtimespec = vap->va_createtime; | 623 sb->st_birthtimespec = vap->va_birthtime; |
624 625 /* 626 * According to www.opengroup.org, the meaning of st_blksize is 627 * "a filesystem-specific preferred I/O block size for this 628 * object. In some filesystem types, this may vary from file 629 * to file" 630 * Default to PAGE_SIZE after much discussion. 631 */ --- 425 unchanged lines hidden --- | 624 625 /* 626 * According to www.opengroup.org, the meaning of st_blksize is 627 * "a filesystem-specific preferred I/O block size for this 628 * object. In some filesystem types, this may vary from file 629 * to file" 630 * Default to PAGE_SIZE after much discussion. 631 */ --- 425 unchanged lines hidden --- |