mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Subject: Re: Drop cache has no effect?
Date: Tue, 29 Aug 2006 11:00:48 -0700	[thread overview]
Message-ID: <20060829110048.20e23e75.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0608291449060.10486@yvahk01.tjqt.qr>

On Tue, 29 Aug 2006 14:53:34 +0200 (MEST)
Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:

> Hello,
> 
> 
> recently I picked up knowledge of /proc/sys/vm/drop_caches 
> (http://lkml.org/lkml/2006/8/4/95)
> 
> It does not always work right away:
> 
> (/U is a vfat, that is, permissions are back to 755 as soon as the caches 
> are gone)
> 14:51 gwdg-wb04A:/U # chmod 644 *
> 14:51 gwdg-wb04A:/U # sync
> 14:51 gwdg-wb04A:/U # echo 2 >/proc/sys/vm/drop_caches 
> 14:51 gwdg-wb04A:/U # l
> total 50713
> drwxr-xr-x   3 jengelh users     2048 2006-08-29 14:48 .
> drwxr-xr-x  22 root    root      4096 2006-08-25 14:00 ..
> drw-r--r--   2 jengelh users     2048 2006-08-29 13:55 as
> -rw-r--r--   1 jengelh users 13806629 2006-08-29 14:00 all-20060611.tar.bz2
> -rw-r--r--   1 jengelh users 37816633 2006-07-28 19:25 
> inkscape-0.44-2.guru.suse101.i686.rpm
> -rw-r--r--   1 jengelh users   297243 2006-08-15 01:13 
> vmware-any-any-update104.tar.gz
> 
> Remains 644.
> 

That would be a vfat problem - the changed permission bits weren't written
back to disk, so when you re-read them from disk (or, more likely, from
blockdev pagecache) they came back with the original values.

Does vfat even have the ability to store the seven bits?  Don't think so? 
If not, permitting the user to change them in icache but not being to write
them out to permanent store seems rather bad behaviour.

  reply	other threads:[~2006-08-29 18:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-29 12:53 Jan Engelhardt
2006-08-29 18:00 ` Andrew Morton [this message]
2006-08-29 19:21   ` Jan Engelhardt
2006-08-29 19:36     ` /proc/net/tcp information drop Jörg Hoffmann
2006-08-29 19:49     ` Drop cache has no effect? Andrew Morton
2006-08-30  1:08   ` OGAWA Hirofumi
2006-08-30  1:39     ` Andrew Morton
2006-08-30  5:54       ` Jan Engelhardt
2006-08-30 16:31         ` OGAWA Hirofumi

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=20060829110048.20e23e75.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome