Re: Browsing the top mount folder mounts ALL entries in auto.misc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 21, 2012 at 10:03 AM, Thierry Bothorel
<thierry.bothorel@xxxxxxxxx> wrote:
> Le 04/11/2012 12:20, Thierry B. a écrit :
>>
>> Hi,
>>
>> I have this line in auto.master :
>>
>> /- /etc/auto.misc --timeout=30
>>
>> and in auto.misc :
>>
>> /media/autofs/winlinux    -fstype=auto        :/dev/sdb1
>> /media/autofs/BACKUP    -fstype=auto        :/dev/sdc1
>> /media/autofs/NAS
>> -fstype=cifs,user=xxxxxxxx,password=xxxxxxxxxx,iocharset=utf8,workgroup=workgroup
>> ://192.168.1.253/volume_1-1
>>
>>
>> Each time I browse /media/autofs, ALL entries in auto.misc are mounted,
>> whereas I only want to enter in /media/autofs/NAS. To avoid this, I had to
>> add to set a specific top level folder for each entry :
>>
>>
>>
>> /media/autofs.winlinux/winlinux    -fstype=auto :/dev/sdb1
>> /media/autofs.BACKUP/BACKUP    -fstype=auto        :/dev/sdc1
>> /media/autofs.NAS/NAS
>> -fstype=cifs,user=xxxxxxxx,password=xxxxxxxxxx,iocharset=utf8,workgroup=workgroup
>> ://192.168.1.253/volume_1-1
>>
>> It works, but I wonder if there is a mean to keep the same top level
>> directory without mounting all entries automatically.
>>
>> autofs 5.0.6-0ubuntu2
>> linux-image-3.0.0-26-generic 3.0.0-26.42
>>
>> Thierry B.
>>
>
> Le 05/11/2012 14:04, Leonardo Chiquitto a écrit :
>
>> On Mon, Nov 5, 2012 at 10:23 AM, Thierry Bothorel
>> <thierry.bothorel@xxxxxxxxx>  wrote:
>>>
>>> Le 05/11/2012 10:32, Ian Kent a écrit :
>>>>
>>>> On Mon, 2012-11-05 at 17:30 +0800, Ian Kent wrote:
>>>>>
>>>>> I think you might need a kernel based on upstream 3.1 or later.
>>>>
>>>> There were some small changes to coreutils and libacl IIRC, which also
>>>> resolved this but since the kernel was changed they probably aren't
>>>> worth the trouble.
>>>>
>>>>> Ian
>>>>>
>>> Thanks, I will upgrade my distro and see what happens with a newer
>>> kernel.
>>
>> Stable kernel 3.0.9 also should have the fixes for this problem.
>>
>> Thanks,
>> Leonardo
>
>
> For your information I upgraded to kernel 3.2.0 and the issue I described is
> still there :
>
> http://www.dailymotion.com/video/xv8w4g_autofs_tech

Could you confirm if 'ls -la /media/autofs' also triggers the mounts?

Leonardo
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux