Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2968118imm; Mon, 28 May 2018 21:13:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJq8ixq3duLed9vzRyddBtPFwFQujH9mcymKhpdexl3b+LYsRQ55936Slf5t8JGmPiGk8k3 X-Received: by 2002:a62:9d82:: with SMTP id a2-v6mr6985195pfk.223.1527567190221; Mon, 28 May 2018 21:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527567190; cv=none; d=google.com; s=arc-20160816; b=u5p0WTGAITxduPY1CjnHSk7mTKiFIMylHVkmS7rvP8jvwJELYePJe4F2oO7lixTfmR 8FGNzhX3QPpi+zPNJPJidPtjza2BkuBL6AbEuXKqFuiIiG0aIfBfTVGJBHn9OBcZ6I0s ECyEgDpt91OOGfnWMQY0I5uAoojL4VpEH/DPT8PovVzPPFRA8RGmLYfljtQrjAIek8J1 G4yfC5xBhrny8MsLfimHeDConspIamMzzi1SRgltRjdMdbLsmsST6n1WSRKJSaXRqrwy 12OW3bsOU9ywCo0JytX6ulDWxto/IFIswSDcPVD3WyHoC0wzF1AAxYRi2nX3L4UmLDPs JS6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=tuziffLcXCybYN/Wo7VUKc8fVYOlrTAjTfwQdRr59Oc=; b=dc/p6trORrB794Pqz2K4R6HuuNMJwlqDBw3Cp2CFyYnus6w8PVViTkJORaAOnoUeHl e2R2JWzW3Jc+GvQ2sgx1e3uybTOaMpwBUoPIHIJiDkUHii6FqGv88FX7uLoriBQOeRFN C1t/EYkKCIibhYITP/m2NnZ8jWCuK7Y3GqSnCpWkD3+vU2QRpJLBpAeINC9KgegXPiZA h/uZYs4YIzeucLoKgQrCrHUqPsGuHD6ZBfLZz/fEo4p0u0YMy5JWUrubIprczLcqRzmH 0/N4fMbYb98krvGy/IDqoeB6cGv5fDLIO3pu8+tDnFl6n4R9770ukTyb7F3lW7x5lWka V/qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vk9Rfdld; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12-v6si33793931plt.494.2018.05.28.21.12.55; Mon, 28 May 2018 21:13:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vk9Rfdld; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751168AbeE2EMa (ORCPT + 99 others); Tue, 29 May 2018 00:12:30 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:32856 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750718AbeE2EM0 (ORCPT ); Tue, 29 May 2018 00:12:26 -0400 Received: by mail-pl0-f67.google.com with SMTP id n10-v6so8177843plp.0; Mon, 28 May 2018 21:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=tuziffLcXCybYN/Wo7VUKc8fVYOlrTAjTfwQdRr59Oc=; b=Vk9RfdldA9r5O0NOc7XbnJ1E+dNmq5fhh8AvOhhtzPhhbfKhh3gwWl+9i3bF3K/2xK X+EbPOR01Uyc7Eo8u5p4hieGSOknXwRIGAuLxRpeHmDV9YKNKw2nApY6MdO6tkUoZPPg WVrMqvC5MpqgB6+F1WzoD3kipw0bZWWQF2rYI7dlEjtfxQ/MdGK7p0Z69om1HjsdvYmb pvi+7Az9dTjUrB+Zrp+m/bsRe7hkTKRf8uf6bYJ20AIrBzPJFDw5ZA9i5VYsS4k+Jz43 qHiG0AgC2zoZ9SglrMTr670TTMJfL5hjYkZ/cbCstOeCmpyFx1tMw62FImJvL6akQ70e TTVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=tuziffLcXCybYN/Wo7VUKc8fVYOlrTAjTfwQdRr59Oc=; b=dk1Hdg7yM4Iq6zh80OxUbCMTNLRW+eGLpgG+B4mghcD0sCiQ+MNFm1vK9XGYOadfX+ 1CbiVhTZNRpviPQTduequmuyPtuTBEcHHvmruNU1LC03kvSSq2meFQlXYUDPfTvElPvk 252HwoNIIsD+928+5ToSv6v0f9fPspzPiSB6FMOHLpVp0dxdDBSMrmmiUTDHdEkyOIKi xcnNB8ldPj21buwEPC5oDN5pJwGUWM7VyiTmEKjwFlDtMF2z8tHE/Pq+CbVB0HPCXZKU Q1zbv3zdSpBB62P5N5EVoJT264jh2khl7LrKSXedfmDzV7OowaHcRs9DpPZjLeWusAI7 mnhQ== X-Gm-Message-State: ALKqPwcJkTODL9N3BJtbWuaPtZEEiaqJXNVlJGDRKbqJdfkR2JP7aL04 QI7at5l2BG2O3WU9GX48FsU= X-Received: by 2002:a17:902:31a4:: with SMTP id x33-v6mr16143337plb.355.1527567145936; Mon, 28 May 2018 21:12:25 -0700 (PDT) Received: from supsup-VirtualBox ([220.94.163.19]) by smtp.gmail.com with ESMTPSA id g13-v6sm54933740pfm.67.2018.05.28.21.12.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 May 2018 21:12:24 -0700 (PDT) Date: Tue, 29 May 2018 12:57:03 +0900 From: Jungsub Shin To: Al Viro Cc: "J. R. Okajima" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, aufs-users@lists.sourceforge.net Subject: Re: Why is the length of max mount option a page size?? Message-ID: <20180529035703.GA32550@supsup-VirtualBox> References: <20180521173959.GA12779@supsup-VirtualBox> <5670.1527244930@jrobl> <20180529002456.GA30767@supsup-VirtualBox> <20180529011412.GE30522@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20180529011412.GE30522@ZenIV.linux.org.uk> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 02:14:12AM +0100, Al Viro wrote: > On Tue, May 29, 2018 at 09:24:56AM +0900, Jungsub Shin wrote: > > Mount command : mount -t aufs -o br=3D~/tca_agent/container_rw_dir/5150= 9032=3Drw:~/tca_agent/image_layer_dir/5a259d94211e449fd466d997b5b0b149cb299= 7a732fd3a838c14295e0eb93f92=3Dro+wh:~/tca_agent/image_layer_dir/faca908333f= 884648b75738571879df977339ee7615c65410c98001a463bcd00=3Dro+wh:~/tca_agent/i= mage_layer_dir/67b50813aedeb67fd06b434163fa64d07fbd16f714196daea1cd139a0171= b080=3Dro+wh:~/tca_agent/image_layer_dir/28b6f7699be037b7f80dd03b22830712aa= 75b88ddfbba0910dd059b522fbff20=3Dro+wh:~/tca_agent/image_layer_dir/c47c7125= efa9172d262c5b3645594010704f67cf44005da9f6d7ea5a5d2a05db=3Dro+wh:~/tca_agen= t/image_layer_dir/b91ed1b448ac52d251c785f5cfc299ca3ba4cfd68d739832b766228af= a84a651=3Dro+wh:~/tca_agent/image_layer_dir/0169cd8bc0bdbecedb30c7d995e69e8= 32d7ccd5c435e72c40af6940db87851b7=3Dro+wh:~/tca_agent/image_layer_dir/e7ef7= d443e31f8b3b8a0a002a6895746d3737289eb2eea18d669924c089279f2=3Dro+wh:~/tca_a= gent/image_layer_dir/31bfb0cd724fda09280305b8dc1c4b0587ca01f5dd503d28afa82c= ff4fa92475=3Dro+wh:~/tca_agent/image_layer_dir/74428f0d76521fa9b9b1189cb72d= 303e367003c113cc8a11db125e3f7df1daa1=3Dro+wh:~/tca_agent/image_layer_dir/b2= 0a927da14045cac0cd6a745f67fdeb88ead6d85752c670ea2773b27387f6ae=3Dro+wh:~/tc= a_agent/image_layer_dir/7dee3bce119631e3c922d78860d6b0ae160e237b63bf19f4371= 3a05d1086c72f=3Dro+wh:~/tca_agent/image_layer_dir/636bce8f18e8734cb98f170bd= cf1fb9ae52f1b091bfadcb2bef378b0d829ceb6=3Dro+wh:~/tca_agent/image_layer_dir= /9c6fde234e701cf7b61534ef3a23cc4e0cdb6d3ffc497feaa8fcddc52e8d1fda=3Dro+wh:~= /tca_agent/image_layer_dir/83c2f1968a932e3e284ef20b10a4ef8a9cfc01589dacf210= 0fb9a78e88c3888e=3Dro+wh:~/tca_agent/image_layer_dir/ec096a351601040fcd37c3= 1edccd2f68106438097e8adf7253539366b2232de5=3Dro+wh:~/tca_agent/image_layer_= dir/6de889accecb819028355196bde150749598e982b5dfe556540e102c737bfc34=3Dro+w= h:~/tca_agent/image_layer_dir/1042cb8f2263d1030fdb57e0ca671b34a2180bb35d944= 8737e4a03e4987cf942=3Dro+wh:~/tca_agent/image_layer_dir/4fab8c997a447af2375= e325467661ca1d74bf62dc6d802426f20d0134c9c43bc=3Dro+wh:~/tca_agent/image_lay= er_dir/ca57efb1c28464fab46af1826243c02af0a0b6cfb90bf92b30110e79028c5e68=3Dr= o+wh:~/tca_agent/image_layer_dir/ad86d54176611b5117fc155e8dfbd0b59bc0abce4e= 2051baef12c2f1e152c92f=3Dro+wh:~/tca_agent/image_layer_dir/f323ae7b264dcc51= 7876e7c722ac3369baaef1a7c18cc5aae5f43f440fd646c0=3Dro+wh:~/tca_agent/image_= layer_dir/a7d1c89c8422563102bd353de46154191038f92c9ebde8b22a8b2749140029ec= =3Dro+wh:~/tca_agent/image_layer_dir/104adb8634902678f87db6bdbdb12d43d5bd6d= b9909ae9b12e078286046a1298=3Dro+wh:~/tca_agent/image_layer_dir/00450b5308ac= 99846ae7e5fa47652952c4fbbe82882ac241d5153d630644f790=3Dro+wh:~/tca_agent/im= age_layer_dir/129675caf5fdc1616c619d5b5718417806a64f282d324a3a580d6df1269b4= f3f=3Dro+wh:~/tca_agent/image_layer_dir/8ce8b37ab4829a1fd34fcd38842b912d46e= b3f7511365ccec0399a06670ab2fc=3Dro+wh:~/tca_agent/image_layer_dir/57080e2e0= baad381605079107f08435133d7829364a9c450fc08877f01e57601=3Dro+wh:~/tca_agent= /image_layer_dir/9ca225075a8c2bfd27ef5084e41335d781d24e7be0cbf4575ec3d42de6= 62c6ac=3Dro+wh:~/tca_agent/image_layer_dir/74ec3835691908f9e6e271797f373257= de3f9cc4bb408fd66dd229537ea5fcc1=3Dro+wh:~/tca_agent/image_layer_dir/59aa8f= 04c38abaae9c0e430d7b1a91f6560641e429386ee2c4eec57f0af35c04=3Dro+wh:~/tca_ag= ent/image_layer_dir/bc318ac48b4f7a9536b72e2b0f223726a5225e13ecc70eba4b7b00e= 2bf80081b=3Dro+wh:~/tca_agent/image_layer_dir/bbfb0e8818be82ca0f17f280f7ad8= 9497fef6c92e2bb50c40b2bd17c79347425=3Dro+wh:~/tca_agent/image_layer_dir/f36= b94436263ce21d885d2f3f94c7b307e966a989fcefd3027c039e987d7dc2b=3Dro+wh:~/tca= _agent/image_layer_dir/9103dae307f5748103f89093273329a523300b4f103a1d397c44= abd766fe0015=3Dro+wh:~/tca_agent/image_layer_dir/9bd48cc89c1fc083b0db7ed45e= 5d7e4fec277450b8b47f96884588930ce8c56f=3Dro+wh:~/tca_agent/image_layer_dir/= 47ba0411cc8344ab1895a6b8eb0878a9ffd34410170a140ad1f210f20eedcdce=3Dro+wh:~/= tca_agent/image_layer_dir/42b317de582399eb395b2818b4d658fb0a5987e8df1163e49= ac2d8bec95a078e=3Dro+wh:~/tca_agent/image_layer_dir/57bb07a87ab6c29b048638c= 65566febe800fe79672730f7bb9e70b8f2e677e5a=3Dro+wh:~/tca_agent/image_layer_d= ir/b89b49aa036df19c6a2e77cc4aaef707ab3fd916d2d936b9e5e160d448d96ab3=3Dro+wh= :~/tca_agent/image_layer_dir/d7bf931f8235cc7cc68c223b2945f77e858eb8cff4c9cb= 8bd64bacfd29312672=3Dro+wh:~/tca_agent/image_layer_dir/49a8b40dbec97066dbad= 4fb14d1bf388102190442679527e112b030270426ccc=3Dro+wh:~/tca_agent/image_laye= r_dir/05f05d402ea8ee67da1af2c9e35d10b9619b0f0c14a56788a1a0b5eeb290d685=3Dro= +wh:~/tca_agent/image_layer_dir/b05d3f32ac4ff52a542dfcf50dbf155d060d79bd23d= 0ebed1439a3c6b1120731=3Dro+wh:~/tca_agent/image_layer_dir/0d061258f32c904c9= 5aa020a9f679790c5722c3017eef98e298d6e29b4f02089=3Dro+wh:~/tca_agent/image_l= ayer_dir/1f9c07049bcd59c59413c1706d0402b04c96598174eb16ef3de25b4e47413ad2= =3Dro+wh:~/tca_agent/image_layer_dir/a86578a8bff61017b80eb653705c3f41136efb= 9b88facd6a2c67e8b3426e47f9=3Dro+wh:~/tca_agent/image_layer_dir/c3fdf4a694f0= cc03939ee2cfdd09fb623966c5bb193778eaaea317655773656e=3Dro+wh:~/tca_agent/im= age_layer_dir/1b8fcd446a37050b55f57687aaae1150d74cc7f4468bbd00942535bad5ab2= 2fe=3Dro+wh:~/tca_agent/image_layer_dir/6624cfa732b528cf7c1996719e30d1525aa= 27af7584f61a149d4d386aa8cf301=3Dro+wh:~/tca_agent/image_layer_dir/5b57e87f9= b5859d902c4338c7a7ce5996a51fb8226a8f11ab29e10af4af5f14f=3Dro+wh:~/tca_agent= /image_layer_dir/0c65112ac5c572a950e2671f903ef11e918e6e3cdbf026edda90db6c7a= 9c6ef8=3Dro+wh:~/tca_agent/image_layer_dir/ce16b72d243b82ded684a547da1400b8= f2d07ed7b36b114ae0cbe2f20c17b0bf=3Dro+wh:~/tca_agent/image_layer_dir/a3937b= 112d7dbedfe075162862e404b7b85803d880589eaf3ebad9855629bdd5=3Dro+wh:~/tca_ag= ent/image_layer_dir/b486d646cd9f5b8151856133ea3e81d53c3664bb727a0a87d0197cb= bae9211de=3Dro+wh:~/tca_agent/image_layer_dir/de1b712fcfedbc3f61248c1a5fb9c= ba5a5ab6c7415f2c71c7ea162fd7c738c6f=3Dro+wh:~/tca_agent/image_layer_dir/295= 8a858559d3091b8162c066cfe5e17012f2307772180e702ffbc89bcae8fc2=3Dro+wh:~/tca= _agent/image_layer_dir/14eae848ef41eb275ad37cc9d12dc276d3f08beeb06e04140737= 1b9489335ee1=3Dro+wh:~/tca_agent/image_layer_dir/d72e07c403501a4abefaa80f3b= 81121392c42f314fc14bbf1bb434dc84457dd5=3Dro+wh:~/tca_agent/image_layer_dir/= ee0efde24e35b4e2f801ca25640169ca2f319f9b5d37dbb0917cfd43e818d1f4=3Dro+wh:~/= tca_agent/image_layer_dir/67dfb4d7c7ce39829d36740e1ef5279e00320a0d2bfe06bb6= 7b6571f1ff47627=3Dro+wh:~/tca_agent/image_layer_dir/b3a1a69310f719755232ed5= f8509f11f549d620d723ea293f001e3d30795108b=3Dro+wh:~/tca_agent/image_layer_d= ir/a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4=3Dro+wh= :~/tca_agent/image_layer_dir/e5ad7970bc69d2ba62d2bbb4b80627273350e1982ff43b= c1ca04a3215bc6da5b=3Dro+wh none ~/tca_agent/container_root_dir/51509032 > > dmesg : [343090.744067] aufs opt_add:810:mount[30864]: lookup failed /r= oot/tca_agent/image_layer_di (-2) I think kernel at least must print warning message when mount option=20 overflow the PAGE_SIZE if length of mount option should be fixed.=20 When i encouter this problem, i found the reason hard because of=20 lack of kernel log and wrong infomation. > > ------------------------------------------------------------------------ > >=20 > > br option is cut and aufs search cut directory. Length of mount option > > is about 6400. >=20 > The lack of planning on your part... >=20 > IOW, don't do it. Use of symlinks (or bindings) might alleviate the prob= lem > if aufs interface is that nasty. And before you go "just read up to \0", > consider e.g. NFS flavours with binary data structure passed instead of > a string. Do you mean using symlinks or bind mount to reduce length of mount options?? I can remove "~/tca_agent/image_layer_dir" string. But the other character means unique ID of layer and i can't compress it or replace it to another string. This is not fundamental solution. Docker=20 use the same unique ID to manage layers.=20 As i said before overlayfs could suffer same problem because overlayfs=20 support multiple lowerdir options and there is no route to pass lower dirs without mount option. So i think to support unionfs stably in kernel, dynamic memory allocation for mount option is needed. Thanks.