Skip to contentSkip to conversation

dqblk or mem_dqblk for quotas?

DISCUSSION [email protected] 2 participants 2 messages Jul 24, 2001

lore
Share & tools
lore
#0 lore raw

Hello all -

Recently, I've been trying to write a utility to edit quotas (specifically on an ext2 filesystem), using the 2.4.x kernel. The man page for quotactl() on my system (RH 7.1) refer to the mem_dqblk struct, which is nowhere to be found in the source to the 2.4 kernels.

Am I missing something, or should I just continue to use the dqblk struct.

Thanks in advance for any help -

--
-Jeff Thompson (http://jeff.zaius.org)
[email protected]

#1 lore raw

Hello,

Quoted 8 lines

Recently, I've been trying to write a utility to edit quotas (specifically on an ext2 filesystem), using the 2.4.x kernel. The man page for quotactl() on my system (RH 7.1) refer to the mem_dqblk struct, which is nowhere to be found in the source to the 2.4 kernels.

Am I missing something, or should I just continue to use the dqblk struct.

It depends on version of kernel. In RH 7.1 Alan's kernel is used
and in it is new quota format -> mem_dqblk must be used. In standard Linus's kernel dqblk should be used.

Honza

--
Jan Kara <[email protected]>
SuSE Labs