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 1OeSis-0002ie-Vq for garchives@archives.gentoo.org; Thu, 29 Jul 2010 13:00:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7399AE081F; Thu, 29 Jul 2010 13:00:11 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id C92DDE081F for ; Thu, 29 Jul 2010 13:00:10 +0000 (UTC) Received: by wwb39 with SMTP id 39so270308wwb.10 for ; Thu, 29 Jul 2010 06:00:10 -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=gg4nB4B9tZe9Han/u27RI5hl66AmvRkO2PaVLNslIN4=; b=ivj8pSkZFCcrYH9ln+GzXMmsjeaA/trltVMW+KkK0wVwPYEf60AM4Fm74QCaf44Jg9 ym1q2cmCuWcwBY463g8QjIEp5lVaWZ7zNZ8BKvnIk0h+QSPwe73dXfjEg2in/+0Uu34y yM1KwO2nhXnmqi2ND39B2U9MyNstfLWnK73r4= 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=aFu5Lc00/qg5NTj41nsznPVJd/rNT+buUEzSivnh63y9pwoIxRrLBIOeS/hFq4ulnf DfDwfj/w+b+bQtKdO1cc8rjZHNO/EycUs51Y1tkA8kYgr3S2PmA0DXov1H2beQ9zq/Fl pZiZSKv49DJxdtnhqJbZR3zKW6sHBxbekQmQ4= 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.236.226 with SMTP id w76mr109291weq.7.1280408410173; Thu, 29 Jul 2010 06:00:10 -0700 (PDT) Received: by 10.216.233.97 with HTTP; Thu, 29 Jul 2010 06:00:10 -0700 (PDT) In-Reply-To: References: <201007282252.31933.alan.mckinnon@gmail.com> <4C50AB2A.3020601@gmail.com> Date: Thu, 29 Jul 2010 13:00:10 +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: 01a8ac14-704c-465c-98d7-a4bc87af23eb X-Archives-Hash: f44683265826f21eca2ad344044aea3e While /tmp's mode is 1777, it doesnt make a difference since the same error occurs with /etc, /lib32, and /var. On 2010-07-29, Andrey Vul wrote: > 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 > -- Sent from my mobile device Andrey Vul begin-base64 600 sig bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K ` end