From d8ba9f9dc1db1ce41dcf94418be3d24f5eef3e46 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Fri, 7 Feb 1992 01:58:53 -0800 Subject: [PATCH] add comment about on-disk formats and the format defined by SCCS-vsn: sys/ufs/ffs/ufs_vnops.c 7.77 SCCS-vsn: sys/ufs/ufs/ufs_vnops.c 7.77 --- usr/src/sys/ufs/ffs/ufs_vnops.c | 10 ++++++++-- usr/src/sys/ufs/ufs/ufs_vnops.c | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/usr/src/sys/ufs/ffs/ufs_vnops.c b/usr/src/sys/ufs/ffs/ufs_vnops.c index faeac70574..ffe7147bc4 100644 --- a/usr/src/sys/ufs/ffs/ufs_vnops.c +++ b/usr/src/sys/ufs/ffs/ufs_vnops.c @@ -4,7 +4,7 @@ * * %sccs.include.redist.c% * - * @(#)ufs_vnops.c 7.76 (Berkeley) %G% + * @(#)ufs_vnops.c 7.77 (Berkeley) %G% */ #include @@ -1301,7 +1301,13 @@ ufs_symlink(dvp, vpp, cnp, vap, target) } /* - * Vnode op for read and write + * Vnode op for reading directories. + * + * The routine below assumes that the on-disk format of a directory + * is the same as that defined by . If the on-disk + * format changes, then it will be necessary to do a conversion + * from the on-disk format that read returns to the format defined + * by . */ int ufs_readdir(vp, uio, cred, eofflagp) diff --git a/usr/src/sys/ufs/ufs/ufs_vnops.c b/usr/src/sys/ufs/ufs/ufs_vnops.c index faeac70574..ffe7147bc4 100644 --- a/usr/src/sys/ufs/ufs/ufs_vnops.c +++ b/usr/src/sys/ufs/ufs/ufs_vnops.c @@ -4,7 +4,7 @@ * * %sccs.include.redist.c% * - * @(#)ufs_vnops.c 7.76 (Berkeley) %G% + * @(#)ufs_vnops.c 7.77 (Berkeley) %G% */ #include @@ -1301,7 +1301,13 @@ ufs_symlink(dvp, vpp, cnp, vap, target) } /* - * Vnode op for read and write + * Vnode op for reading directories. + * + * The routine below assumes that the on-disk format of a directory + * is the same as that defined by . If the on-disk + * format changes, then it will be necessary to do a conversion + * from the on-disk format that read returns to the format defined + * by . */ int ufs_readdir(vp, uio, cred, eofflagp) -- 2.20.1