From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [patch 10/26] mount options: fix devpts Date: Thu, 24 Jan 2008 11:46:15 -0800 Message-ID: <4798EB07.50002@zytor.com> References: <20080124193341.166753833@szeredi.hu> <20080124193429.480166399@szeredi.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Miklos Szeredi Return-path: Received: from terminus.zytor.com ([198.137.202.10]:50876 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751636AbYAXTqa (ORCPT ); Thu, 24 Jan 2008 14:46:30 -0500 In-Reply-To: <20080124193429.480166399@szeredi.hu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Miklos Szeredi wrote: > Also add minor fix: when parsing the "mode" option, mask with > S_IALLUGO instead of ~S_IFMT, which could leave unsed bits in the > mask. umode_t is 16 bits, so it doesn't. The change is still good, of course. > + if (config.mode != DEVPTS_DEFAULT_MODE) > + seq_printf(seq, ",mode=%03o", config.mode); I would rather this be unconditional, than that it be conditional on something other than the user having specified it in the first place. Other than that, Acked-by: H. Peter Anvin -hpa