Deleted Added
full compact
msdosfs_vnops.c (33751) msdosfs_vnops.c (33760)
1/* $Id: msdosfs_vnops.c,v 1.57 1998/02/22 15:09:50 ache Exp $ */
1/* $Id: msdosfs_vnops.c,v 1.58 1998/02/22 18:00:54 ache Exp $ */
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 *

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

1738 dirbuf.d_type = DT_DIR;
1739 } else {
1740 dirbuf.d_fileno = offset / sizeof(struct direntry);
1741 dirbuf.d_type = DT_REG;
1742 }
1743 if (chksum != winChksum(dentp->deName))
1744 dirbuf.d_namlen = dos2unixfn(dentp->deName,
1745 (u_char *)dirbuf.d_name,
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 *

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

1738 dirbuf.d_type = DT_DIR;
1739 } else {
1740 dirbuf.d_fileno = offset / sizeof(struct direntry);
1741 dirbuf.d_type = DT_REG;
1742 }
1743 if (chksum != winChksum(dentp->deName))
1744 dirbuf.d_namlen = dos2unixfn(dentp->deName,
1745 (u_char *)dirbuf.d_name,
1746 pmp->pm_flags & MSDOSFSMNT_SHORTNAME);
1746 pmp->pm_flags & MSDOSFSMNT_SHORTNAME,
1747 (pmp->pm_flags & MSDOSFSMNT_ULTABLE) ?
1748 pmp->pm_ul : NULL);
1747 else
1748 dirbuf.d_name[dirbuf.d_namlen] = 0;
1749 chksum = -1;
1750 dirbuf.d_reclen = GENERIC_DIRSIZ(&dirbuf);
1751 if (uio->uio_resid < dirbuf.d_reclen) {
1752 brelse(bp);
1753 goto out;
1754 }

--- 218 unchanged lines hidden ---
1749 else
1750 dirbuf.d_name[dirbuf.d_namlen] = 0;
1751 chksum = -1;
1752 dirbuf.d_reclen = GENERIC_DIRSIZ(&dirbuf);
1753 if (uio->uio_resid < dirbuf.d_reclen) {
1754 brelse(bp);
1755 goto out;
1756 }

--- 218 unchanged lines hidden ---