Skip to contentSkip to conversation

resize: File too large

DISCUSSION Taeha Kim 2 participants 2 messages Jul 22, 2015 Btrfs file system

lore
Share & tools
lore

Taeha Kim

author
#0 lore raw

Hello,

I met a problem when resize btrfs as follows. The btrfs related sysinfo is attached at the end of this mail[1].

$ dd if=/dev/zero of=btrfs_5gb.img bs=1024 count=5000000 
$ mkfs.btrfs btrfs_5gb.img  
$ sudo mkdir -p /mnt/btrfs_5gb 
$ mount -t btrfs btrfs_5gb.img /mnt/btrfs_5gb 
$ btrfs filesystem resize +10g /mnt/btrfs_5gb  
Resize '/mnt/btrfs_5gb' of '+10g' 
ERROR: unable to resize '/mnt/btrfs_5gb' - File too large 

Is it a misuse case of resize?

And I expected not the message "File too large" but different error message.

Thanks.

Sincerely yours,
Taeha Kim,
Senior Engineer, Samsung Electronics

[1] The btrfs related sysinfo

$ btrfs --version
btrfs-progs v4.1.2
$ uname -r
4.0.8-300.fc22.x86_64
$ btrfs fi show /mnt/btrfs_5g
btrfs-progs v4.1
$ btrfs fi df /mnt/btrfs_5g
Data, single: total=8.00MiB, used=64.00KiB
System, DUP: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=244.12MiB, used=112.00KiB
Metadata, single: total=8.00MiB, used=0.00B
GlobalReserve, single: total=16.00MiB, used=0.00B
$ dmesg | grep BTRFS
BTRFS info (device loop0): disk space caching is enabled
BTRFS: has skinny extents
BTRFS: flagging fs with big metadata feature
BTRFS: creating UUID tree
BTRFS info (device loop0): disk space caching is enabled
BTRFS: has skinny extents.
#1 lore raw

Hi, Taeha Kim

Quoted 14 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Taeha Kim
Sent: Wednesday, July 22, 2015 1:20 PM
To: [email protected]
Subject: resize: File too large

Hello,

I met a problem when resize btrfs as follows. The btrfs related sysinfo is attached at the end of this mail[1].

$ dd if=/dev/zero of=btrfs_5gb.img bs=1024 count=5000000
Quoted 9 lines
$ mkfs.btrfs btrfs_5gb.img
$ sudo mkdir -p /mnt/btrfs_5gb
$ mount -t btrfs btrfs_5gb.img /mnt/btrfs_5gb
$ btrfs filesystem resize +10g /mnt/btrfs_5gb Resize '/mnt/btrfs_5gb' of '+10g'
ERROR: unable to resize '/mnt/btrfs_5gb' - File too large

Thanks for reporting above problem.

Quoted 2 lines

Is it a misuse case of resize?

Kernel return -EFBIG in this case(dev not big enouth),
and btrfs-progs output corresponding standard error message for this return value:
"File too large"

This message is almost right for most case, but not for resize.

Quoted 2 lines

And I expected not the message "File too large" but different error message.

Good suggestion, I will change it to some accurate description.

Thanks
Zhaolei

Quoted 38 lines

Thanks.

Sincerely yours,
Taeha Kim,
Senior Engineer, Samsung Electronics

[1] The btrfs related sysinfo

$ btrfs --version
btrfs-progs v4.1.2
$ uname -r
4.0.8-300.fc22.x86_64
$ btrfs fi show /mnt/btrfs_5g
btrfs-progs v4.1
$ btrfs fi df /mnt/btrfs_5g
Data, single: total=8.00MiB, used=64.00KiB System, DUP: total=8.00MiB,
used=16.00KiB System, single: total=4.00MiB, used=0.00B Metadata, DUP:
total=244.12MiB, used=112.00KiB Metadata, single: total=8.00MiB,
used=0.00B GlobalReserve, single: total=16.00MiB, used=0.00B
$ dmesg | grep BTRFS
BTRFS info (device loop0): disk space caching is enabled
BTRFS: has skinny extents
BTRFS: flagging fs with big metadata feature
BTRFS: creating UUID tree
BTRFS info (device loop0): disk space caching is enabled
BTRFS: has skinny extents.

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