Re: [PATCH 0/3 V3] btrfs: a new tool to manage a btrfs filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 22, 2010 at 07:47:40PM +0100, Goffredo Baroncelli wrote:
> On Monday 22 February 2010, Mike Fedyk wrote:
> > On Sun, Feb 21, 2010 at 8:40 AM, Goffredo Baroncelli <kreijack@xxxxxxxxx> 
> wrote:
> > >       filesystem resize [+/-]<size>[gkm]|max <filesystem>
> > 
> > -filesystem resize [+/-]<size>[gkm]|max <filesystem>
> > +filesystem resize [+/-]<size>[gkm]|max <dev>
> > 
> > This command works on devices, not paths.
> 
> Are you sure ? To me it results (test and code inspection) to work on path.

The ioctl takes a path so that it knows which btrfs filesystem to
change.

> 
> > 
> > >              Resize a filesystem identified by <path>.  The <size> parame‐
> > 
> > -Resize a filesystem identified by <path>.  The <size> parame‐
> > +Resize a filesystem identified by <dev>.  The <size> parame‐
> > 
> > >              ter  specifies the new size of the filesystem.  If the prefix
> > >              + or - is present the size is increased or decreased  by  the
> > >              quantity  <size>.  If no units are specified, the unit of the
> > >              <size> parameter defaults  to  bytes.  Optionally,  the  size
> > >              parameter  may  be suffixed by one of the following the units
> > >              designators: 'K', 'M', or 'G', kilobytes, megabytes, or giga‐
> > >              bytes, respectively.
> > >
> > >              If  'max' is passed, the filesystem will occupy all available
> > >              space on the volume(s).
> > >
> > >              The resize command does not manipulate the size of underlying
> > >              partitions.   If you wish to enlarge/reduce a filesystem, you
> > 
> > -partitions.   If you wish to enlarge/reduce a filesystem, you
> > +partition.   If you wish to enlarge/reduce a filesystem, you
> ok
> 
> > >              must make sure you can expand/reduce the size of  the  parti‐
> > >              tion also.
> > 
> > -must make sure you can expand/reduce the size of  the  parti‐
> > -tion also.
> > +must make sure you can expand the partition before enlarging
> > +the filesystem and shrink the partition after reducing the size
> > +of the filesystem.
> ok
> 
> > >
> > >
> > >       filesystem show [<uuid>|<label>]
> > >              Show  the  btrfs  filesystem with some additional info. If no
> > >              UUID or label is passed, btrfs show info  of  all  the  btrfs
> > >              filesystem.
> > >
> > >
> > >       device balance|-b <path>
> > 
> > -device balance|-b <path>
> > +device balance <path>
> 
> ok
> 
> > Mike
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> 
> I will update my repo

Thanks!

-chris

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux