Lines 61-66
Link Here
|
61 |
#include <sys/ttycom.h> |
61 |
#include <sys/ttycom.h> |
62 |
#include <sys/unistd.h> |
62 |
#include <sys/unistd.h> |
63 |
#include <sys/vnode.h> |
63 |
#include <sys/vnode.h> |
|
|
64 |
#include <geom/geom.h> |
64 |
|
65 |
|
65 |
static struct vop_vector devfs_vnodeops; |
66 |
static struct vop_vector devfs_vnodeops; |
66 |
static struct vop_vector devfs_specops; |
67 |
static struct vop_vector devfs_specops; |
Lines 700-705
Link Here
|
700 |
fix(de->de_ctime); |
701 |
fix(de->de_ctime); |
701 |
vap->va_ctime = de->de_ctime; |
702 |
vap->va_ctime = de->de_ctime; |
702 |
} else { |
703 |
} else { |
|
|
704 |
struct g_provider *pp; |
705 |
|
703 |
dev = vp->v_rdev; |
706 |
dev = vp->v_rdev; |
704 |
fix(dev->si_atime); |
707 |
fix(dev->si_atime); |
705 |
vap->va_atime = dev->si_atime; |
708 |
vap->va_atime = dev->si_atime; |
Lines 709-714
Link Here
|
709 |
vap->va_ctime = dev->si_ctime; |
712 |
vap->va_ctime = dev->si_ctime; |
710 |
|
713 |
|
711 |
vap->va_rdev = cdev2priv(dev)->cdp_inode; |
714 |
vap->va_rdev = cdev2priv(dev)->cdp_inode; |
|
|
715 |
|
716 |
pp = g_dev_getprovider(dev); |
717 |
|
718 |
if (pp) { |
719 |
vap->va_size = vap->va_bytes = pp->mediasize; |
720 |
vap->va_blocksize = pp->sectorsize; |
721 |
} |
712 |
} |
722 |
} |
713 |
vap->va_gen = 0; |
723 |
vap->va_gen = 0; |
714 |
vap->va_flags = 0; |
724 |
vap->va_flags = 0; |