9fans archive / 2001 / 03 / 284 / prev next From: Lyndon Nerenberg <lyndon@ort...> Subject: Re: [9fans] 9fs/9auth for FreeBSD Date: Wed, 28 Mar 2001 16:30:10 -0700 Okay, I think I see what's going on here. After reading ufs_readwrite.c it appears things are working as expected, and it's the expectations that are wrong. open with O_APPEND forces all writes to be appended. It sets program behaviour, and is doing the right thing. chflags with [US]F_APPEND sets a _policy_, that being that any write to the file must be an append operation. It doesn't force that behaviour, though, so you still need to open the file with O_APPEND. --lyndon