* fhandler.cc (fhandler_base::fstat): Move dev and ino calculation into caller.
* syscalls.cc (stat_worker): Calculate dev and ino calculation here, if zero. * fhandler_proc.cc (fhandler_proc::fhandler_proc): Minor reorg for debugging. * fhandler_process.cc (fhandler_process::exists): Return 0 on nonexistence. (fhandler_process::fstat): Simplify pid logic. * fhandler_tape.cc (fhandler_dev_tape::fstat): Minor reformatting.
This commit is contained in:
@@ -155,10 +155,8 @@ fhandler_dev_tape::fstat (struct __stat64 *buf, path_conv *pc)
|
||||
{
|
||||
struct mtget get;
|
||||
|
||||
if (! ioctl (MTIOCGET, &get))
|
||||
{
|
||||
buf->st_blocks = get.mt_capacity / buf->st_blksize;
|
||||
}
|
||||
if (!ioctl (MTIOCGET, &get))
|
||||
buf->st_blocks = get.mt_capacity / buf->st_blksize;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user