[Samba] Re: quota on xfs on lvm doesn't work(?)
Christoph Peus
cp at peus.net
Fri Apr 21 09:34:34 GMT 2006
James Peach wrote:
> what I meant to say was ...
>
> Can you please use strace -p to get a trace of the relevant samba process
> filing to check the quota?
Ok, here we go:
.
.
(about 100kb of output deleted)
.
.
munmap(0xb7998000, 4096) = 0
geteuid32() = 4004
stat64(".", {st_mode=S_IFDIR|0770, st_size=25, ...}) = 0
open("/etc/mtab", O_RDONLY) = 27
fstat64(27, {st_mode=S_IFREG|0644, st_size=323, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7998000
read(27, "/dev/sda1 / ext3 rw,noatime 0 0\n"..., 4096) = 323
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat64("/sys", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/dev", {st_mode=S_IFDIR|0755, st_size=29560, ...}) = 0
stat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/tmp", {st_mode=S_IFDIR|0777, st_size=1024, ...}) = 0
stat64("/mnt/tmp", {st_mode=S_IFDIR|0777, st_size=17, ...}) = 0
close(27) = 0
munmap(0xb7998000, 4096) = 0
quotactl(Q_XGETQUOTA|USRQUOTA, "/dev/export/lvol0", 4004, 0xbfdab390) = -1 EACCES (Permission denied)
getegid32() = 4000
stat64(".", {st_mode=S_IFDIR|0770, st_size=25, ...}) = 0
open("/etc/mtab", O_RDONLY) = 27
fstat64(27, {st_mode=S_IFREG|0644, st_size=323, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7998000
read(27, "/dev/sda1 / ext3 rw,noatime 0 0\n"..., 4096) = 323
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat64("/sys", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/dev", {st_mode=S_IFDIR|0755, st_size=29560, ...}) = 0
stat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/tmp", {st_mode=S_IFDIR|0777, st_size=1024, ...}) = 0
stat64("/mnt/tmp", {st_mode=S_IFDIR|0777, st_size=17, ...}) = 0
close(27) = 0
munmap(0xb7998000, 4096) = 0
quotactl(Q_XGETQUOTA|GRPQUOTA, "/dev/export/lvol0", 4000, 0xbfdab390) = -1 EACCES (Permission denied)
write(22, "\0\0\0X\377SMB2\0\0\0\0\210A\310\0\0\0\0\0\0\0\0\0\0\0"..., 92) = 92
select(23, [5 22], NULL, NULL, {60, 0}) = 1 (in [22], left {60, 0})
read(22, "\0\0\0L", 4) = 4
read(22, "\377SMB2\0\0\0\0\30\3\310\0\0\0\0\0\0\0\0\0\0\0\0\1\0\334"..., 76) = 76
gettimeofday({1145609619, 947059}, NULL) = 0
stat64(".", {st_mode=S_IFDIR|0770, st_size=25, ...}) = 0
fcntl64(13, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=3188, len=1}, 0xbfdaaa20) = 0
pread(13, "\20\21\0\0", 4, 3192) = 4
pread(13, "\0\0\0\0\344\0\0\0\20\0\0\0\320\0\0\0\311W\1e\231\31\1"..., 24, 4368) = 24
pread(13, "\0\376\0\0\0\0\0\0\204\0\0\0\0\0\0\0", 16, 4392) = 16
pread(13, "\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 208, 4408) = 208
kill(6292, SIG_0) = 0
kill(6292, SIG_0) = 0
kill(6292, SIG_0) = 0
fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=3188, len=1}, 0xbfdaaa00) = 0
write(22, "\0\0\0d\377SMB2\0\0\0\0\210A\310\0\0\0\0\0\0\0\0\0\0\0"..., 104) = 104
select(23, [5 22], NULL, NULL, {60, 0}) = 1 (in [22], left {60, 0})
read(22, "\0\0\0F", 4) = 4
read(22, "\377SMB2\0\0\0\0\30\3\310\0\0\0\0\0\0\0\0\0\0\0\0\1\0\334"..., 70) = 70
gettimeofday({1145609619, 952454}, NULL) = 0
stat64(".", {st_mode=S_IFDIR|0770, st_size=25, ...}) = 0
statfs64(".", 84, {f_type=0x58465342, f_bsize=4096, f_blocks=259920, f_bfree=259878, f_bavail=259878, f_files=1044480, f_ffree=1044474, f_fsid={65024,
0}, f_namelen=255, f_frsize=4096}) = 0
stat64(".", {st_mode=S_IFDIR|0770, st_size=25, ...}) = 0
open("/proc/mounts", O_RDONLY) = 27
fstat64(27, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7998000
read(27, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 373
read(27, "", 1024) = 0
_llseek(27, 0, [0], SEEK_SET) = 0
read(27, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 373
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat64("/sys", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/dev", {st_mode=S_IFDIR|0755, st_size=29560, ...}) = 0
stat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/tmp", {st_mode=S_IFDIR|0777, st_size=1024, ...}) = 0
stat64("/mnt/tmp", {st_mode=S_IFDIR|0777, st_size=17, ...}) = 0
close(27) = 0
munmap(0xb7998000, 4096) = 0
geteuid32() = 4004
stat64(".", {st_mode=S_IFDIR|0770, st_size=25, ...}) = 0
open("/etc/mtab", O_RDONLY) = 27
fstat64(27, {st_mode=S_IFREG|0644, st_size=323, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7998000
read(27, "/dev/sda1 / ext3 rw,noatime 0 0\n"..., 4096) = 323
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat64("/sys", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/dev", {st_mode=S_IFDIR|0755, st_size=29560, ...}) = 0
stat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/tmp", {st_mode=S_IFDIR|0777, st_size=1024, ...}) = 0
stat64("/mnt/tmp", {st_mode=S_IFDIR|0777, st_size=17, ...}) = 0
close(27) = 0
munmap(0xb7998000, 4096) = 0
quotactl(Q_XGETQUOTA|USRQUOTA, "/dev/export/lvol0", 4004, 0xbfdab390) = -1 EACCES (Permission denied)
getegid32() = 4000
stat64(".", {st_mode=S_IFDIR|0770, st_size=25, ...}) = 0
open("/etc/mtab", O_RDONLY) = 27
fstat64(27, {st_mode=S_IFREG|0644, st_size=323, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7998000
read(27, "/dev/sda1 / ext3 rw,noatime 0 0\n"..., 4096) = 323
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat64("/sys", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/dev", {st_mode=S_IFDIR|0755, st_size=29560, ...}) = 0
stat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/tmp", {st_mode=S_IFDIR|0777, st_size=1024, ...}) = 0
stat64("/mnt/tmp", {st_mode=S_IFDIR|0777, st_size=17, ...}) = 0
close(27) = 0
munmap(0xb7998000, 4096) = 0
quotactl(Q_XGETQUOTA|GRPQUOTA, "/dev/export/lvol0", 4000, 0xbfdab390) = -1 EACCES (Permission denied)
write(22, "\0\0\0X\377SMB2\0\0\0\0\210A\310\0\0\0\0\0\0\0\0\0\0\0"..., 92) = 92
select(23, [5 22], NULL, NULL, {60, 0} <unfinished ...>
Does this give usefull information?
Christoph
More information about the samba
mailing list