public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [2.6]  UFS2 Read Only Patch
@ 2004-02-18  9:24 Niraj Kumar
  2004-02-18  9:44 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Niraj Kumar @ 2004-02-18  9:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

Andrew,

Please  apply this patch .
They provide the bare minimum read-only support for
ufs2 variant (from FreeBSD 5.x ) of the UFS filesystem .

The patch for 2.6.3 is here :
http://ufs-linux.sourceforge.net/ufs2/2.6.3/ufs2-read-only-p1.txt
http://ufs-linux.sourceforge.net/ufs2/2.6.3/ufs2-read-only-p2.txt

Thanks
Niraj


 >Hi ,
 >
 >I am trying to produce some patches to be able to
 >support UFS2 (of FreeBSD 5.x )  filesystem.
 >
 >The work-in-progress patches are available from
 >http://ufs-linux.sourceforge.net/ufs2/p1.txt
 > http://ufs-linux.sourceforge.net/ufs2/p2.txt
 >
 >Currently , these provides the bare minimum  ufs2
 >support and that also for Read-Only .
 >
 >This is just a snapshot so several things simply may not work.
 >But atleast I was able to mount my ufs2 partition
 >(from a FreeBSD 5.2 install ) and read files.
 >
 >Some testing will be good on them, though.
 >
 >Niraj



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [2.6]  UFS2 Read Only Patch
  2004-02-18  9:24 [PATCH] [2.6] UFS2 Read Only Patch Niraj Kumar
@ 2004-02-18  9:44 ` Andrew Morton
  2004-02-18 10:37   ` Niraj Kumar
  2004-02-20  6:35   ` Niraj Kumar
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Morton @ 2004-02-18  9:44 UTC (permalink / raw)
  To: Niraj Kumar; +Cc: linux-kernel

Niraj Kumar <niraj17@iitbombay.org> wrote:
>
> lease  apply this patch .
>  They provide the bare minimum read-only support for
>  ufs2 variant (from FreeBSD 5.x ) of the UFS filesystem .
> 
>  The patch for 2.6.3 is here :
>  http://ufs-linux.sourceforge.net/ufs2/2.6.3/ufs2-read-only-p1.txt
>  http://ufs-linux.sourceforge.net/ufs2/2.6.3/ufs2-read-only-p2.txt

ooh, I see you have a mkfs.ufs there.  Does it support UFS1 as well?

Does current UFS support little-endian machines?  If so, has this code been
tested on a little-endian host?  The code _looks_ OK, but one does need to
test...

Has the patched filesystem been regression tested against a UFS1 filesystem?


The patches which you have there are a bit of a disaster coding-style wise.

- Use hard tabs everywhere, not eight-spaces.

- No space before terminating semicolons

-

+        if ( (flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2)
+        {
+	     uspi->s_u2_size  = fs64_to_cpu(sb, usb->fs_u11.fs_u2.fs_size);

  should be

	if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) {

  etcetera.   See Documentation/CodingStyle.


Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [2.6]  UFS2 Read Only Patch
  2004-02-18  9:44 ` Andrew Morton
@ 2004-02-18 10:37   ` Niraj Kumar
  2004-02-20  6:35   ` Niraj Kumar
  1 sibling, 0 replies; 4+ messages in thread
From: Niraj Kumar @ 2004-02-18 10:37 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

Andrew,
Thanks for the comments.

>> The patch for 2.6.3 is here :
>> http://ufs-linux.sourceforge.net/ufs2/2.6.3/ufs2-read-only-p1.txt
>> http://ufs-linux.sourceforge.net/ufs2/2.6.3/ufs2-read-only-p2.txt
>>    
>>
>
>ooh, I see you have a mkfs.ufs there.  Does it support UFS1 as well?
>
Yeah , it does support UFS1 as well ....

>Does current UFS support little-endian machines?  If so, has this code been
>tested on a little-endian host?  The code _looks_ OK, but one does need to
>test...
>
This patch has been somewhat tested on my "Pentium 4"  machine (running 
RHEL 3).
Other than that , 1-2 persons on freebsd list has also tried this.

>Has the patched filesystem been regression tested against a UFS1 filesystem?
>
Only some most basic (mount , read ) functionality has been cheked to be 
working.

>
>
>The patches which you have there are a bit of a disaster coding-style wise.
>
>- Use hard tabs everywhere, not eight-spaces.
>
>- No space before terminating semicolons
>
>-
>
>+        if ( (flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2)
>+        {
>+	     uspi->s_u2_size  = fs64_to_cpu(sb, usb->fs_u11.fs_u2.fs_size);
>
>  should be
>
>	if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) {
>
>  etcetera.   See Documentation/CodingStyle.
>
Well .... I will prepare a modifed patch and send that again .

>Thanks.
>
All-in-all , the problem is that this
was not getting enough testing so  I thought that unless it is included
in  , say mm series, it will not get tested.  That's why I send it to you .
But anyway , wait for the modifed version (which will take care of 
Documentation/CodingStyle) .

Niraj



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [2.6]  UFS2 Read Only Patch
  2004-02-18  9:44 ` Andrew Morton
  2004-02-18 10:37   ` Niraj Kumar
@ 2004-02-20  6:35   ` Niraj Kumar
  1 sibling, 0 replies; 4+ messages in thread
From: Niraj Kumar @ 2004-02-20  6:35 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

Andrew,

I have updated the patch files.

Let me know if you have any more comments.

Niraj

Andrew Morton wrote:

>Niraj Kumar <niraj17@iitbombay.org> wrote:
>  
>
>The patches which you have there are a bit of a disaster coding-style wise.
>
>- Use hard tabs everywhere, not eight-spaces.
>
>- No space before terminating semicolons
>
>-
>
>+        if ( (flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2)
>+        {
>+	     uspi->s_u2_size  = fs64_to_cpu(sb, usb->fs_u11.fs_u2.fs_size);
>
>  should be
>
>	if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) {
>
>  etcetera.   See Documentation/CodingStyle.
>
>
>Thanks.
>  
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-20  6:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18  9:24 [PATCH] [2.6] UFS2 Read Only Patch Niraj Kumar
2004-02-18  9:44 ` Andrew Morton
2004-02-18 10:37   ` Niraj Kumar
2004-02-20  6:35   ` Niraj Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox