summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-03-28 03:29:46 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-03-28 03:29:46 +0000
commit7f3b9e3bc6d1bf3735d920fc2a1a0928246b3143 (patch)
tree0aa1425db7a5ebb5ec5e9217909e9e73b676b196 /sys/nfs
parent5db347204f2f2d0c33e0cf121e4067464540507a (diff)
Add support for _PC_TIMESTAMP_RESOLUTION for ffs/mfs, cd9600, ext2,
msdos, NFS, fifos and devices, plus support for querying it in getconf(2) and the requisite pathconf(2) manpage blurb ok tedu@
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_vnops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 24b0c78d7c6..af217384554 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vnops.c,v 1.143 2013/03/28 02:27:27 tedu Exp $ */
+/* $OpenBSD: nfs_vnops.c,v 1.144 2013/03/28 03:29:44 guenther Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */
/*
@@ -2987,6 +2987,9 @@ nfs_pathconf(void *v)
case _PC_2_SYMLINKS:
*ap->a_retval = 1;
break;
+ case _PC_TIMESTAMP_RESOLUTION:
+ *ap->a_retval = NFS_ISV3(ap->a_vp) ? 1 : 1000;
+ break;
default:
error = EINVAL;
break;