From owner-freebsd-hackers Tue Dec 4 3:59:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by hub.freebsd.org (Postfix) with ESMTP id 0538237B419 for ; Tue, 4 Dec 2001 03:59:17 -0800 (PST) Received: from news1.macomnet.ru (maxim@news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.3/8.11.3) with ESMTP id fB4BxE51454867; Tue, 4 Dec 2001 14:59:15 +0300 (MSK) Date: Tue, 4 Dec 2001 14:59:14 +0300 (MSK) From: Maxim Konovalov To: hackers@freebsd.org Cc: mckusick@mckusick.com Subject: MFC exlock+truncate bug^Wpatch Message-ID: <20011204145603.E35594-100000@news1.macomnet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [ CC: mckusick@mckusick.com because of silence in -hackers ] Hello, Any chances to MFC these changes before 4.5? The bug is very annoying. | mckusick 2000/07/03 20:34:11 PDT | | Modified files: | sys/dev/ccd ccd.c | sys/dev/vn vn.c | sys/kern kern_acct.c kern_ktrace.c kern_linker.c | kern_sig.c link_aout.c link_elf.c | vfs_syscalls.c vfs_vnops.c | sys/sys vnode.h | sys/ufs/ufs ufs_extattr.c ufs_quota.c | Log: | | Move the truncation code out of vn_open and into the open system | call after the acquisition of any advisory locks. This fix corrects | a case in which a process tries to open a file with a non-blocking | exclusive lock. Even if it fails to get the lock it would still | truncate the file even though its open failed. With this change, | the truncation is done only after the lock is successfully acquired. | | Obtained from: BSD/OS TIA, - -maxim -- Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message