From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles P. Wright" Subject: Odd llseek semantics on directories Date: Mon, 22 Aug 2005 11:01:44 -0400 Message-ID: <1124722904.25421.11.camel@polarbear.fsl.cs.sunysb.edu> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com To: linux-fsdevel@vger.kernel.org, reiserfs-list@namesys.com List-Id: linux-fsdevel.vger.kernel.org Hello, I've noticed that Reiser4's behavior deviates from other file systems when seeking with directories. After reading a directory, if you run vfs_lseek(dir, 0, SEEK_CUR), then -ENOENT is returned. This means that you can't pass the identifier back to vfs_lseek with SEEK_SET. Charles