RE: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-23 Thread Jaegeuk Kim
> On Wed, Oct 24, 2012 at 08:18:36AM +0900, Jaegeuk Kim wrote:
> > > On Tue, Oct 23, 2012 at 11:26:59AM -0700, Greg KH wrote:
> > > > On Tue, Oct 23, 2012 at 11:21:53AM +0900, Jaegeuk Kim wrote:
> > > > > mkfs.f2fs
> > > > > =
> > > > >
> > > > > The file system formatting tool, "mkfs.f2fs", is available from the 
> > > > > following
> > > > > download page:
> > > > > http://sourceforge.net/projects/f2fs-tools/
> > > >
> > > > Is there a git tree of this tool somewhere, so I don't have to
> > > > constantly suffer the sf.net download interface every time I want to get
> > > > the latest version?
> > >
> > > Oh, and where do we report bugs for this tool?  I just formatted a usb
> > > stick with the mkfs.f2fs program, and it did not fully erase the old
> > > filesystem that was on there (iso9660), so when I mounted it, it did so
> > > in iso9660 mode, not f2fs mode.
> > >
> >
> > Any suggestion for reporting bugs?
> > Maybe via a mailing list?
> 
> Mailing list is fine.
> 
> > What version did you use? (1.1.0 is correct.)
> 
> I used 1.1.0
> 
> > The reason we found was due to the 0'th block, so we fixed that in v1.1.0.
> 
> Hm, that's what I used.  I zeroed out the whole usb disk and tried again
> and it worked then, I was trying to debug the kernel changes, not the
> userspace tool, so I didn't spend much time on it :)
> 
> But, if you do get a public git tree up, I will at the very least,
> provide a patch to handle '-h' properly for mkfs, that should work...
> 

Ok, thank you very much.

> thanks,
> 
> greg k-h


---
Jaegeuk Kim
Samsung


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-23 Thread Jaegeuk Kim
> -Original Message-
> From: 'Greg KH' [mailto:gre...@linuxfoundation.org]
> Sent: Wednesday, October 24, 2012 12:01 PM
> To: Jaegeuk Kim
> Cc: linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; 
> v...@zeniv.linux.org.uk;
> a...@arndb.de; ty...@mit.edu; chur@samsung.com; cm224@samsung.com; 
> jooyoung.hw...@samsung.com
> Subject: Re: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system
> Importance: High
> 
> On Wed, Oct 24, 2012 at 08:14:44AM +0900, Jaegeuk Kim wrote:
> > > On Tue, Oct 23, 2012 at 11:21:53AM +0900, Jaegeuk Kim wrote:
> > > > mkfs.f2fs
> > > > =
> > > >
> > > > The file system formatting tool, "mkfs.f2fs", is available from the 
> > > > following
> > > > download page:  http://sourceforge.net/projects/f2fs-tools/
> > >
> > > Is there a git tree of this tool somewhere, so I don't have to
> > > constantly suffer the sf.net download interface every time I want to get
> > > the latest version?
> >
> > I'd love to do like that.
> > I've managed a git tree for tools in house only, due to the company secret.
> > Would you suggest something for this?
> > I can do managing the tree outside though.
> 
> git.kernel.org can work, so can github, and also, you have a sf.net
> project, why not use the git tree it provides you?  Right now it is
> empty.
> 

Ok, I'll make a tree in sf.net. :)

> thanks,
> 
> greg k-h


---
Jaegeuk Kim
Samsung



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-23 Thread 'Greg KH'
On Wed, Oct 24, 2012 at 08:18:36AM +0900, Jaegeuk Kim wrote:
> > On Tue, Oct 23, 2012 at 11:26:59AM -0700, Greg KH wrote:
> > > On Tue, Oct 23, 2012 at 11:21:53AM +0900, Jaegeuk Kim wrote:
> > > > mkfs.f2fs
> > > > =
> > > >
> > > > The file system formatting tool, "mkfs.f2fs", is available from the 
> > > > following
> > > > download page:  http://sourceforge.net/projects/f2fs-tools/
> > >
> > > Is there a git tree of this tool somewhere, so I don't have to
> > > constantly suffer the sf.net download interface every time I want to get
> > > the latest version?
> > 
> > Oh, and where do we report bugs for this tool?  I just formatted a usb
> > stick with the mkfs.f2fs program, and it did not fully erase the old
> > filesystem that was on there (iso9660), so when I mounted it, it did so
> > in iso9660 mode, not f2fs mode.
> > 
> 
> Any suggestion for reporting bugs?
> Maybe via a mailing list?

Mailing list is fine.

> What version did you use? (1.1.0 is correct.)

