Re: nfs/cifs mountinfo differences

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

 



On Aug 16, 2016 at 07:44 PM Stanislav Brabec wrote:
Aurélien Aptel wrote on Aug 5, 2016 at 7:22 PM:
We can't we compare in this case? Isn't it just a matter of
concatenating the source with the subdir?

Well, it looks possible. The path component 1 is always the server name,
2 volume name, and the rest is path.

So cut components 3 and up, and remove it from the leading part of 4th
column. Then you will have a part that can be used for bind mount
processing.

I did a new patch that searches the subdir part of the source and cuts
it out from root for purpose of root comparison.

Please review the algorithm of searching of the subdir component in the
source string in the reply to this mail.

--
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                         e-mail: sbrabec@xxxxxxxx
Křižíkova 148/34 (Corso IIa)                  tel: +49 911 7405384547
186 00 Praha 8-Karlín                          fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux