msdosfs_denode.c (bad3d41d83ddbfd161c71efe52c28fc844ae19d1) | msdosfs_denode.c (f1d19042b082d95f07a0027e596ba2405aa8a9a5) |
---|---|
1/* $Id: msdosfs_denode.c,v 1.41 1998/11/10 09:16:29 peter Exp $ */ | 1/* $Id: msdosfs_denode.c,v 1.42 1998/11/21 00:20:24 dt Exp $ */ |
2/* $NetBSD: msdosfs_denode.c,v 1.28 1998/02/10 14:10:00 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 * --- 402 unchanged lines hidden (view full) --- 412 int allerror; 413 u_long eofentry; 414 u_long chaintofree; 415 daddr_t bn; 416 int boff; 417 int isadir = dep->de_Attributes & ATTR_DIRECTORY; 418 struct buf *bp; 419 struct msdosfsmount *pmp = dep->de_pmp; | 2/* $NetBSD: msdosfs_denode.c,v 1.28 1998/02/10 14:10:00 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 * --- 402 unchanged lines hidden (view full) --- 412 int allerror; 413 u_long eofentry; 414 u_long chaintofree; 415 daddr_t bn; 416 int boff; 417 int isadir = dep->de_Attributes & ATTR_DIRECTORY; 418 struct buf *bp; 419 struct msdosfsmount *pmp = dep->de_pmp; |
420 struct timespec ts; | |
421 422#ifdef MSDOSFS_DEBUG 423 printf("detrunc(): file %s, length %lu, flags %x\n", dep->de_Name, length, flags); 424#endif 425 426 /* 427 * Disallow attempts to truncate the root directory since it is of 428 * fixed size. That's just the way dos filesystems are. We use --- 126 unchanged lines hidden (view full) --- 555deextend(dep, length, cred) 556 struct denode *dep; 557 u_long length; 558 struct ucred *cred; 559{ 560 struct msdosfsmount *pmp = dep->de_pmp; 561 u_long count; 562 int error; | 420 421#ifdef MSDOSFS_DEBUG 422 printf("detrunc(): file %s, length %lu, flags %x\n", dep->de_Name, length, flags); 423#endif 424 425 /* 426 * Disallow attempts to truncate the root directory since it is of 427 * fixed size. That's just the way dos filesystems are. We use --- 126 unchanged lines hidden (view full) --- 554deextend(dep, length, cred) 555 struct denode *dep; 556 u_long length; 557 struct ucred *cred; 558{ 559 struct msdosfsmount *pmp = dep->de_pmp; 560 u_long count; 561 int error; |
563 struct timespec ts; | |
564 565 /* 566 * The root of a DOS filesystem cannot be extended. 567 */ 568 if ((DETOV(dep)->v_flag & VROOT) && !FAT32(pmp)) 569 return (EINVAL); 570 571 /* --- 89 unchanged lines hidden (view full) --- 661 struct vnode *a_vp; 662 struct proc *a_p; 663 } */ *ap; 664{ 665 struct vnode *vp = ap->a_vp; 666 struct denode *dep = VTODE(vp); 667 struct proc *p = ap->a_p; 668 int error = 0; | 562 563 /* 564 * The root of a DOS filesystem cannot be extended. 565 */ 566 if ((DETOV(dep)->v_flag & VROOT) && !FAT32(pmp)) 567 return (EINVAL); 568 569 /* --- 89 unchanged lines hidden (view full) --- 659 struct vnode *a_vp; 660 struct proc *a_p; 661 } */ *ap; 662{ 663 struct vnode *vp = ap->a_vp; 664 struct denode *dep = VTODE(vp); 665 struct proc *p = ap->a_p; 666 int error = 0; |
669 struct timespec ts; | |
670 671#ifdef MSDOSFS_DEBUG 672 printf("msdosfs_inactive(): dep %p, de_Name[0] %x\n", dep, dep->de_Name[0]); 673#endif 674 675 if (prtactive && vp->v_usecount != 0) 676 vprint("msdosfs_inactive(): pushing active", vp); 677 --- 36 unchanged lines hidden --- | 667 668#ifdef MSDOSFS_DEBUG 669 printf("msdosfs_inactive(): dep %p, de_Name[0] %x\n", dep, dep->de_Name[0]); 670#endif 671 672 if (prtactive && vp->v_usecount != 0) 673 vprint("msdosfs_inactive(): pushing active", vp); 674 --- 36 unchanged lines hidden --- |