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

Re: "losing" a file in the ext2 file-system



In message <33CB7D02.5667931F@scorpio.com> you write:
|Well, I do not know what is realy implemented in the kernel 
|or what specific to ext2 fs, but to my knoledge of unix-fs

It's not clear from your wording, but the ext2fs IS part of the kernel
for all practical purposes.

|I think the kernel will allow it, but when e2fschk will run, it will
|identify the inode with no file pointing to it, and will fix it ( i dont
|know if it will erase the inode and data, or add a file name to them )

See my other message, I think you are wrong.

|if you realy want to know, make a little ext2 fs ( lats say: use a swap
|file temporarily and use the swap partition for the temporary ext2 fs ),
|edit the ditrectory and then run e2fsck then see what happens. 

He should probably use the loop device to "mount" a regular file which
had "mke2fs" ran on it , not a swap file.

--Amos

--Amos Shapira                    | "Of course Australia was marked for
133 Shlomo Ben-Yosef st.          |  glory, for its people had been chosen
Jerusalem 93 805                  |  by the finest judges in England."
ISRAEL        amos@gezernet.co.il |                     -- Anonymous


Follow-Ups: References: