From owner-freebsd-fs@FreeBSD.ORG Sat Feb 25 11:44:44 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC18016A420 for ; Sat, 25 Feb 2006 11:44:44 +0000 (GMT) (envelope-from rachu_sm@yahoo.com) Received: from web34401.mail.mud.yahoo.com (web34401.mail.mud.yahoo.com [66.163.178.150]) by mx1.FreeBSD.org (Postfix) with SMTP id 1C42E43D48 for ; Sat, 25 Feb 2006 11:44:44 +0000 (GMT) (envelope-from rachu_sm@yahoo.com) Received: (qmail 93337 invoked by uid 60001); 25 Feb 2006 11:44:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=BHSJFMV6Q361zpIqPrc3mdZ2sQ00L6SNKD8dbVw/ZqHeR7BhK+NEAa6JJ88bWnve6jvWgiSXHH5eOtrig301z8SLQmF1fFTVxirR3tYiYva4IIe2AXB53mYZo95bD/bEkx5MCf/60V9+Zn3Sa3Ie2GYLe4FnqYmToDj/gWm/hf0= ; Message-ID: <20060225114443.93335.qmail@web34401.mail.mud.yahoo.com> Received: from [61.17.14.70] by web34401.mail.mud.yahoo.com via HTTP; Sat, 25 Feb 2006 03:44:43 PST Date: Sat, 25 Feb 2006 03:44:43 -0800 (PST) From: rachana maniyar To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1018811139-1140867883=:92114" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: queries providing write support to ufs2 in linux X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 11:44:44 -0000 --0-1018811139-1140867883=:92114 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit --------------------------------- Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. --0-1018811139-1140867883=:92114 Content-Type: message/rfc822 Content-Transfer-Encoding: 8bit Received: from [61.17.14.70] by web34401.mail.mud.yahoo.com via HTTP; Sat, 25 Feb 2006 03:40:30 PST Date: Sat, 25 Feb 2006 03:40:30 -0800 (PST) From: rachana maniyar Subject: queries providing write support to ufs2 in linux To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2108657299-1140867630=:89855" Content-Transfer-Encoding: 8bit Content-Length: 1423 --0-2108657299-1140867630=:89855 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hello, Currently I am trying to give write support to the UFS2 file system in linux 2.6.10 which is a native file system for FreeBSD operating system.Right now the UFS2 has just read-only support in linux. The current status is that i have been able to create the directories successfully in linux partition with UFS2 mounted on it without the freebsd partition getting corrupted. So whenever i try to open a file or write sm data into it,the process terminates out giving segmentation fault n this fault is sm divide by 0 error. I have been able to trace out this error also,where does it come from.its the following macro which uses s_spc which has 0 value right at the time of file system getting registered.n hence the divide by 0 error occurs. /* linux-2.6.10/include/linux/ufs_fs.h */ #define ufs_cbtocylno(bno) \ 266 ((bno) * uspi->s_nspf / uspi->s_spc) so here the uspi->s_spc which is sectors per cylinder has value zero.. Also one thing i noticed while tracing down all the parameters of the superblock and cylinder group is that most of them have zero values assigned right from the start when the file system is mounted on linux. so wht can be done in regards to this problem?? n the other thing it that while opening a file or writing data into a file wht care is to be taken or wht is the procedure?? Well i would also like to know wht is the exact disk layout of the UFS2 file system..?? if anyone can give answers to the above questions ,it will be really helpful for me.. thanking you in advance.. Rachana. -- The only thing Constant is Change !!! So try to be constant :-) \n\n",0] ); D(["ce"]); //--> --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. --0-2108657299-1140867630=:89855 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" hello, Currently I am trying to give write support to the UFS2 file system in linux 2.6.10 which is a native file system for FreeBSD operating system.Right now the UFS2 has just read-only support in linux. The current status is that i have been able to create the directories successfully in linux partition with UFS2 mounted on it without the freebsd partition getting corrupted. So whenever i try to open a file or write sm data into it,the process terminates out giving segmentation fault n this fault is sm divide by 0 error. I have been able to trace out this error also,where does it come from.its the following macro which uses s_spc which has 0 value right at the time of file system getting registered.n hence the divide by 0 error occurs. /* linux-2.6.10/include/linux/ufs_fs.h */ #define ufs_cbtocylno(bno) \ 266 ((bno) * uspi->s_nsp f / uspi->s_spc) so here the uspi->s_spc which is sectors per cylinder has value zero.. Also one thing i noticed while tracing down all the parameters of the superblock and cylinder group is that most of them have zero values assigned right from the start when the file system is mounted on linux. so wht can be done in regards to this problem?? n the other thing it that while opening a file or writing data into a file wht care is to be taken or wht is the procedure?? Well i would also like to know wht is the exact disk layout of the UFS2 file system..?? if anyone can give answers to the above questions ,it will be really helpful for me.. thanking you in advance.. Rachana. _________________________________________________________________ Yahoo! Mail Bring photos to life! [1]New PhotoMail makes sharing a breeze. References 1. http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com --0-2108657299-1140867630=:89855-- --0-1018811139-1140867883=:92114--