I used 1.1.0

> The reason we found was due to the 0'th block, so we fixed that in v1.1.0.

Hm, that's what I used.  I zeroed out the whole usb disk and tried again
and it worked then, I was trying to debug the kernel changes, not the
userspace tool, so I didn't spend much time on it :)

But, if you do get a public git tree up, I will at the very least,
provide a patch to handle '-h' properly for mkfs, that should work...

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-23 Thread 'Greg KH'
On Wed, Oct 24, 2012 at 08:14:44AM +0900, Jaegeuk Kim wrote:
> > On Tue, Oct 23, 2012 at 11:21:53AM +0900, Jaegeuk Kim wrote:
> > > mkfs.f2fs
> > > =
> > >
> > > The file system formatting tool, "mkfs.f2fs", is available from the 
> > > following
> > > download page:http://sourceforge.net/projects/f2fs-tools/
> > 
> > Is there a git tree of this tool somewhere, so I don't have to
> > constantly suffer the sf.net download interface every time I want to get
> > the latest version?
> 
> I'd love to do like that.
> I've managed a git tree for tools in house only, due to the company secret.
> Would you suggest something for this?
> I can do managing the tree outside though.

git.kernel.org can work, so can github, and also, you have a sf.net
project, why not use the git tree it provides you?  Right now it is
empty.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-23 Thread Jaegeuk Kim
> On Tue, Oct 23, 2012 at 11:26:59AM -0700, Greg KH wrote:
> > On Tue, Oct 23, 2012 at 11:21:53AM +0900, Jaegeuk Kim wrote:
> > > mkfs.f2fs
> > > =
> > >
> > > The file system formatting tool, "mkfs.f2fs", is available from the 
> > > following
> > > download page:http://sourceforge.net/projects/f2fs-tools/
> >
> > Is there a git tree of this tool somewhere, so I don't have to
> > constantly suffer the sf.net download interface every time I want to get
> > the latest version?
> 
> Oh, and where do we report bugs for this tool?  I just formatted a usb
> stick with the mkfs.f2fs program, and it did not fully erase the old
> filesystem that was on there (iso9660), so when I mounted it, it did so
> in iso9660 mode, not f2fs mode.
> 

Any suggestion for reporting bugs?
Maybe via a mailing list?
What version did you use? (1.1.0 is correct.)
The reason we found was due to the 0'th block, so we fixed that in v1.1.0.
Thanks,

> thanks,
> 
> greg k-h


---
Jaegeuk Kim
Samsung

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-23 Thread Jaegeuk Kim
> On Tue, Oct 23, 2012 at 11:21:53AM +0900, Jaegeuk Kim wrote:
> > mkfs.f2fs
> > =
> >
> > The file system formatting tool, "mkfs.f2fs", is available from the 
> > following
> > download page:  http://sourceforge.net/projects/f2fs-tools/
> 
> Is there a git tree of this tool somewhere, so I don't have to
> constantly suffer the sf.net download interface every time I want to get
> the latest version?

I'd love to do like that.
I've managed a git tree for tools in house only, due to the company secret.
Would you suggest something for this?
I can do managing the tree outside though.

> 
> thanks,
> 
> greg k-h

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-23 Thread Greg KH
On Tue, Oct 23, 2012 at 11:26:59AM -0700, Greg KH wrote:
> On Tue, Oct 23, 2012 at 11:21:53AM +0900, Jaegeuk Kim wrote:
> > mkfs.f2fs
> > =
> > 
> > The file system formatting tool, "mkfs.f2fs", is available from the 
> > following
> > download page:  http://sourceforge.net/projects/f2fs-tools/
> 
> Is there a git tree of this tool somewhere, so I don't have to
> constantly suffer the sf.net download interface every time I want to get
> the latest version?

Oh, and where do we report bugs for this tool?  I just formatted a usb
stick with the mkfs.f2fs program, and it did not fully erase the old
filesystem that was on there (iso9660), so when I mounted it, it did so
in iso9660 mode, not f2fs mode.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-23 Thread Greg KH
On Tue, Oct 23, 2012 at 11:21:53AM +0900, Jaegeuk Kim wrote:
> mkfs.f2fs
> =
> 
> The file system formatting tool, "mkfs.f2fs", is available from the following
> download page:http://sourceforge.net/projects/f2fs-tools/

