Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 27 Mar 2003 14:03:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 27 Mar 2003 14:03:56 -0500 Received: from air-2.osdl.org ([65.172.181.6]:27310 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id ; Thu, 27 Mar 2003 14:03:54 -0500 Date: Thu, 27 Mar 2003 12:17:09 -0600 (CST) From: Patrick Mochel X-X-Sender: To: Greg KH cc: Jan Dittmer , Mark Studebaker , , KML , Dominik Brodowski , Subject: Re: lm sensors sysfs file structure In-Reply-To: <20030327185222.GI32667@kroah.com> 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: 720 Lines: 21 > > Btw, is it indended behaviour of sysfs, that after writing to a file, > > the size is zero? > > Hm, don't know about that, I haven't seen that before. If you cat the > file after writing it, does the file size change? It's a known problem that I haven't been able to track down. The file size is hardwired to PAGE_SIZE when it is created. For some reason, it's reset to 0 after it's opened. I haven't had a chance to track down why, or how to reset it.. -pat - 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/