From: Jaroslav Kysela <perex@perex.cz>
To: Julian Scheel <julian@jusst.de>, Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH v2] alsactl: Store lockfile in /tmp
Date: Wed, 07 May 2014 11:23:40 +0200 [thread overview]
Message-ID: <5369FB9C.2010602@perex.cz> (raw)
In-Reply-To: <5369F3B7.60105@jusst.de>
Date 7.5.2014 10:49, Julian Scheel wrote:
> Am 07.05.2014 09:19, schrieb Takashi Iwai:
>> At Tue, 6 May 2014 21:32:19 +0200,
>> Julian Scheel wrote:
>>>
>>> It can not be generally assumed that the directories in which asound.state
>>> resides are writable. Instead using /tmp as location for lock files seems more
>>> reliable.
>>
>> The subject and changelog don't match with the actual change.
>> Now it's /var/log instead of /tmp, right?
>
> Sorry for that. Must have been too late.
I also didn't note that. I applied your v2 patch to the git repo - I
forced update now.
>> Besides that, it'd be better to allow a full path name for a lock file
>> instead of a directory name. If you give a different file name via -f
>> option, you have a high chance to conflict with the existing file in
>> /var/lock.
>
> So, you'd prefer a --lock-file/-L option which can be used to set an
> explicit lock file?
I changed '-D' to '-O' option (file) and used '-L' option to select the
"no-lock" behaviour for the global configuration file. Note that the
locking is default only for the global file, other files are not lock
protected.
http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=158a67f6f5058bec0ac27086a1c6206bfd2ff414
>> Furthermore, for solving *your* problem (restoring from read-only
>> rootfs), an easier option would be allowing to restore the system
>> default without locking.
>
> While this is true I think making the locking mechanism more robust is a
> good thing anyway.
Yup.
Jaroslav
--
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.
next prev parent reply other threads:[~2014-05-07 9:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 19:32 [PATCH v2] alsactl: Store lockfile in /tmp Julian Scheel
2014-05-07 7:19 ` Takashi Iwai
2014-05-07 8:49 ` Julian Scheel
2014-05-07 9:20 ` Takashi Iwai
2014-05-07 9:23 ` Jaroslav Kysela [this message]
2014-05-07 13:17 ` Julian Scheel
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=5369FB9C.2010602@perex.cz \
--to=perex@perex.cz \
--cc=alsa-devel@alsa-project.org \
--cc=julian@jusst.de \
--cc=tiwai@suse.de \
/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