From: UZAIR LAKHANI Subject: path_lookup function Date: Mon, 13 Feb 2006 06:30:31 -0800 (PST) Message-ID: <20060213143031.64418.qmail@web32510.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from web32510.mail.mud.yahoo.com ([68.142.207.220]:37022 "HELO web32510.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S932107AbWBMOaj (ORCPT ); Mon, 13 Feb 2006 09:30:39 -0500 To: linux-fsdevel@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello All, I want to find some information regarding the path_lookup function. I use this function for getting the superblock and mount-point dentry of a mounted file system. I use this function like struct nameidata var; path_lookup("/home", 0, &var) My file system which is actually a wrapper (in my case on ext3) mounts (using the function get_sb_single) and unmounts (using the function kill_anon_super) correctly but when I reboot and when the kernel tries to unmount the /home, I get the error device or resouce busy. Is there any other function which I must call after calling path_lookup function so that when I reboot the system, the /home can unmount cleanly. OR should I use some other functions to get the superblock and dentry of a mounted file system. Thanks, Uzair Lakhani __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com