From owner-freebsd-fs@FreeBSD.ORG Wed Mar 10 15:15:03 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CD771065670 for ; Wed, 10 Mar 2010 15:15:03 +0000 (UTC) (envelope-from md@scoutsengidsenvlaanderen.be) Received: from scoutsengidsenvlaanderen.be (mail.scoutsengidsenvlaanderen.be [81.83.17.184]) by mx1.freebsd.org (Postfix) with ESMTP id 470AC8FC16 for ; Wed, 10 Mar 2010 15:15:01 +0000 (UTC) Received: from [192.168.1.163] (account md [192.168.1.163] verified) by scoutsengidsenvlaanderen.be (CommuniGate Pro SMTP 5.3.3) with ESMTPA id 34070739 for freebsd-fs@freebsd.org; Wed, 10 Mar 2010 15:14:59 +0100 Message-ID: <4B97A963.9040300@scoutsengidsenvlaanderen.be> Date: Wed, 10 Mar 2010 15:14:59 +0100 From: Michiel Detailleur User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: ZFS snapshot name length limit? (File name too long) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 15:15:03 -0000 Hi, I'm using sysutils/zfs-snapshot-mgmt for automatic creation and purging of ZFS snapshots. It creates snapshot names like this (zfsfilesys is not the actual name of the zfs filesystem, it's actually a bit longer. Why is this important? See below.): zfsfilesys@auto-2010-03-10_06.00 Clean and simple naming scheme you would think, but when I ls -la zfsfilesys/.zfs/snapshot, I get output from ls: ls: auto-2010-03-10_06.00: File name too long This happens for all snapshots with names longer than 16 characters for this particular zfs file system. Snapshots shorter than 16 characters are listed. drwxr-xr-x 12 root wheel 23 Dec 24 14:06 2010-02-02-00/ The name of the actual file system is 56 characters, starting from 'tank/' For file systems with shorters names, longer snapshot names *are* accessible. This seems to imply a maximum length of 72 characters (snapshot '@' sign excluded) for *usable* snapshots? (usable in the sense that we can mount/look into them) What limit am I (we?) hitting here? Is this a problem with ZFS itself or with FreeBSD? Sure looks like a silly limit for the filesystem that touts 'biggest everything'. I'm using FreeBSD 8.0, the zpool was freshly created on the 8.0 OS (not upgraded from older FreeBSD ZFS version). Thanks for any insight on this problem. -- Michiel Detailleur Medewerker Informatica Scouts en Gidsen Vlaanderen vzw Lange Kievitstraat 74 2018 Antwerpen tel 03 231 16 20 fax 03 232 63 92 www.scoutsengidsenvlaanderen.be