Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 31 Jul 2001 14:38:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 31 Jul 2001 14:38:20 -0400 Received: from [63.209.4.196] ([63.209.4.196]:11 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 31 Jul 2001 14:38:09 -0400 Date: Tue, 31 Jul 2001 09:41:16 -0700 (PDT) From: Linus Torvalds To: Matti Aarnio cc: Subject: Re: ext3-2.4-0.9.4 In-Reply-To: <20010731032104.O2650@mea-ext.zmailer.org> 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 Original-Recipient: rfc822;linux-kernel-outgoing On Tue, 31 Jul 2001, Matti Aarnio wrote: > > > > Logical, isn't it? > > No. I don't see why I should opendir() a directory, fsync() > that handle, and closedir() the handle. I would definitely prefer: > > lsync(dirpath) Btw, you don't have to do opendir() - that just wastes time. Just do something like int lsync(char *path) { int err, fd; fd = open(path, 0); if (fd >= 0) { err = fsync(fd); close(fd); } return err; } and you're done. But it won't do the symlink thing... 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/