Package: lua-posix Version: 31-2 Severity: normal Dear Maintainer,
I was using Lua function posix.stat to check to ensure a given pathname is a directory, when surprisingly, it failed with an error message. Given the same pathname, stat(1) succeeds. I suspect that the issue is that the inode number is too large for lua_pushinteger(). I'm not sure why the inode number is so large; df reports only 391M inodes (it's a 2TB drive). Here's a little evidence; I would have expected posix.stat to return a table here: : nr@homedog ; lua -lposix -e 'print(posix.stat [[/red1/ipod-for-vw]])' nil /red1/ipod-for-vw: Value too large for defined data type 75 : nr@homedog ; lua -v Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio : nr@homedog ; /usr/bin/stat /red1/ipod-for-vw File: ‘/red1/ipod-for-vw’ Size: 8192 Blocks: 24 IO Block: 4096 directory Device: 821h/2081d Inode: 5908674496 Links: 186 Access: (0775/drwxrwxr-x) Uid: (32074/ nr) Gid: ( 6202/ nr) Access: 2015-06-21 17:52:57.483419546 -0400 Modify: 2015-06-21 19:38:52.703941495 -0400 Change: 2015-06-21 19:38:52.703941495 -0400 Birth: - : nr@homedog ; df -i -h /red1 Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sdc1 391M 179K 391M 1% /red1 -- System Information: Debian Release: 8.0 APT prefers stable APT policy: (990, 'stable') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages lua-posix depends on: ii libc6 2.19-18 ii lua-bitop 1.0.2-3 ii multiarch-support 2.19-18 lua-posix recommends no packages. lua-posix suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org