New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent stat() implementation wrt inode numbers #11146
Comments
From @ribasushiCreated by ribasushi@cpan.orgThis is from an XFS filesystem on a 32bit workstation: rabbit@Thesaurus:~$ perl -E 'my $fn = "xxx"; my $sys = `stat -c%i "$fn"`; chomp $sys; my $perl = (stat($fn))[1]; die "$fn\tP:$perl\tS:$sys\n" unless $sys == $perl' It appears that perl treats ino_t as signed whereas it is overwhelmingly rabbit@Thesaurus:~$ perl -E 'say unpack("L", pack( "l", -2086220941) )' http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html #p5p backlog:<Nicholas> the inode has a value so large that it's being treated by perl as a negative number? Perl Info
|
From @iabynOn Mon, Feb 21, 2011 at 09:19:06AM -0800, Peter Rabbitson wrote:
So, would this be as simple as changing mPUSHi(PL_statcache.st_ino) -- |
The RT System itself - Status changed from 'new' to 'open' |
From @dglOn 22 Feb 2011, at 13:00, Dave Mitchell wrote:
To fix this particular issue, yes, however on Linux (and probably similar on other systems) the size of ino_t depends on what _FILE_OFFSET_BITS is set to (i.e. if perl is configured with large file support), so it probably should take that into account too. David PS, on 32-bit x86 Linux: |
From @tonycozOn Mon, Feb 21, 2011 at 09:19:06AM -0800, Peter Rabbitson wrote:
Tony |
@tonycoz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#84590 (status was 'resolved')
Searchable as RT84590$
The text was updated successfully, but these errors were encountered: