Public bug reported:

Large files are reported incorrectly when using the 'ls' command
The expected size should 102G instead, it reports 1402M or 2G 

Example of INCORRECT size:
$ ls -1 -s --block-size=M 
/mnt/f4/plot-k32-2021-05-08-01-15-1648a669ec6edd5cfb124a1512178c5a2a1a714000f4f52b73efc0c3d91a747c.plot
1402M 
/mnt/f4/plot-k32-2021-05-08-01-15-1648a669ec6edd5cfb124a1512178c5a2a1a714000f4f52b73efc0c3d91a747c.plot

Example of CORRECT size (same file):
$ ls -l 
/mnt/f4/plot-k32-2021-05-08-01-15-1648a669ec6edd5cfb124a1512178c5a2a1a714000f4f52b73efc0c3d91a747c.plot
-rwxrwxrwx 1 proxacutor proxacutor 108843801799 May  8 03:39 
/mnt/f4/plot-k32-2021-05-08-01-15-1648a669ec6edd5cfb124a1512178c5a2a1a714000f4f52b73efc0c3d91a747c.plot

Extra information:
$ hostnamectl
   Static hostname: aorus
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 9288a1fdec014d6b8579fb3f3965d902
           Boot ID: 4a69a19ea118418c8a05bf21461626e9
  Operating System: Ubuntu 21.04
            Kernel: Linux 5.11.0-17-generic
      Architecture: x86-64

$ dpkg -l | grep exfat
ii  exfat-fuse                            1.3.0-2                               
                               amd64        read and write exFAT driver for FUSE
ii  exfat-utils                           1.3.0-2                               
                               amd64        utilities to create, check, label 
and dump exFAT filesystem

$ dpkg -l | grep bash
ii  bash                                  5.1-2ubuntu1                          
                               amd64        GNU Bourne Again SHell
ii  bash-completion                       1:2.11-2ubuntu1                       
                               all          programmable completion for the 
bash shell

$ mount
/dev/sda1 on /mnt/f4 type exfat 
(rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1000,fmask=0000,dmask=0000,allow_utime=0022,iocharset=utf8,errors=remount-ro,user)
...

$ cat /etc/fstab
LABEL=F4 /mnt/f4 exfat auto,user,rw,uid=1000,gid=1000,umask=000 0 0
...

$ lsblk -f
NAME                      FSTYPE      FSVER    LABEL UUID                       
            FSAVAIL FSUSE% MOUNTPOINT
sda                                                                             
                           
└─sda1                    exfat       1.0      F4    5E20-EAEC                  
              26.6G   100% /mnt/f4
...

$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
/dev/sda1                           11T   11T   27G 100% /mnt/f4
...

** Affects: ubuntu
     Importance: Undecided
         Status: New

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

Title:
  ls command reports incorrect file size for large files

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

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

Reply via email to