Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263493AbTEWARs (ORCPT ); Thu, 22 May 2003 20:17:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263496AbTEWARs (ORCPT ); Thu, 22 May 2003 20:17:48 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:11534 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id S263493AbTEWARn (ORCPT ); Thu, 22 May 2003 20:17:43 -0400 Date: Thu, 22 May 2003 17:30:33 -0700 (PDT) From: Linus Torvalds To: Andries.Brouwer@cwi.nl cc: akpm@digeo.com, Subject: Re: [patch?] truncate and timestamps In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 725 Lines: 19 On Fri, 23 May 2003 Andries.Brouwer@cwi.nl wrote: > > On the other hand, my question was really a different one: > do we want to follow POSIX, also in the silly requirement > that truncate only sets mtime when the size changes, while > O_TRUNC and ftruncate always set mtime. Does POSIX really say that? What a crock. If so, we should probably add the ATTR_xxx mask as an argument to do_truncate() itself, and then make sure that may_open() sets the ATTR_MTIME bit. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/