Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2009 14:51:05 -0800
From:      Tim Kientzle <kientzle@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   extattr problems?
Message-ID:  <49692659.2030306@freebsd.org>

next in thread | raw e-mail | index | archive | help
FreeBSD 6.3:

fd = open("test", O_WRONLY | O_CREAT | O_EXCL, 0777);
n = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, "testattr", "1234", 4);

After this, fd=3, n is non-zero, errno = 9 (EBADF)

Huh?  I would have expected EOPNOTSUPP if
extended attributes weren't supported on this
filesystem.  The file descriptor is clearly
valid.

Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49692659.2030306>