From: Sasha Levin <levinsasha928@gmail.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>,
asias.hejun@gmail.com, mingo@elte.hu, kvm@vger.kernel.org
Subject: Re: [PATCH 1/7] kvm tools: add HOME env var to hostfs
Date: Thu, 30 Aug 2012 11:51:26 +0200 [thread overview]
Message-ID: <503F379E.9010305@gmail.com> (raw)
In-Reply-To: <CAOJsxLEo0FCoYwcr_w-9n2-+20=PJE3_HCYjd-Qkbh=RYyytaw@mail.gmail.com>
On 08/30/2012 11:48 AM, Pekka Enberg wrote:
> On Thu, Aug 30, 2012 at 12:44 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
>> On 08/30/2012 09:50 AM, Cyrill Gorcunov wrote:
>>> On Thu, Aug 30, 2012 at 09:36:37AM +0200, Sasha Levin wrote:
>>>> + char *new_env[] = { "TERM=linux", "DISPLAY=192.168.33.1:0",
>>>> + "HOME=/virt/home", NULL };
>>>> +
>>>> + mkdir("/virt/home", 0755);
>>>
>>> Please add check for mkdir error code. Frankly, this is a bad habbit
>>> to assume that mkdir never fails (this could be done on top of this
>>> series I think but should not be leaved without attention).
>>
>> This is actually supposed to fail most of the times, since it runs as part of
>> the init :)
>
> You could check for errno == EEXISTS, no?
>
> On Thu, Aug 30, 2012 at 12:44 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
>> There's not much we can do if it fails though, and even at that point - this
>> failure isn't serious enough to even justify any further action on our end.
>
> I'm pretty sure users would appreciate a friendly warning explaining
> that we are not running in "normal state".
This is how we ran up until now :)
I'm going to move that from init.c into the setup itself then.
prev parent reply other threads:[~2012-08-30 9:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-30 7:36 [PATCH 1/7] kvm tools: add HOME env var to hostfs Sasha Levin
2012-08-30 7:36 ` [PATCH 2/7] kvm tools: clean garbage from ioeventfd code Sasha Levin
2012-08-30 7:36 ` [PATCH 3/7] kvm tools: Use the new KVM_SIGNAL_MSI ioctl to inject interrupts directly Sasha Levin
2012-08-30 7:36 ` [PATCH 4/7] kvm tools: fix warnings in virtio-blk Sasha Levin
2012-08-30 7:36 ` [PATCH 5/7] kvm tools: enable LTO Sasha Levin
2012-08-30 8:01 ` Pekka Enberg
2012-08-30 8:16 ` Ingo Molnar
2012-08-30 8:22 ` Cyrill Gorcunov
2012-08-30 8:33 ` Sasha Levin
2012-08-30 8:35 ` Cyrill Gorcunov
2012-08-30 9:12 ` Pekka Enberg
2012-08-30 7:36 ` [PATCH 6/7] kvm tools: 9p don't nuke fids on attach Sasha Levin
2012-08-30 7:36 ` [PATCH 7/7] kvm tools: simplify virtio config handling Sasha Levin
2012-08-30 7:50 ` [PATCH 1/7] kvm tools: add HOME env var to hostfs Cyrill Gorcunov
2012-08-30 9:44 ` Sasha Levin
2012-08-30 9:48 ` Pekka Enberg
2012-08-30 9:51 ` Sasha Levin [this message]
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=503F379E.9010305@gmail.com \
--to=levinsasha928@gmail.com \
--cc=asias.hejun@gmail.com \
--cc=gorcunov@openvz.org \
--cc=kvm@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=penberg@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.