From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OeSfQ-0002Rd-MA for garchives@archives.gentoo.org; Thu, 29 Jul 2010 12:56:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70EEBE077E; Thu, 29 Jul 2010 12:56:23 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 20C0EE077E for ; Thu, 29 Jul 2010 12:56:23 +0000 (UTC) Received: by wyb36 with SMTP id 36so333588wyb.40 for ; Thu, 29 Jul 2010 05:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=OVE+jV579wvLqtANvTmm1RCDczTOD7VkN1JAYS2r7fg=; b=ZWGPC+Jk5Rq1rivJrEhL0e05zefIOoPhwxOzdE6Qcwmwen8gu8qkyFSATHsRl3JaRj qp2TUOEeeA2G2bXT5i8V53O5ohwihj779oZi/Hy17HXJxo1Tgh0Ge4iSFNJayMg3TWkn hRY7VRIWqOJNkO1/8nTpLaQyszqvNstEeD2HI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vcYRSS84I9hT6JeLihG6Km7hstTdw8Poe84dhbUzf3U0PBCYm1Pktr7l7DO21772iy 9xrhFWIPrx6tS4w/G7lyeQWNSI0T45GZiPWriGMQQuvHSYo/G1sImYia2maeG/yP54UF MXUQt8d/oT1WcD2Df4JFLClYyczXe8YktXJxI= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.216.196.160 with SMTP id r32mr72930wen.36.1280408182081; Thu, 29 Jul 2010 05:56:22 -0700 (PDT) Received: by 10.216.233.97 with HTTP; Thu, 29 Jul 2010 05:56:21 -0700 (PDT) In-Reply-To: References: <201007282252.31933.alan.mckinnon@gmail.com> <4C50AB2A.3020601@gmail.com> Date: Thu, 29 Jul 2010 12:56:21 +0000 Message-ID: Subject: [gentoo-user] Re: dir is rwx but can't create file From: Andrey Vul To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 742c2d81-c9a8-4957-9259-001e00ebd334 X-Archives-Hash: 1a50f0fd9d98f5350e82d5d39682c9de Also, echo > /tmp/foo => same thing It looks like a problem with open(..., O_CREAT|O_TRUNC, 644), but i'll retry strace'ing the open,write and see where the problem chain starts On 2010-07-29, Andrey Vul wrote: > If / was mounted ro, touch would output strerror(EROFS), not > strerror(ENOENT) > > On 2010-07-28, Bill Longman wrote: >> On 07/28/2010 01:52 PM, Alan McKinnon wrote: >>> On Wednesday 28 July 2010 22:20:17 Andrey Vul wrote: >>>> Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch >>>> /tmp/foo => strerror(ENOENT)). >>>> However, this is done as root and the dirs are marked 755 root:root. >>>> df -i shows only 2% inode usage. >>>> Any explanation as to why a rwx-ed dir can't be written to? This is >>>> breaking quite a few of the init scripts. >>>> >>>> -- >>>> Andrey Vul >>>> begin-base64 600 sig >>>> bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3J >>>> v bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K >>>> ` >>>> end >>> >>> sounds like / is mounted read-only >> >> Do read-only filesystems typically reply ENOENT when trying to create a >> file? It's usually something like "read-only filesystem" in that case. >> ENOENT means it can't even find the file. >> >> > > -- > Sent from my mobile device > > Andrey Vul > begin-base64 600 sig > bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv > bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K > ` > end > -- Sent from my mobile device Andrey Vul begin-base64 600 sig bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K ` end