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 1OeGvU-0002vu-2n for garchives@archives.gentoo.org; Thu, 29 Jul 2010 00:24:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7221AE095B; Thu, 29 Jul 2010 00:23:55 +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 372B0E095B for ; Thu, 29 Jul 2010 00:23:55 +0000 (UTC) Received: by wyb36 with SMTP id 36so6018306wyb.40 for ; Wed, 28 Jul 2010 17:23:54 -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=u5R9qw3KXsZfYlS+nlbTNAUs0IsAHj+OSMEGFPPeCK4=; b=HlltBM7bQJT/8+Oiz82sDa4CYrka7f7pCBHIlNKoC7wnr2Lh1He+UDv955BwxwzTkw aqm6/ShZNddeYxvvqtAspPZ4l6JJRP2ppUTCvCx7tPOL+55ieaz8ACBTKfQr3PWOneyR 6B70pzStoelOLXcIYaD/XfNiwMwahxpzoAsas= 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=soufBVqRMZE/WH2hQbmpFz8RM6tEc+ItcXvT083wiuH8d9nBoVQKE7uXi/HPLcCB1S Sw+QKI4IF4DMh+t2Xm1rZGz55C4zjRw+lYGslPRXwsechZ8WGC+idbmpdrcvgHtNNfOK 5lVkEE9myBDYxTDGFipUboUW6V2znPZ9E16J4= 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.227.7.212 with SMTP id e20mr11464720wbe.44.1280363034572; Wed, 28 Jul 2010 17:23:54 -0700 (PDT) Received: by 10.216.233.97 with HTTP; Wed, 28 Jul 2010 17:23:54 -0700 (PDT) In-Reply-To: <4C50AB2A.3020601@gmail.com> References: <201007282252.31933.alan.mckinnon@gmail.com> <4C50AB2A.3020601@gmail.com> Date: Thu, 29 Jul 2010 00:23:54 +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: 8adcdeb8-66c7-4bd2-a3ea-63b2a8b0022e X-Archives-Hash: 21a7a96f70518a579c9063a89a06289c 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