Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#8357 closed defect (no_response)

Wrong free space reported by df when using block-extroot mounted rootfs

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Backfire 10.03.1 RC4
Keywords: block-extroot Cc:

Description

This causes problems when using samba sharing stuff from the overlaid root, as samba will report the freespace from the boot filesystem and not the overlaid root fs. This will result in samba thinking it's out of space and therefore to refuse writing new files, even though there's actually plenty of free space.

root@OpenWrt:/tmp# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 5184 4124 1060 80% /rom
tmpfs 30988 3608 27380 12% /tmp
tmpfs 512 0 512 0% /dev
/dev/sda1 303448268 25084696 275280700 8% /overlay
mini_fo:/overlay 5184 4124 1060 80% /

exists both in 10.03 and 10.03.1-rc4

Attachments (1)

configanddf.txt (1.4 KB) - added by anonymous 7 years ago.
config files and df output

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by anonymous

config files and df output

comment:1 Changed 7 years ago by anonymous

A work around for samba:

add 'dfree command = /path/to/my/shell_script' to the global section of your smb.conf

and then create the shell script:
#!/bin/sh
df /overlay | tail -1 | awk '{print $2" "$4}'

comment:2 Changed 7 years ago by anonymous

Samba misreports free space.

I have exactly the same problem.
Even if I step over to another mount.

My workaround was creating new partition for shares.
This was my original intention anyway...

My version also: 10.03.1-rc4, r24045

comment:3 Changed 7 years ago by anonymous

root@OpenWrt /root# cat /etc/banner

_

| |.-----.-----.-----.| | | |.----.| |_

| - |_
_ | -| | | _ _|
|_||| ||

|| W I R E L E S S F R E E D O M

Backfire (10.03.1-RC5, r27257) --------------------------

  • 1/3 shot Kahlua In a shot glass, layer Kahlua
  • 1/3 shot Bailey's on the bottom, then Bailey's,
  • 1/3 shot Vodka then Vodka.

---------------------------------------------------

root@OpenWrt /root# dmesg |grep sda
sd 0:0:0:0: [sda] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through

sda: sda1

sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
EXT3 FS on sda1, internal journal
root@OpenWrt /root# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 2.4M 2.4M 0 100% /rom
tmpfs 30.3M 68.0K 30.2M 0% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock4 4.1M 292.0K 3.8M 7% /overlay
mini_fo:/overlay 2.4M 2.4M 0 100% /
/dev/sda1 2.4M 2.4M 0 100% /
root@OpenWrt /root#

comment:4 Changed 7 years ago by jow

All kinds of info, but no fstab config. My guess is that you have "option target /" in there - remove that.

comment:5 Changed 6 years ago by nbd

  • Resolution set to no_response
  • Status changed from new to closed

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.