Bug 203896 - Share size wrong for NFS mounted directory shared via Samba
Share size wrong for NFS mounted directory shared via Samba
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: samba (Show other bugs)
i686 Linux
medium Severity high
: ---
: ---
Assigned To: Guenther Deschner
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2006-08-24 06:20 EDT by Stefan Walter
Modified: 2010-05-10 10:37 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-05-10 10:36:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stefan Walter 2006-08-24 06:20:24 EDT
Description of problem:

In our setup a Samba server shares home directories mounted on that server via
NFS from a second NFS server. When mapping a network drive and displaying the
properties of the network drive, the displayed disk sizes are wrong. 

Version-Release number of selected component (if applicable):

Linux fire 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386


How reproducible:

NFS export a partition on one server, mount it on another server and share
the mounted NFS share to a Windows XP client. Map a network drive to the
share adn display the drive properties.

Steps to Reproduce:
1. On the NFS server (here fire) prepare a partition /local and do:
fire:~# df /local
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda8            136163944    130936 129116224   1% /local
fire:~# exportfs -o async,write ice:/local

2. On the Samba server (here ice) use the factory smb.conf supplied with RHEL
AS4 and do:
ice:/# mkdir /remote
ice:~# mount fire:/local /remote
ice:/remote# df /remote
Filesystem           1K-blocks      Used Available Use% Mounted on
fire:/local          136163968    130944 129116224   1% /remote
ice:/etc/samba# cat >>smb.conf
  path = /remote
  browseable = no
  writable = yes
  comment = Remote share

ice:/remote# service smb restart
Shutting down SMB services:                                [  OK  ]
Shutting down NMB services:                                [  OK  ]
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]

3. Map a netwoork drive to '\\ice\remote' on a fully updated Windows XP
Professional client and display the properties of the mapped drive.
Actual results:

'Used space' and 'Free space' of the Windows XP properties dialog of a network
drive mapped to the Samba share are totally wrong.

Expected results:

The properties dialog should display correct values.
Comment 1 Dmitri Pal 2010-05-10 10:36:45 EDT
Re-sharing is not supported and please see the "defree" command.
Comment 2 Dmitri Pal 2010-05-10 10:37:12 EDT
Correction "dfree" command.

Note You need to log in before you can comment on or make changes to this bug.