Subject: Re: syssrc/ufs/ufs/ufs_vnops.c:ufs_getattr and vap->va_size
To: Sean Doran <smd@ebone.net>
From: Greywolf <greywolf@starwolf.com>
List: tech-kern
Date: 08/24/2000 16:20:49
On Fri, 25 Aug 2000, Sean Doran wrote:

# Date: Fri, 25 Aug 2000 01:12:01 +0200 (CEST)
# From: Sean Doran <smd@ebone.net>
# To: tech-kern@netbsd.org
# Subject: syssrc/ufs/ufs/ufs_vnops.c:ufs_getattr and vap->va_size
# 
# 
# In the ufs_getattr function there is:
# 
#         vap->va_size = ip->i_ffs_size;
# 
# Why is this 0 when the inode is a device?  Would it be possible/
# convenient/sane to have this be the same size as the medium/partition,
# if the kernel knows it?

I think this is historical; things either have a meaningful i_size or
they have a meaningful i_dev, but not both.  Which one is used depends
on i_mode.


# Naively,
# 
# 	Sean.

				--*greywolf;
--
BSD: You can't handle it.