Deleted Added
full compact
msdosfs_vnops.c (213543) msdosfs_vnops.c (218909)
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 213543 2010-10-08 07:17:22Z kib $ */
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 218909 2011-02-21 09:01:34Z brucec $ */
2/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 1515 unchanged lines hidden (view full) ---

1525
1526#ifdef MSDOSFS_DEBUG
1527 printf("msdosfs_readdir(): vp %p, uio %p, cred %p, eofflagp %p\n",
1528 ap->a_vp, uio, ap->a_cred, ap->a_eofflag);
1529#endif
1530
1531 /*
1532 * msdosfs_readdir() won't operate properly on regular files since
2/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 1515 unchanged lines hidden (view full) ---

1525
1526#ifdef MSDOSFS_DEBUG
1527 printf("msdosfs_readdir(): vp %p, uio %p, cred %p, eofflagp %p\n",
1528 ap->a_vp, uio, ap->a_cred, ap->a_eofflag);
1529#endif
1530
1531 /*
1532 * msdosfs_readdir() won't operate properly on regular files since
1533 * it does i/o only with the the filesystem vnode, and hence can
1533 * it does i/o only with the filesystem vnode, and hence can
1534 * retrieve the wrong block from the buffer cache for a plain file.
1535 * So, fail attempts to readdir() on a plain file.
1536 */
1537 if ((dep->de_Attributes & ATTR_DIRECTORY) == 0)
1538 return (ENOTDIR);
1539
1540 /*
1541 * To be safe, initialize dirbuf

--- 448 unchanged lines hidden ---
1534 * retrieve the wrong block from the buffer cache for a plain file.
1535 * So, fail attempts to readdir() on a plain file.
1536 */
1537 if ((dep->de_Attributes & ATTR_DIRECTORY) == 0)
1538 return (ENOTDIR);
1539
1540 /*
1541 * To be safe, initialize dirbuf

--- 448 unchanged lines hidden ---