But our teachers, the authors of the Tosafot, inferred from the sugya of the Shas (starting with the words "But") that there is a difference between them: for if it is only with partitions that reach the ceiling—the law is not that they require eruv for each group, unless they brought their eruv to some house in the courtyard. But if the eruv came to them—each group does not require an eruv, for they are considered like one house. For since we hold that the house in which the eruv is placed does not need to provide bread, as written in siman 366, therefore they are all like one person, for the entire hall is one house. But in complete rooms and upper stories, even when the eruv comes to them—each and every group requires an eruv. The Tur and the Shulchan Aruch in section 3 followed this path; see there. And consequently, when there are no other residents in the courtyard, with partitions that reach the ceiling—no eruv is required at all. But in complete rooms and upper stories—even in such cases they require an eruv. And they further wrote, that if they all pass through one another—none require an eruv except the two innermost ones, and all those before them are like a gatehouse. And the one before the innermost requires an eruv because it is a gatehouse of an individual, and according to the system of the Rambam that we cited in section 2, a gatehouse of an individual prohibits; see there. But when each one has an opening to the courtyard, and they do not pass through one another, or each one has an opening open to the gatehouse before them, and the gatehouse is open to the courtyard—each group requires an eruv, in the case of partitions that reach the ceiling. And if some of them made partitions that reach the ceiling and some did not reach them, those that reach—they are divided, and each requires an eruv, and those that do not reach—they are like partners, and they all provide only one eruv. (See Taz subsection 2 and it requires further study. In my humble opinion, the words of the Bach are correct; see there and examine it closely.)
אבל רבותינו בעלי התוספות דקדקו מתוך סוגית הש"ס, (ד"ה 'אבל') דיש הפרש ביניהן, דאם רק במחיצות המגיעות לתקרה - אין הדין שיהו צריכין עירוב לכל חבורה, אלא אם כן הוליכו עירובן לאיזה בית שבחצר. אבל אם היה עירוב בא אצלן - אין צריך עירוב לכל חבורה, דכבית אחד חשיבי. דכיון דקיימא לן דבית שמניחין בו עירוב אין צריך ליתן פת, כמ"ש בסימן שס"ו, ולכן הם כולם כאיש אחד, דכל הטרקלין בית אחד הוא. אבל בחדרים ועליות גמורים, אפילו כשהעירוב בא אצלם - צריכין עירוב לכל חבורה וחבורה, ובדרך זה הלכו הטור והש"ע סעיף ג' ע"ש. וממילא דכשאין דיורים אחרים בחצר, במחיצות המגיעות לתקרה - אין צריך עירוב כלל. אבל בחדרים ועליות גמורים - גם בכהני גווני צריכים עירוב. ועוד כתבו, דאם כולם עוברים זה על זה - אין צריך עירוב אלא שנים הפנימיים, וכל שלפניהם הוויין כבית שער. וזה שקודם הפנימי צריך עירוב, משום דהוי בית שער דיחיד, ולשיטת הרמב"ם שהבאנו בסעיף ב' בית שער דיחיד אוסר, ע"ש. אבל כשכל אחד יש לו פתח לחצר, ואין עוברין זה דרך זה, או שכל אחד יש לו פתח פתוח לבית שער שלפניהם, והבית שער פתוח לחצר - צריך עירוב לכל חבורה, במחיצות המגיעות לתקרה. ואם מקצתן עשו מחיצות המגיעות לתקרה ומקצתן אין מגיעות אותן, שמגיעות - הן מחולקין, וצריכין עירוב לכל אחד, ואותן שאין מגיעות - הוויין כמשותפין, וכולם נותנין רק עירוב אחד. (עיין ט"ז סק"ב וצ"ע. ולעניות דעתי דברי הב"ח צודקים ע"ש ודו"ק)