search for: btrfsctl

Displaying 20 results from an estimated 36 matches for "btrfsctl".

2009 Jan 13
0
[btrfs-progs 2/4] Add man/btrfsctl.8.in
Add man/btrfsctl.8.in Signed-off-by: Goldwyn Rodrigues <rgoldwyn@gmail.com> --- man/btrfsctl.8.in | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) create mode 100644 man/btrfsctl.8.in diff --git a/man/btrfsctl.8.in b/man/btrfsc...
2008 Jul 18
4
btrfsctl -A not returning useful information
[root@btrfs progs-unstable]# btrfsctl -A /dev/sdb ioctl returns 0 [root@btrfs progs-unstable]# btrfsctl -A /dev/sdc ioctl returns 0 /dev/sdb has a btrfs, while /dev/sdc is blank. What''s that output supposed to mean ? Is it a bug ? -- To unsubscribe from this list: send the line "unsubscri...
2009 Aug 26
0
btrfsctl -a doesn't find my btrfs
If I scan I device with a btrfs with -A, it finds it: (~/btrfs-progs-unstable) sudo ./btrfsctl -A /dev/sda5 operation complete Btrfs v0.19-1-g4f89b6e-dirty But when I do a "scan all devices", it can''t find my btrfs on /dev/sda5: (~/btrfs-progs-unstable) sudo ./btrfsctl -a Scanning for Btrfs filesystems failed to read /dev/sr0 I''m...
2009 Nov 03
2
[PATCH]] Btrfs: fix destroy snapshot to get the right parent dentry
In snapshot destroy the dentry used for parent was the snapshot dentry itself. Remove d_invalidate since always return EBUSY, making possible to remove a snapshot using the btrfsctl -D option. Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com> --- fs/btrfs/ioctl.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index cdbb054..fe6ac9a 100644 --- a/fs/btrfs/ioct...
2009 Jan 13
0
[btrfs-progs 3/4] Add man/btrfsck.8.in and Makefile for man pages
...#47;Makefile new file mode 100644 index 0000000..2665dd1 --- /dev/null +++ b/man/Makefile @@ -0,0 +1,27 @@ +GZIP=gzip +INSTALL= install + +prefix ?= /usr/local +bindir = $(prefix)/bin +mandir = $(prefix)/man +man8dir = $(mandir)/man8 + +MANPAGES = mkfs.btrfs.8.gz btrfsctl.8.gz btrfsck.8.gz + +all: $(MANPAGES) + +mkfs.btrfs.8.gz: mkfs.btrfs.8.in + $(GZIP) -n -c mkfs.btrfs.8.in > mkfs.btrfs.8.gz + +btrfsctl.8.gz: btrfsctl.8.in + $(GZIP) -n -c btrfsctl.8.in > btrfsctl.8.gz + +btrfsck.8.gz: btrfsck.8.in + $(GZIP) -n -c btrfsck.8.in > btrfsck.8.gz + +clean : + r...
2011 Jan 12
2
'ioctl:: Inappropriate ioctl for device' when trying to shrink partition
E.g. btrfsctl -r -4000m /dev/sda5 results in: ioctl:: Inappropriate ioctl for device Distribution: Ubuntu 10.10 Kernel: 2.6.35-22-generic According to the Synaptic Package manager, the version of btrfs-tools is 0.19+20100601-3 Other information that can be of interest: - I started Ubuntu on a live CD...
2010 Apr 16
2
[RFC] btrfs, udev and btrfs
...multi-volume btrfs filesystem. Btrfs has the capability to span a file-system on multiple device. In order to do that, the involved devices have to be "registered" in the kernel. In order to do that there are two options: # btrfs device scan <device> (or the old tool btrfsctl -A <device>) or # btrfs device scan (or the old tool btrfsctl -a) The first one scan the device <device> in order to find a btrfs volume. If this exists, it is registered in the kernel. The second options scan all the block devices (even floppy, cdrom...) looking for a...
2008 Jan 15
2
[ANNOUNCE] Btrfs v0.10 available
...ptions to disable data COW and checksumming * Barrier support for sata and IDE drives [ Resizing ] In order to demonstrate and test the back references, I've added an online resizer, which can both grow and shrink the filesystem: mount -t btrfs /dev/xxx /mnt # add 2GB to the FS btrfsctl -r +2g /mnt # shrink the FS by 4GB btrfsctl -r -4g /mnt # Explicitly set the FS size btrfsctl -r 20g /mnt btrfsctl -r max /mnt [ Conversion from Ext3 ] This is an offline, in place, conversion program written by Yan Zheng. It has been through basic testing, but should not be tr...
2008 Jan 15
2
[ANNOUNCE] Btrfs v0.10 available
...ptions to disable data COW and checksumming * Barrier support for sata and IDE drives [ Resizing ] In order to demonstrate and test the back references, I've added an online resizer, which can both grow and shrink the filesystem: mount -t btrfs /dev/xxx /mnt # add 2GB to the FS btrfsctl -r +2g /mnt # shrink the FS by 4GB btrfsctl -r -4g /mnt # Explicitly set the FS size btrfsctl -r 20g /mnt btrfsctl -r max /mnt [ Conversion from Ext3 ] This is an offline, in place, conversion program written by Yan Zheng. It has been through basic testing, but should not be tr...
2010 Jan 09
2
Still Problems with /dev/btrfs-control
Thanks for the quick reply! But I still have problems with btrfsctl: > stat /dev/btrfs-control File: `/dev/btrfs-control'' Size: 0 Blocks: 0 IO Block: 4096 block special file Device: ch/12d Inode: 659848 Links: 1 Device type: a,3e Access: (0644/brw-r--r--) Uid: ( 0/ root) Gid: ( 0...
2007 Dec 21
0
online resizing (including shrinking) pushed out
Hello everyone, Just before I head off to xmas vacation, I''ve pushed out my current queue of unstable things to the unstable tree. The big changes are the online resize, and a very very simple form of ENOSPC detection: btrfsctl -r new_size /mount_point new_size can be an absolute number: btrfsctl -r 8g /mount_point or it can be an relative number: # add 4GB btrfsctl -r +4g /mount_point # shrink 4GB btrfsctl -r -16g /mount_point This stuff just barely works, I''m sure there are problems, but i...
2009 Jan 19
4
[Patch] Btrfs: use BTRFS_VOL_NAME_MAX for struct btrfs_ioctl_vol_args
I found userspace tool, btrfsctl, uses BTRFS_VOL_NAME_MAX, and it also looks that this one is more proper. Kill BTRFS_PATH_NAME_MAX since no one will use it. Signed-off-by: WANG Cong <wangcong@zeuux.org> Cc: Chris Mason <chris.mason@oracle.com> --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioc...
2011 Nov 07
2
[btrfs-progs: PATCH] scrub: fix build failure by restoring proper library ordering
...@@ -36,8 +36,8 @@ version: bash version.sh btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o - $(CC) -lpthread $(CFLAGS) -o btrfs btrfs.o btrfs_cmds.o scrub.o \ - $(objects) $(LDFLAGS) $(LIBS) + $(CC) $(CFLAGS) -o btrfs btrfs.o btrfs_cmds.o scrub.o \ + $(objects) $(LDFLAGS) $(LIBS) -lpthread btrfsctl: $(objects) btrfsctl.o $(CC) $(CFLAGS) -o btrfsctl btrfsctl.o $(objects) $(LDFLAGS) $(LIBS) -- 1.7.3.4 -- 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...
2013 Mar 12
2
[PATCH] btrfs-progs: add Makefile rule for static build of btrfs-find-root
...S) -o btrfs-find-root find-root.o $(objects) $(LDFLAGS) $(LIBS) +btrfs-find-root.static: $(static_objects) $(libs) find-root.static.o + @echo " [LD] $@" + $(Q)$(CC) $(STATIC_CFLAGS) -o btrfs-find-root.static find-root.static.o $(static_objects) $(STATIC_LDFLAGS) $(STATIC_LIBS) + btrfsctl: $(objects) $(libs) btrfsctl.o @echo " [LD] $@" $(Q)$(CC) $(CFLAGS) -o btrfsctl btrfsctl.o $(objects) $(LDFLAGS) $(LIBS) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More...
2011 Apr 07
0
[PATCH] btrfs-progs: cast u64 to long long to avoid printf warnings
..." - "device %s\n", mirror_num, bytenr, eb->dev_bytenr, - device->name); + "device %s\n", mirror_num, (unsigned long long)bytenr, + (unsigned long long)eb->dev_bytenr, device->name); kfree(multi); if (!copy || mirror_num == copy) diff --git a/btrfsctl.c b/btrfsctl.c index 92bdf39..896999f 100644 --- a/btrfsctl.c +++ b/btrfsctl.c @@ -245,7 +245,7 @@ int main(int ac, char **av) args.fd = fd; ret = ioctl(snap_fd, command, &args); } else if (command == BTRFS_IOC_DEFAULT_SUBVOL) { - printf("objectid is %llu\n", obje...
2010 Jun 05
0
PULL: Properly cast and avoid compiler warnings, fixes build on alpha and ia64.
..."device %s\n", mirror_num, + (long long unsigned int) bytenr, + (long long unsigned int) eb->dev_bytenr, device->name); kfree(multi); if (!copy || mirror_num == copy) diff --git a/btrfsctl.c b/btrfsctl.c index be6bf25..45e7aa3 100644 - --- a/btrfsctl.c +++ b/btrfsctl.c @@ -234,7 +234,7 @@ int main(int ac, char **av) args.fd = fd; ret = ioctl(snap_fd, command, &args); } else if (command == BTRFS_IOC_DEFAULT_SUBVOL) { - -...
2009 Feb 06
2
How do I correctly mount a multidevice volume via fstab?
...stab entry: /dev/disk/by-id/scsi-SATA_ST31000333AS_9TE12DSC-part7 /mnt/btrfs btrfs defaults 1 2 Now after boot I get: ---- device fsid c4822885057410c-d2d65a83c2f15fb4 devid 1 transid 73034 /dev/sdb7 btrfs: failed to read chunk tree on sdb7 ---- So I have to run btrfsctl -a first, then mounting works. Can this be done via fstab? Thanks, Thomas -- 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
2007 Dec 07
14
Oops
Hello everybody, I''ve my Gentoo''s /usr/portage on a loopback btrfs. Just wanted to sync and got an oops. I''ve a rsync and a ls process in status D now. The system has been in suspend (tuxonice 3.0-rc3) with mounted btrfs, perhaps that is related? Dec 7 19:18:38 revo BUG: unable to handle kernel NULL pointer dereference at virtual address 0000000c Dec 7
2009 Nov 05
7
Unexpected ENOSPC on a SSD-drive after day of uptime, kernel 2.6.32-rc5
I''ve just finished installing onto an OCZ Agilent v2 SSD with btrfs as filesystem. However to my surprise I''ve hit an ENOSPC condition one one of the partitions within less than a day of uptime, while the filesystem on that partition only reported 50% to be in use, which is far from the 75% limit people mention on the ML. Note that this occurs using a vanilla 2.6.32-rc5 kernel
2010 Feb 24
2
Resizing a btrfs managed partition
Hi, Let me know if this is the wrong place to ask... I''m using Fedora 12 x86_64, mostly with the newer 21.6.32 kernel, and have a single btrfs filesystem within a 120Gb partition. I''d like to extend the space btrfs can use. One option is presumably add a new device to btrfs, but I was hoping to simple resize the existing partition to say 160Gb. With ext4 I might do