Use ULL suffix in constants
The lack of the ULL suffix causes warnings such as the following on 32-bit systems: In function 'zfsctl_is_snapdir': zfs-0.6.0//module/zfs/zfs_ctldir.c:151: warning: integer constant is too large for 'long' type We add the ULL suffix to fix that. Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #813
This commit is contained in:
parent
42d3b990cf
commit
a3873583c2
@ -103,10 +103,10 @@ extern void zfsctl_fini(void);
|
||||
* However, they should be as large as possible to avoid conflicts
|
||||
* with the objects which are assigned monotonically by the dmu.
|
||||
*/
|
||||
#define ZFSCTL_INO_ROOT 0x0000FFFFFFFFFFFF
|
||||
#define ZFSCTL_INO_SHARES 0x0000FFFFFFFFFFFE
|
||||
#define ZFSCTL_INO_SNAPDIR 0x0000FFFFFFFFFFFD
|
||||
#define ZFSCTL_INO_SNAPDIRS 0x0000FFFFFFFFFFFC
|
||||
#define ZFSCTL_INO_ROOT 0x0000FFFFFFFFFFFFULL
|
||||
#define ZFSCTL_INO_SHARES 0x0000FFFFFFFFFFFEULL
|
||||
#define ZFSCTL_INO_SNAPDIR 0x0000FFFFFFFFFFFDULL
|
||||
#define ZFSCTL_INO_SNAPDIRS 0x0000FFFFFFFFFFFCULL
|
||||
|
||||
#define ZFSCTL_EXPIRE_SNAPSHOT 300
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user