Mike Fedyk
2010-Feb-22 05:33 UTC
Re: [PATCH 0/3 V3] btrfs: a new tool to manage a btrfs filesystem
On Sun, Feb 21, 2010 at 8:40 AM, Goffredo Baroncelli <kreijack@gmail.com> 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.> 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> 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.> > > 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> Mike -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Goffredo Baroncelli
2010-Feb-22 18:47 UTC
Re: [PATCH 0/3 V3] btrfs: a new tool to manage a btrfs filesystem
On Monday 22 February 2010, Mike Fedyk wrote:> On Sun, Feb 21, 2010 at 8:40 AM, Goffredo Baroncelli <kreijack@gmail.com>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.> > > 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, youok> > 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@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >I will update my repo BR Goffredo -- gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it> Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Chris Mason
2010-Feb-24 23:35 UTC
Re: [PATCH 0/3 V3] btrfs: a new tool to manage a btrfs filesystem
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@gmail.com> > 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@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > I will update my repoThanks! -chris -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Mike Fedyk
2010-Feb-25 03:25 UTC
Re: [PATCH 0/3 V3] btrfs: a new tool to manage a btrfs filesystem
On Wed, Feb 24, 2010 at 3:35 PM, Chris Mason <chris.mason@oracle.com> wrote:> 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@gmail.com> >> 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. >Then how does it know which device to shrink in a multi-device filesystem? -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html