Is there a git tree of this tool somewhere, so I don't have to
constantly suffer the sf.net download interface every time I want to get
the latest version?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-22 Thread Jaegeuk Kim
Change log from v1:

 o Apply the recent user namespace changes [Eric]
 o Remove unnecessary condition check [Al]
 o Fix wrong description [Stefan]
 o Fix f2fs document [Randy]
 o Enlarge the volume label length to 256 unicodes [Martin]
 o Support time resolution to nano scale [Boaz]
 o Fix the wrong use of endian conversion [David]
 o Fix the use of mutex and spinlocks [David]
 o Remove the use of __GFP_NOFAIL, etc [Neil]
 o Change the flow for readability [Neil]
 o Reduce the lock contention in CP [Neil]
 o Support multiples of section size [Arnd]
 o Support configurable extension list [Arnd]
 o Support configurable active log numbers [Arnd]

[Future works]
 o Aware of file access pattern
 o Erase block indirect
 o Sub-page write avoidance
 o In-line data
 o Xattr optimization/in-line xattrs

I really appreciate the valuable comments from all of you in community.

Note)
Due to the change of on-disk layout, please download f2fs-tools-1.1.0.tar.gz.



This is a new patch set for the f2fs file system.

What is F2FS?
=

NAND flash memory-based storage devices, such as SSD, eMMC, and SD cards, have
been widely being used for ranging from mobile to server systems. Since they are
known to have different characteristics from the conventional rotational disks,
a file system, an upper layer to the storage device, should adapt to the changes
from the sketch.

F2FS is a new file system carefully designed for the NAND flash memory-based 
storage
devices. We chose a log structure file system approach, but we tried to adapt it
to the new form of storage. Also we remedy some known issues of the very old log
structured file system, such as snowball effect of wandering tree and high 
cleaning
overhead.

Because a NAND-based storage device shows different characteristics according to
its internal geometry or flash memory management scheme aka FTL, we add various
parameters not only for configuring on-disk layout, but also for selecting 
allocation
and cleaning algorithms.

Patch set
=

The patch #1 adds a document to Documentation/filesystems/.
The patch #2 adds a header file of on-disk layout to include/linux/.
The patches #3-#15 adds f2fs source files to fs/f2fs/.
The Last patch, patch #16, updates Makefile and Kconfig.

mkfs.f2fs
=

The file system formatting tool, "mkfs.f2fs", is available from the following
download page:  http://sourceforge.net/projects/f2fs-tools/

Usage
=

If you'd like to experience f2fs, simply:
 # mkfs.f2fs /dev/sdb1
 # mount -t f2fs /dev/sdb1 /mnt/f2fs

Short log
=

Jaegeuk Kim (16):
  f2fs: add document
  f2fs: add on-disk layout
  f2fs: add superblock and major in-memory structure
  f2fs: add super block operations
  f2fs: add checkpoint operations
  f2fs: add node operations
  f2fs: add segment operations
  f2fs: add file operations
  f2fs: add address space operations for data
  f2fs: add core inode operations
  f2fs: add inode operations for special inodes
  f2fs: add core directory operations
  f2fs: add xattr and acl functionalities
  f2fs: add garbage collection functions
  f2fs: add recovery routines for roll-forward
  f2fs: update Kconfig and Makefile

 Documentation/filesystems/00-INDEX |2 +
 Documentation/filesystems/f2fs.txt |  404 
 fs/Kconfig |1 +
 fs/Makefile|1 +
 fs/f2fs/Kconfig|   55 ++
 fs/f2fs/Makefile   |6 +
 fs/f2fs/acl.c  |  465 ++
 fs/f2fs/acl.h  |   57 ++
 fs/f2fs/checkpoint.c   |  795 
 fs/f2fs/data.c |  701 ++
 fs/f2fs/dir.c  |  657 +
 fs/f2fs/f2fs.h |  982 
 fs/f2fs/file.c |  640 +
 fs/f2fs/gc.c   | 1139 +++
 fs/f2fs/gc.h   |  203 
 fs/f2fs/hash.c |   98 ++
 fs/f2fs/inode.c|  262 ++
 fs/f2fs/namei.c|  494 ++
 fs/f2fs/node.c | 1782 +++
 fs/f2fs/node.h |  330 +++
 fs/f2fs/recovery.c |  375 
 fs/f2fs/segment.c  | 1795 
 fs/f2fs/segment.h  |  594 
 fs/f2fs/super.c|  590 
 fs/f2fs/xattr.c|  389 
 fs/f2fs/xattr.h|  145 +++
 include/linux/f2fs_fs.h|  362 
 27 files changed, 13324 insertions(+)
 create mode 100644 Documentation/filesystems/f2fs.txt
 create mode 100644 fs/f2fs/Kconfig
 create mode 100644 fs/f2fs/Makefile
 create mode 100644 fs/f2fs/acl.c
 create mode 100644 fs/f2fs/acl.h
 create mode 100644 fs/f2fs/checkpoint.c