Confirmed in the latest RC kernel:

charles@ubuntuvm:~/temp$ fallocate -l 1GB image.img
charles@ubuntuvm:~/temp$ sudo modprobe loop
[sudo] password for charles: 
charles@ubuntuvm:~/temp$ mkfs.xfs image.img 
meta-data=image.img              isize=512    agcount=4, agsize=61035 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=0, rmapbt=0, 
reflink=0
data     =                       bsize=4096   blocks=244140, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal log           bsize=4096   blocks=855, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
charles@ubuntuvm:~/temp$ mkdir mnt
charles@ubuntuvm:~/temp$ mount -o loop ./image.img mnt
mount: only root can use "--options" option
charles@ubuntuvm:~/temp$ sudo mount -o loop ./image.img mnt
charles@ubuntuvm:~/temp$ cd mnt/
charles@ubuntuvm:~/temp/mnt$ sudo fallocate -o 0 -l 700mb image.img
charles@ubuntuvm:~/temp/mnt$ sudo fallocate -o 0 -l 700mb image.img
fallocate: fallocate failed: No space left on device
charles@ubuntuvm:~/temp/mnt$ uname -a
Linux ubuntuvm 4.19.0-041900rc3-generic #201809120832 SMP Wed Sep 12 12:35:08 
UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
charles@ubuntuvm:~/temp/mnt$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic


** Changed in: linux (Ubuntu)
       Status: Incomplete => Confirmed

** Tags added: kernel-bug-exists-upstream

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1791323

Title:
  XFS fallocate implementation incorrectly reports ENOSPC

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1791323/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to