lkml.org 
[lkml]   [2005]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/8] VFS: per inode statfs (core)
On Wed, 26 Oct 2005, Miklos Szeredi wrote:
> > > foo-filemanager: before copying a file or directory tree, checks for
> > > free space in destination directory
> >
> > While most others simply don't care -- if it fails, it fails. Looking up the
> > free space beforehand is only a heurisitics anyway, as the free space can
> > change between the stat and the copy anyway.
>
> Being a heuristic doesn't prevent it from being used. And if you have
> one subfilesystem with zero free space, and one with lots, you _will_
> get burned if statfs() happens to report the zero space for every path
> within the mount.

Indeed. ncpfs always returns 0 which for example breaks OpenOffice
amongst many other applications when your home directory is on ncpfs. We
locally patch ncpfs to always return 2GiB free space which always makes
things work. (-:

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-26 22:18    [W:0.109 / U:0.112 seconds]
©2003-2011 Jasper Spaans. Advertise on this site