You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/10/13 16:43:10 UTC
DO NOT REPLY [Bug 37077] New: -
davfs : wrong size shown using df -m
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37077>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37077
Summary: davfs : wrong size shown using df -m
Product: Apache httpd-2.0
Version: 2.0.54
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: mod_dav
AssignedTo: bugs@httpd.apache.org
ReportedBy: toralf.foerster@gmx.de
Defining a DAVFS in /etc/apache2/modules.d/45_mod_dav.conf and creating the
appropriate directories in a ramdisk of a size of 660 MB results in the
following bug:
tfoerste@n22 ~ $ df -m /mnt/ramdisk/dav/ /mnt/dav_n22/
Filesystem 1M-blocks Used Available Use% Mounted on
tmpfs 660 1 660 1% /mnt/ramdisk
/dev/hda9 13684 10477 2512 81% /
13 GB and 2.5 GB free ?!?
Here are the definitions of the file systems:
tfoerste@n22 ~ $ grep -e davfs@n22 -e /ramdisk /etc/fstab
tmpfs /mnt/ramdisk tmpfs noauto,user,size=660M 0 0
http://n22/davfs@n22/ /mnt/dav_n22 davfs noauto,user,askauth 0 0
The bug results from wrong values of the statfs64-call I think:
tfoerste@n22 ~ $ strace -e statfs64 df -m /mnt/ramdisk/dav/ /mnt/dav_n22/
Filesystem 1M-blocks Used Available Use% Mounted on
statfs64("/mnt/ramdisk", 84, {f_type=0x1021994, f_bsize=4096, f_blocks=168960,
f_bfree=168958, f_bavail=168958, f_files=129449, f_ffree=129442, f_fsid={0, 0},
f_namelen=255, f_frsize=4096}) = 0
tmpfs 660 1 660 1% /mnt/ramdisk
statfs64("/", 84, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=3502925,
f_bfree=820853, f_bavail=642910, f_files=1782368, f_ffree=1253799, f_fsid={0,
0}, f_namelen=255, f_frsize=4096}) = 0
/dev/hda9 13684 10477 2512 81% /
Here is the definition if the davfs in the apache config file:
tfoerste@n22 ~ $ cat /etc/apache2/modules.d/45_mod_dav.conf
<IfDefine DAV>
<IfModule !mod_dav.c>
LoadModule dav_module modules/mod_dav.so
</IfModule>
</IfDefine>
<IfDefine DAV_FS>
<IfModule !mod_dav_fs.c>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfModule>
</IfDefine>
<IfModule mod_dav.c>
DavMinTimeout 600
Alias /davfs@n22 /mnt/ramdisk/dav/fs
<Location /davfs@n22>
Options None
Dav On
SVNAutoversioning on
<Limit GET OPTIONS PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY
MOVE LOCK UNLOCK>
AuthType Basic
AuthName "WebDAV (ramdisk)"
AuthUserFile /mnt/ramdisk/dav/conf/davpasswd
Require valid-user
</Limit>
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.0.2/24
</Location>
</IfModule>
<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DavLockDB /mnt/ramdisk/dav/lib/lockdb
</IfModule>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org