Questions tagged [ext2]

ext2 is a Linux filesystem.

ext2 is a filesystem mostly used under linux.

Other versions are ext, ext3 and ext4.

See Wikipedia for details on ext and ext2.

106 questions
78
votes
5 answers

What does it mean by cold cache and warm cache concept?

I read a paper and it used terms cold cache and warm cache. I googled about this terms but I didn't find something useful (only a thread here). What do these terms mean?
Amir
  • 16,067
  • 10
  • 80
  • 119
12
votes
7 answers

How do I determine an open file's size in Python?

There's a file that I would like to make sure does not grow larger than 2 GB (as it must run on a system that uses ext 2). What's a good way to check a file's size bearing in mind that I will be writing to this file in between checks? In…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
10
votes
1 answer

what is the diffrence inode bitmap and inode table

I am trying to understand the difference between inode bitmap and inode table (from ext2 file system documentation), but I am not getting it. Can any one explain?
abhishek
  • 133
  • 1
  • 1
  • 6
7
votes
1 answer

is there a usermode ext2 filesystem library for Windows?

I'm hoping to find a C/C++ library that can read a number of files off an ext formatted volume from within an application in Windows. I do not need to mount this volume in a traditional way, all I need is API access to the files. Read only is…
stuck
  • 2,264
  • 2
  • 28
  • 62
7
votes
2 answers

How do I read and traverse inodes

I've opened the super-block and group descriptor in an EXT2 filesystem, but I don't know how to read for instance the root directory or files in it... Here's some of what i got fd=open("/dev/sdb2", O_RDONLY); lseek(fd, SuperSize, SEEK_SET); read(fd,…
Eric Fossum
  • 2,395
  • 4
  • 26
  • 50
6
votes
2 answers

Writing kernel memory to ext2 block

For a university assignment, we have to modify the ext2 file system to store files in the inode's block pointers if it's smaller than 60 bytes, and move to regular block storage once the file grows larger than that. I copied the ext2 code from the…
Anthony
  • 12,177
  • 9
  • 69
  • 105
5
votes
1 answer

Does the symfony cache file system handle ext2 32000 files in the same directory limitation?

Does the symfony cache system handle ext2 32000 files in the same directory limitation ? I have 80000 users and i want to cache their profiles but do symfony cache system handle the ext2 limitation ? i'm also posting for the others who will face the…
belaz
  • 1,486
  • 5
  • 18
  • 33
4
votes
3 answers

DD img different MD5's?

We have a smart media card with a linux install on it that we need to duplicate. We created an img with DD and then used dd to write the img back to a couple of new smart media cards. We have compared the MD5 checksum of both the original and the…
SpyderDriver
4
votes
1 answer

Ext2 File system Block bitmap

I was reading Ext2 file system details, and I am not clear with the fact that the number of blocks in a block group is (b x 8) where b is the block size. How have they arrived at this figure. What is the significance of 8.
RootPhoenix
  • 1,626
  • 1
  • 22
  • 40
4
votes
1 answer

ext2 directory entry list: Where is the end?

ext2 directory entry is persisted as a linked list. Quote from 1: A directory file is a linked list of directory entry structures. Each structure contains the name of the entry, the inode associated with the data of this entry, and the distance…
Junji Zhi
  • 1,382
  • 1
  • 14
  • 22
4
votes
1 answer

How does the Unix kernel convert a file offset?

As the title suggests, i'm having trouble figuring out how the Unix kernel converts a logical file offset into a logical block number and then retrieves it from the i-node. As a reference, i'm asking a more detailed explanation of the "bmap"…
user996922
  • 161
  • 1
  • 12
3
votes
1 answer

Are ext2 directory entry names guaranteed to be null-terminated on a valid file system?

I thought this would be an easy question, but I can't find the answer. I've mainly been reading these specs: http://www.nongnu.org/ext2-doc/ext2.html It doesn't seem to mention if a directory entry's name is supposed to be null-terminated. I'm…
Mr. Shickadance
  • 5,283
  • 9
  • 45
  • 61
3
votes
1 answer

Ext2: Group Descriptors

I'm writing a Java program to go through and navigate into a ext2 filesystem image. I know my fs is revision 1 (or greater), so I know that there are copies of superblock in groups 0,1 and those that are powers of 3,5 and 7. My question is, what…
jrsall92
  • 572
  • 1
  • 5
  • 19
3
votes
1 answer

memory barrier in linux kernel's ext2 function ext2_statfs()

Could anyone explain why linux kernel's ext2 function int ext2_statfs (struct dentry * dentry, struct kstatfs * buf) issues smp_rmb() andsmp_wmb() in else if (sbi->s_blocks_last != le32_to_cpu(es->s_blocks_count)) { case ? This was added in the…
user3994269
3
votes
2 answers

Where are the ACL permissions being checked when a file is about to be opened in EXT2?

In the EXT2 file.c the open file operation (.open) is being pointed to dquot_file_open which furthur points to generic_file_open which is present in fs/open.c. The generic_file_open looks like it just has the below code int generic_file_open(struct…
rookie_developer
  • 1,359
  • 3
  • 15
  • 27
1
2 3 4 5 6 7 8