Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2010 22:28:27 +0000
From:      Mark Blackman <mark@exonetric.com>
To:        freebsd-fs@freebsd.org
Subject:   ZFS and pathconf(_PC_NO_TRUNC)
Message-ID:  <871369D9-7D63-4CE0-BB87-B8C46A62B271@exonetric.com>

next in thread | raw e-mail | index | archive | help
Hi, 

I note that when testing the pathconf(2) NO_TRUNC property 
on a ZFS filesystem, I get a ENOENT, "No such file or directory".

I'm not sure if this qualifies as correct behaviour, but thought
a learned soul on this list could enlighten me.

I've attached the C snippet I used for testing.

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>

int main(int argc, char *argv[]){
  int result;

  result=pathconf(argv[1], _PC_NO_TRUNC);
  printf("for %s: no_trunc is %d\n",argv[1],result);
  if (result<0)
    perror(NULL);
  1;
}

- Mark




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?871369D9-7D63-4CE0-BB87-B8C46A62B271>