Hi,
On Thu, 11 Jun 2009 15:15:41 +0200, Karthik P S wrote:
> Hi 
> I am planning to install nilfs in my laptop (ubuntu/jaunty) . I was
> wondering is it possible to delete files and reclaim space from this
> file system.
>
> If my disk is 75 % full then if I delete a file that is located in
> the first 10 % of the file system how will this space will be
> available for user ? Will files move automatically to the blank
> space ?
>
> Sorry for asking this simple question 
> 
> Best regards,
> Karthik

In nilfs, a background garbage colletor detects unused disk blocks and
make them reusable.  The disk space is reclaimed per ``segment''.

Try lssu command.  It will show you the usage state of the partition like:

              SEGNUM        DATE     TIME STAT     NBLOCKS
                   2  2009-06-09 00:51:03  -d-        2048
                   3  2009-06-09 00:51:03  -d-        2048
                   4  2009-06-09 00:51:03  -d-        2048
                   5  2009-06-09 00:51:03  -d-        2048
                   6  2009-06-09 00:51:03  -d-        2048
                   7  2009-06-09 00:51:03  -d-        2048
                   8  2009-06-09 00:51:03  -d-        2048
                   9  2009-06-09 00:51:03  -d-        2048
                   ...

After 1 hour you have made a change on the partition, the garbage
collector will start.  The lssu output above will change with time.

Cheers,
Ryusuke Konishi

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

Reply via email to