Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2001 14:59:14 +0300 (MSK)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        hackers@freebsd.org
Cc:        mckusick@mckusick.com
Subject:   MFC exlock+truncate bug^Wpatch
Message-ID:  <20011204145603.E35594-100000@news1.macomnet.ru>

next in thread | raw e-mail | index | archive | help

[ 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204145603.E35594-100000>