From: Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org>
To: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Alex Perez <quimicefa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Zero size and zero blocks mountpoint.
Date: Mon, 27 Sep 2010 17:41:15 +0530 [thread overview]
Message-ID: <4CA089E3.2030808@suse.de> (raw)
In-Reply-To: <20100924073515.7b441fa3-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
On 09/24/2010 05:05 PM, Jeff Layton wrote:
> On Fri, 24 Sep 2010 13:18:45 +0200
> Alex Perez <quimicefa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>> I've just found this thread on google, and I subscribed to the list.
>>
>> http://www.spinics.net/lists/linux-cifs/msg00951.html
>>
>> I'm experiencing the same problem. the mountpoint is showing a 4096
>> size, but when I mount a cifs resource, it shows a 0-size. Other
>> mountpoints that are not using cifs (nfs, ext2-3 ...) doesnt change
>> the size.
>>
>> The problem is that the mount point belongs to a directory structure
>> that is accesed by an apache service (2.0.54). The mount point is
>> /opt/www/dir1, while the apache's directoryRoot is /opt/www. So, the
>> problem is that when a client is trying to access to "dir1" I get a
>> error in apache logs, like:
>>
>> [Fri Sep 24 10:57:26 2010] [error] [client 192.0.2.147] (75)Value too
>> large for defined data type: access to /dir1 failed
>>
>> And the client gets a 403 - forbidden error. It's very tricky because
>> if I dismount /opt/www/dir1, the client can access without any
>> problem.
>>
>> Googling this error seem that is related to accessing files > 2Gb, but
>> I think that apache doesn't know how to handle a 0-size directory or
>> it's understanding that is a huge sized directory ...
>>
>> how can I fix the directory-size that apache is receiving?
>>
>
> Honestly, that sounds like an apache bug. You may want to report that
> to them.
>
> I asked Stef this question question and didn't get an answer however:
>
> Does POSIX offer any guidance about what the size of a directory should
> represent?
The nearest I could find is:
"If the file is a character special or block special file, the size of
the file may be replaced with implementation-defined information
associated with the device in question."
from http://www.opengroup.org/onlinepubs/9699919799/
In our case it's network file object and the Server only seem to know
the the actual size.
> For a local filesystem this is simple -- it's a representation of the
> space that the directory occupies on disk (directories are just inodes
> like any other).
>
> NFS returns a non-zero size for a directory inode because the server
> returns one. CIFS servers however send 0 for the size of a directory.
+ 1
I think it makes sense to report what the server returns and not fake it
to cover up application bugs/ unwarranted checks. If there are other
reasons, we could consider setting a reasonable size
--
Suresh Jayaraman
next prev parent reply other threads:[~2010-09-27 12:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 11:18 Zero size and zero blocks mountpoint Alex Perez
[not found] ` <AANLkTinLwfXhcsAOPEK8reNRyWeyQnzGKm7uQOpYhM_5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-24 11:35 ` Jeff Layton
[not found] ` <20100924073515.7b441fa3-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2010-09-24 17:44 ` Stef Bon
[not found] ` <AANLkTim5dVdQuihXizVSey7VmRZOEKDh9STqKzxy1Vv2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-24 18:02 ` Jeff Layton
[not found] ` <20100924140210.719a8f46-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-09-24 18:08 ` Steve French
2010-09-27 12:11 ` Suresh Jayaraman [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-09-19 19:28 Stef Bon
[not found] ` <AANLkTi=GPOoF5bOdySz2izWTEEBShZ8LG=SWPKZVHCU8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-19 22:04 ` Jeff Layton
[not found] ` <20100919150427.16ab30d9-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2010-09-20 7:29 ` Stef Bon
[not found] ` <AANLkTik04e_d9HPeGsB8Adcm2tpGh-qEOwcQvu6ScP3D-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-20 15:51 ` Jeff Layton
[not found] ` <20100920085140.4b844270-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2010-09-27 12:53 ` Suresh Jayaraman
[not found] ` <4CA093D4.4060708-l3A5Bk7waGM@public.gmane.org>
2010-09-27 12:59 ` Jeff Layton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA089E3.2030808@suse.de \
--to=sjayaraman-l3a5bk7wagm@public.gmane.org \
--cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=quimicefa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox